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

Function ragged_factory

tensorflow/python/ops/ragged/ragged_factory_ops.py:80–83  ·  view source on GitHub ↗
(values, row_splits)

Source from the content-addressed store, hash-verified

78 depth; or if ragged_rank or inner_shape are incompatible with `pylist`.
79 """
80 def ragged_factory(values, row_splits):
81 row_splits = constant_op.constant(row_splits, dtype=row_splits_dtype)
82 return ragged_tensor.RaggedTensor.from_row_splits(values, row_splits,
83 validate=False)
84
85 with ops.name_scope(name, "RaggedConstant"):
86 return _constant_value(ragged_factory, constant_op.constant, pylist, dtype,

Callers 1

_constant_valueFunction · 0.85

Calls 2

from_row_splitsMethod · 0.80
constantMethod · 0.45

Tested by

no test coverage detected