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

Function _IsNamedTuple

lingvo/core/hyperparams.py:107–119  ·  view source on GitHub ↗

Returns whether an object is an instance of a collections.namedtuple. Examples:: _IsNamedTuple((42, 'hi')) ==> False Foo = collections.namedtuple('Foo', ['a', 'b']) _IsNamedTuple(Foo(a=42, b='hi')) ==> True Args: x: The object to check.

(x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

GetReprMethod · 0.85
_ToParamValueMethod · 0.85
_VisitMethod · 0.85
GetReprMethod · 0.85
_ValueFromTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…