class_docstr: Base Class for neural networks written in tensorflow used to abstract across model
  architectures. It defines the computational graph and initialize a session to run the graph.
  
  Make placeholders for input and targets
  self.data = tf.placeholder()
  self.target = tf.placeholder()
  
  Make dictionaries for weights and biases
  self.weights = {
      'conv' : tf.Variable()
      'dense0' : tf.Variable()
  }
  self.biases = {
      'conv' : tf.Variable()
      'dense0' : tf.Variable()
  }
  
  Make the graph
  conv = tf.nn.conv1d(self.data, self.weights['conv'], ..)
  dense = tf.add(tf.matmul() + self.bias())
  ...
  
  Make loss_op with the loss and train_op with the optimizer
  loss_op =
  train_op =
  
  Define Session
  self.sess = tf.Session()
class_docstr_tok: ["Base","Class","for","neural","networks","written","in","tensorflow","used","to","abstract","across","model","architectures",".","It","defines","the","computational","graph","and","initialize","a","session","to","run","the","graph",".","Make","placeholders","for","input","and","targets","self.data","=","tf.placeholder","(",")","self.target","=","tf.placeholder","(",")","Make","dictionaries","for","weights","and","biases","self.weights","=","{","'conv","'",":","tf.Variable","(",")","'dense0","'",":","tf.Variable","(",")","}","self.biases","=","{","'conv","'",":","tf.Variable","(",")","'dense0","'",":","tf.Variable","(",")","}","Make","the","graph","conv","=","tf.nn.conv1d","(","self.data",",","self.weights","[","'conv","'","]",",","..",")","dense","=","tf.add","(","tf.matmul","(",")","+","self.bias","(",")",")","...","Make","loss_op","with","the","loss","and","train_op","with","the","optimizer","loss_op","=","train_op","=","Define","Session","self.sess","=","tf.Session","(",")"]
docstr: Exports the network weights in CoreML format.
  Returns : A dictionary of weight names as keys and
  
  layer_names = tf.trainable_variables()
  layer_weights = self.sess.run(tvars)
  
  This will get you the layer names from tensorflow and their corresponding
  values. They need to be converted to CoreML format and stored back in a
  dictionary with their names and values of correct shapes.
docstr_tok: ["Exports","the","network","weights","in","CoreML","format",".","Returns",":","A","dictionary","of","weight","names","as","keys","and","layer_names","=","tf.trainable_variables","(",")","layer_weights","=","self.sess.run","(","tvars",")","This","will","get","you","the","layer","names","from","tensorflow","and","their","corresponding","values",".","They","need","to","be","converted","to","CoreML","format","and","stored","back","in","a","dictionary","with","their","names","and","values","of","correct","shapes","."]
code: def predict(self, feed_dict):
      """
      Exports the network weights in CoreML format.
      Returns : A dictionary of weight names as keys and
  
      layer_names = tf.trainable_variables()
      layer_weights = self.sess.run(tvars)
  
      This will get you the layer names from tensorflow and their corresponding
      values. They need to be converted to CoreML format and stored back in a
      dictionary with their names and values of correct shapes.
      """
      raise NotImplementedError
  
file_path: turicreate/src/python/turicreate/toolkits/_tf_model.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import abc
  import six
label_desc: Use image node_id 3 for calling the TensorFlowModel obj's underlying member method code with example usage: obj.predict(feed_dict) without return types