MCPcopy Create free account
hub / github.com/tensorflow/lingvo / __init__

Method __init__

lingvo/core/predictor.py:64–138  ·  view source on GitHub ↗

Constructor. Args: inference_graph: A saved InferenceGraph proto. subgraph_name: The default subgraph to use for Run(). checkpoint: An optional checkpoint to load. device_type: Device type string. Either "cpu", "gpu", or "tpu". tf_master: The tf_master. sessi

(self,
               inference_graph,
               subgraph_name=None,
               checkpoint=None,
               device_type="gpu",
               tf_master="",
               session_config=None,
               clear_device_placement=False,
               load_graph_def_from_inference_graph=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

_create_new_sessionMethod · 0.95
LoadInferenceGraphFunction · 0.85

Tested by

no test coverage detected