docstr: Parameters
  ----------
  ptModel: ImageClassifierPreTrainedModel
      An instance of a pre-trained model.
docstr_tok: ["Parameters","--","--","--","--","--","ptModel",":","ImageClassifierPreTrainedModel","An","instance","of","a","pre-trained","model","."]
code: def __init__(self, ptModel):
      """
      Parameters
      ----------
      ptModel: ImageClassifierPreTrainedModel
          An instance of a pre-trained model.
      """
  
      # Suppresses verbosity to only errors
      _utils.suppress_tensorflow_warnings()
  
      keras = _minimal_package_import_check("tensorflow.keras")
  
      self.gpu_policy = _utils.TensorFlowGPUPolicy()
      self.gpu_policy.start()
  
      self.ptModel = ptModel
  
      self.input_shape = ptModel.input_image_shape
      self.coreml_data_layer = ptModel.coreml_data_layer
      self.coreml_feature_layer = ptModel.coreml_feature_layer
  
      model_path = ptModel.get_model_path("tensorflow")
      self.model = keras.models.load_model(model_path)
  
file_path: turicreate/src/python/turicreate/toolkits/_image_feature_extractor.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ._pre_trained_models import _get_cache_dir
  from turicreate._deps.minimal_package import _minimal_package_import_check
  import turicreate.toolkits._tf_utils
label_desc: Use image node_id 1 to create a new TensorFlowFeatureExtractor object from inherited base classes: ImageFeatureExtractor with example: obj = TensorFlowFeatureExtractor(ptModel)