class_docstr: Main network which does cross-lingual embeddings training
docstr: Saves W in mapper as numpy array based on CSLS criterion
  Arguments:
      save_model(bool): Save model if True
      sess(tf.session): Tensorflow Session
docstr_tok: ["Saves","W","in","mapper","as","numpy","array","based","on","CSLS","criterion","Arguments",":","save_model","(","bool",")",":","Save","model","if","True","sess","(","tf.session",")",":","Tensorflow","Session"]
code: def save_model(self, save_model, sess):
      """
      Saves W in mapper as numpy array based on CSLS criterion
      Arguments:
          save_model(bool): Save model if True
          sess(tf.session): Tensorflow Session
      """
      if save_model:
          print("Saving model ....")
          model_W = sess.run(self.generator.W)
          path = os.path.join(self.save_dir, "W_best_mapping")
          np.save(path, model_W)
  
imports: from __future__ import print_function, division
  import io
  import os
  import time
  import numpy
  import scipy
  import tensorflow
label_desc: Use image node_id 9 for calling the WordTranslator obj's underlying member method code with example usage: obj.save_model(save_model, sess) without return types