MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _merge

Method _merge

tensorflow/python/ops/distributions/bijector_impl.py:121–127  ·  view source on GitHub ↗

Helper to merge which handles merging one value.

(self, old, new)

Source from the content-addressed store, hash-verified

119 return old
120
121 def _merge(self, old, new):
122 """Helper to merge which handles merging one value."""
123 if old is None:
124 return new
125 elif new is not None and old is not new:
126 raise ValueError("Incompatible values: %s != %s" % (old, new))
127 return old
128
129 def _deep_tuple(self, x):
130 """Converts lists of lists to tuples of tuples."""

Callers 1

mergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected