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

Function _GenerateStatelessRngSeed

lingvo/core/py_utils.py:2316–2335  ·  view source on GitHub ↗

Generates a 2-tuple seed for a stateless variable initializer. We want to ensure that different variables end up with different random values even when they are passed the same seed and shape. To this aim, this function generates a pseudo-unique seed by hashing the variable name and mapping i

(name, seed)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

InitRNNCellStateFunction · 0.85
_CreateVariableStatelessFunction · 0.85

Calls 1

GenerateSeedFromNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…