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

Function CopyFieldsTo

lingvo/core/hyperparams.py:197–231  ·  view source on GitHub ↗

Copy fields from one Params to another, with optional skipped params. Preserves `type(to_p.Instantiate())`. Use `from_p.Copy()` instead if requiring a deep copy of `from_p`, without updating `to_p`. Args: from_p: Source params to copy from. to_p: Destination params to copy to. sk

(from_p, to_p, skip=None, ignore_unknown_keys=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

MergeCommonKeysFromMethod · 0.85

Calls 3

IterParamsMethod · 0.80
SetMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…