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

Method _MaybeConstructSharedModel

lingvo/executor.py:436–466  ·  view source on GitHub ↗

If a MultiTaskModel, constructs a single shared copy of the model. If the share_model_object parameter is set, for MultiTaskModels, we create a MultiTaskSubModel for each task, but construct the model only once. Args: train_cfg: The params for a SingleTaskModel or MultiTaskModel.

(
      self, train_cfg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.95

Calls 2

GetPlacerMethod · 0.80
InstantiateMethod · 0.45

Tested by

no test coverage detected