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: Predict does only a forward pass and does not update any weights
  This accepts a dictionary that has feature/target as key and
  the numpy arrays as value corresponding to them respectively.
  It also returns a dictionary of loss and output
  This matches the model backend predict
  
  Argument : A dictionary of input and true labels
  Returns : A dictionary of expected output (toolkit specific)
  
  It will calculate the specified outputs w
  self.sess.run([loss_op, ..], feed_dict= {self.data = ..., self.target= ..})
docstr_tok: ["Predict","does","only","a","forward","pass","and","does","not","update","any","weights","This","accepts","a","dictionary","that","has","feature\/target","as","key","and","the","numpy","arrays","as","value","corresponding","to","them","respectively",".","It","also","returns","a","dictionary","of","loss","and","output","This","matches","the","model","backend","predict","Argument",":","A","dictionary","of","input","and","true","labels","Returns",":","A","dictionary","of","expected","output","(","toolkit","specific",")","It","will","calculate","the","specified","outputs","w","self.sess.run","(","[","loss_op",",","..","]",",","feed_dict=","{","self.data","=","...",",","self.target=","..","}",")"]
code: def train(self, feed_dict):
      """
      Predict does only a forward pass and does not update any weights
      This accepts a dictionary that has feature/target as key and
      the numpy arrays as value corresponding to them respectively.
      It also returns a dictionary of loss and output
      This matches the model backend predict
  
      Argument : A dictionary of input and true labels
      Returns : A dictionary of expected output (toolkit specific)
  
      It will calculate the specified outputs w
      self.sess.run([loss_op, ..], feed_dict= {self.data = ..., self.target= ..})
      """
      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 2 for calling the TensorFlowModel obj's underlying member method code with example usage: obj.train(feed_dict) without return types