docstr: Defines the TensorFlow model, loss, optimisation and accuracy.
docstr_tok: ["Defines","the","TensorFlow","model",",","loss",",","optimisation","and","accuracy","."]
code: def __init__(self, num_inputs, num_classes, custom_layer_sizes):
      """
      Defines the TensorFlow model, loss, optimisation and accuracy.
      """
      _tf = _lazy_import_tensorflow()
      self.num_inputs = num_inputs
      self.num_classes = num_classes
      self.custom_layer_sizes = custom_layer_sizes
  
      self.gpu_policy = _utils.TensorFlowGPUPolicy()
      self.gpu_policy.start()
  
      self.sc_graph = _tf.Graph()
      self.sess = _tf.Session(graph=self.sc_graph)
  
      self.is_initialized = False
  
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 1 to create a new SoundClassifierTensorFlowModel object from inherited base classes: TensorFlowModel with example: obj = SoundClassifierTensorFlowModel(num_inputs, num_classes, custom_layer_sizes)