tf.estimator.FinalExporter
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
This class exports the serving graph and checkpoints at the end.
Inherits From: Exporter
tf.estimator.FinalExporter(
    name, serving_input_receiver_fn, assets_extra=None, as_text=False
)
This class performs a single export at the end of training.
| Args | 
|---|
| name | unique name of this Exporterthat is going to be used in the
export path. | 
| serving_input_receiver_fn | a function that takes no arguments and returns
a ServingInputReceiver. | 
| assets_extra | An optional dict specifying how to populate the assets.extra
directory within the exported SavedModel.  Each key should give the
destination path (including the filename) relative to the assets.extra
directory.  The corresponding value gives the full path of the source
file to be copied.  For example, the simple case of copying a single
file without renaming it is specified as {'my_asset_file.txt': '/path/to/my_asset_file.txt'}. | 
| as_text | whether to write the SavedModel proto in text format. Defaults to False. | 
| Raises | 
|---|
| ValueError | if any arguments is invalid. | 
| Attributes | 
|---|
| name | Directory name. A directory name under the export base directory where exports of
this type are written.  Should not be Nonenor empty. | 
Methods
export
View source
export(
    estimator, export_path, checkpoint_path, eval_result, is_the_final_export
)
Exports the given Estimator to a specific format.
| Args | 
|---|
| estimator | the Estimatorto export. | 
| export_path | A string containing a directory where to write the export. | 
| checkpoint_path | The checkpoint path to export. | 
| eval_result | The output of Estimator.evaluateon this checkpoint. | 
| is_the_final_export | This boolean is True when this is an export in the
end of training.  It is False for the intermediate exports during
the training.
When passing Exportertotf.estimator.train_and_evaluateis_the_final_exportis always False ifTrainSpec.max_stepsisNone. | 
| Returns | 
|---|
| The string path to the exported directory or Noneif export is skipped. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2020-10-01 UTC.
  
  
  
    
      [null,null,["Last updated 2020-10-01 UTC."],[],[]]