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

Function _op_is_in_tf_version

tensorflow/python/ops/ragged/ragged_dispatch.py:545–552  ·  view source on GitHub ↗
(op, version)

Source from the content-addressed store, hash-verified

543
544
545def _op_is_in_tf_version(op, version):
546 if version == 1:
547 return (tf_export.get_v1_names(tf_decorator.unwrap(op)[1]) or
548 op in _V2_OPS_THAT_ARE_DELEGATED_TO_FROM_V1_OPS)
549 elif version == 2:
550 return tf_export.get_v2_names(tf_decorator.unwrap(op)[1])
551 else:
552 raise ValueError('Expected version 1 or 2.')
553
554
555def ragged_op_list(tf_version=1):

Callers 1

ragged_op_listFunction · 0.85

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected