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

Function ragged_op_list

tensorflow/python/ops/ragged/ragged_dispatch.py:555–571  ·  view source on GitHub ↗

Returns a string listing operators that have dispathers registered.

(tf_version=1)

Source from the content-addressed store, hash-verified

553
554
555def ragged_op_list(tf_version=1):
556 """Returns a string listing operators that have dispathers registered."""
557 lines = []
558 for op in _UNARY_ELEMENTWISE_OPS + _UNARY_LIST_ELEMENTWISE_OPS:
559 if _op_is_in_tf_version(op, tf_version):
560 lines.append(_ragged_op_signature(op, [0]))
561 for op in _BINARY_ELEMENTWISE_OPS:
562 if _op_is_in_tf_version(op, tf_version):
563 lines.append(_ragged_op_signature(op, [0, 1]))
564 for op, _, ragged_args in _RAGGED_DISPATCH_OPS:
565 if _op_is_in_tf_version(op, tf_version):
566 arginfos = _get_arg_infos(op, ragged_args)
567 ragged_args = [arginfo.position for arginfo in arginfos]
568 lines.append(_ragged_op_signature(op, ragged_args))
569 return ('\n\n### Additional ops that support `RaggedTensor`\n\n'
570 'Arguments that accept `RaggedTensor`s are marked in **bold**.\n\n' +
571 '\n'.join(sorted(lines)) + 'n')
572
573
574register_dispatchers()

Callers

nothing calls this directly

Calls 5

_op_is_in_tf_versionFunction · 0.85
_ragged_op_signatureFunction · 0.85
_get_arg_infosFunction · 0.85
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected