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

Function _assert_same_graph

tensorflow/python/framework/ops.py:5982–5994  ·  view source on GitHub ↗

Fail if the 2 items are from different graphs. Args: original_item: Original item to check against. item: Item to check. Raises: ValueError: if graphs do not match.

(original_item, item)

Source from the content-addressed store, hash-verified

5980
5981
5982def _assert_same_graph(original_item, item):
5983 """Fail if the 2 items are from different graphs.
5984
5985 Args:
5986 original_item: Original item to check against.
5987 item: Item to check.
5988
5989 Raises:
5990 ValueError: if graphs do not match.
5991 """
5992 if original_item.graph is not item.graph:
5993 raise ValueError("%s must be from the same graph as %s." %
5994 (item, original_item))
5995
5996
5997def _get_graph_from_inputs(op_input_list, graph=None):

Callers 3

_update_inputMethod · 0.85
_add_while_inputsMethod · 0.85
_get_graph_from_inputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected