docstr: Retrieve weights from the TF model, converts to the CoreML format
  and stores in a list of dictionaries.
  
  Returns
  -------
  layers : list
      List of dictionaries of weights and activations, where
      the key, for each element of the list, is `weight`, `bias`
      and `act` and the value is the respective weight of type
      `numpy.ndarray` converted to the CoreML format and the
      respective activation applied to the layer.
docstr_tok: ["Retrieve","weights","from","the","TF","model",",","converts","to","the","CoreML","format","and","stores","in","a","list","of","dictionaries",".","Returns","--","--","--","-","layers",":","list","List","of","dictionaries","of","weights","and","activations",",","where","the","key",",","for","each","element","of","the","list",",","is","`","weight","`",",","`","bias","`","and","`","act","`","and","the","value","is","the","respective","weight","of","type","`","numpy.ndarray","`","converted","to","the","CoreML","format","and","the","respective","activation","applied","to","the","layer","."]
code: def export_weights(self):
      """
      Retrieve weights from the TF model, converts to the CoreML format
      and stores in a list of dictionaries.
  
      Returns
      -------
      layers : list
          List of dictionaries of weights and activations, where
          the key, for each element of the list, is `weight`, `bias`
          and `act` and the value is the respective weight of type
          `numpy.ndarray` converted to the CoreML format and the
          respective activation applied to the layer.
      """
      assert self.is_initialized
      _tf = _lazy_import_tensorflow()
  
      with self.sc_graph.as_default():
          layer_names = _tf.trainable_variables()
          layer_weights = self.sess.run(layer_names)
  
      layer_dict = {}
      for var, val in zip(layer_names, layer_weights):
          layer_dict[var.name] = val
  
      layers = []
      for i, name in enumerate(self.names_of_layers):
          weight_name = "sound_{}_weight:0".format(name)
          bias_name = "sound_{}_bias:0".format(name)
          layer = {}
          layer["weight"] = layer_dict[weight_name].transpose(1, 0)
          layer["bias"] = layer_dict[bias_name]
          if i == (len(self.names_of_layers) - 1):
              layer["act"] = None
          else:
              layer["act"] = "relu"
          layers.append(layer)
      return layers
  
file_path: turicreate/src/python/turicreate/toolkits/sound_classifier/_tf_sound_classifier.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .._tf_model import TensorFlowModel
  import turicreate.toolkits._tf_utils
  from turicreate._deps.minimal_package import _minimal_package_import_check
label_desc: Use image node_id 9 for calling the SoundClassifierTensorFlowModel obj's underlying member method code with example usage: obj.export_weights() and returns: layers