parameters: ()
docstring: Constructs & registers OpDispatchers for ragged ops.
docstring_summary: Constructs & registers OpDispatchers for ragged ops.
docstring_tokens: Constructs & registers OpDispatchers for ragged ops .
function: def register_dispatchers():
    """Constructs & registers OpDispatchers for ragged ops."""
  
    op_list = (
        _UNARY_ELEMENTWISE_OPS + _UNARY_LIST_ELEMENTWISE_OPS +
        _BINARY_ELEMENTWISE_OPS + [x[0] for x in _RAGGED_DISPATCH_OPS])
    for op in op_list:
      _, undecorated_op = tf_decorator.unwrap(op)
      if not hasattr(undecorated_op,
                     tf_export.API_ATTRS[tf_export.TENSORFLOW_API_NAME].names):
        raise AssertionError('Expected %s to be an exported symbol '
                             '(while adding a RaggedTensor dispatcher)')
  
    for op in _UNARY_ELEMENTWISE_OPS:
      UnaryRaggedElementwiseDispatcher(op).register(op)
  
    for op in _UNARY_LIST_ELEMENTWISE_OPS:
      UnaryRaggedElementwiseDispatcher(op, True).register(op)
  
    for op in _BINARY_ELEMENTWISE_OPS:
      BinaryRaggedElementwiseDispatcher(op).register(op)
  
    for (original_op, ragged_op, args) in _RAGGED_DISPATCH_OPS:
      RaggedDispatcher(original_op, ragged_op, args).register(original_op)
function_tokens: def register_dispatchers ( ) : op_list = ( _UNARY_ELEMENTWISE_OPS + _UNARY_LIST_ELEMENTWISE_OPS + _BINARY_ELEMENTWISE_OPS + [ x [ 0 ] for x in _RAGGED_DISPATCH_OPS ] ) for op in op_list : _ , undecorated_op = tf_decorator . unwrap ( op ) if not hasattr ( undecorated_op , tf_export . API_ATTRS [ tf_export . TENSORFLOW_API_NAME ] . names ) : raise AssertionError ( 'Expected %s to be an exported symbol ' '(while adding a RaggedTensor dispatcher)' ) for op in _UNARY_ELEMENTWISE_OPS : UnaryRaggedElementwiseDispatcher ( op ) . register ( op ) for op in _UNARY_LIST_ELEMENTWISE_OPS : UnaryRaggedElementwiseDispatcher ( op , True ) . register ( op ) for op in _BINARY_ELEMENTWISE_OPS : BinaryRaggedElementwiseDispatcher ( op ) . register ( op ) for ( original_op , ragged_op , args ) in _RAGGED_DISPATCH_OPS : RaggedDispatcher ( original_op , ragged_op , args ) . register ( original_op )