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

Function SetEval

lingvo/core/cluster_factory.py:78–100  ·  view source on GitHub ↗

Returns a cluster with do_eval option turned on/off. E.g.:: def FProp(...): with SetEval(mode=True): # Turns off dropout, noise, etc. y = self.foo.FProp(..., x) z = self.bar.FProp(..., y) # Returns to previous state (e.g., training). y = self.foo.FPr

(mode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

CurrentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…