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

Function _finalize_index

tensorflow/contrib/graph_editor/subgraph.py:39–44  ·  view source on GitHub ↗

Returns index as is or return index of tensor in `ts`.

(index_or_t, ts)

Source from the content-addressed store, hash-verified

37
38
39def _finalize_index(index_or_t, ts):
40 """Returns index as is or return index of tensor in `ts`."""
41 if isinstance(index_or_t, six.integer_types):
42 return index_or_t
43 else:
44 return ts.index(index_or_t)
45
46
47def _finalize_indices(list_of_index_or_t, ts):

Callers 1

_finalize_indicesFunction · 0.85

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected