docstr: Function to store TensorFlow weights back to into a dict.
  
  Returns
  -------
  tf_export_params: Dictionary
      Dictionary of weights from TensorFlow stored as {weight_name: weight_value}
docstr_tok: ["Function","to","store","TensorFlow","weights","back","to","into","a","dict",".","Returns","--","--","--","-","tf_export_params",":","Dictionary","Dictionary","of","weights","from","TensorFlow","stored","as","{","weight_name",":","weight_value","}"]
code: def export_weights(self):
      """
      Function to store TensorFlow weights back to into a dict.
  
      Returns
      -------
      tf_export_params: Dictionary
          Dictionary of weights from TensorFlow stored as {weight_name: weight_value}
      """
      _tf = _lazy_import_tensorflow()
  
      tf_export_params = {}
  
      # collect all TF variables to include running_mean and running_variance
      with self.od_graph.as_default():
          tvars = _tf.global_variables()
          tvars_vals = self.sess.run(tvars)
      for var, val in zip(tvars, tvars_vals):
          if val.ndim == 1:
              tf_export_params.update({var.name.replace(":0", ""): val})
          elif val.ndim == 4:
              tf_export_params.update(
                  {
                      var.name.replace(
                          ":0", ""
                      ): _utils.convert_conv2d_tf_to_coreml(val)
                  }
              )
      for layer_name in tf_export_params.keys():
          tf_export_params[layer_name] = _np.ascontiguousarray(
              tf_export_params[layer_name]
          )
  
      return tf_export_params
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import numpy
  from .._tf_model import TensorFlowModel
  from turicreate._deps.minimal_package import _minimal_package_import_check
  import turicreate.toolkits._tf_utils
label_desc: Use image node_id 11 for calling the ODTensorFlowModel obj's underlying member method code with example usage: obj.export_weights() and returns: tf_export_params