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

Function MixByWeight

lingvo/core/py_utils.py:4857–4896  ·  view source on GitHub ↗

Returns a weighted random choice and bprop type from the give inputs. Args: inputs: a list of callables, where each callable returns a tf.Tensor or a nested structure containing tf.Tensor. Function return types must be consistent across elements. The tf.Operation to compute the re

(inputs: List[Callable[..., tf.Tensor]],
                weights: tf.Tensor,
                seed: Optional[int] = None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

with_dependenciesFunction · 0.85
assert_equalFunction · 0.85
assert_greater_equalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…