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

Function to_tensor

tensorflow/python/ops/ragged/ragged_conversion_ops.py:49–53  ·  view source on GitHub ↗
(rt_input, default_value=None, name=None)

Source from the content-addressed store, hash-verified

47
48
49def to_tensor(rt_input, default_value=None, name=None):
50 if ragged_tensor.is_ragged(rt_input):
51 return rt_input.to_tensor(default_value, name)
52 else:
53 return rt_input
54
55
56def _get_row_partition_type_tensor_pairs_tail(rt_value):

Callers

nothing calls this directly

Calls 2

is_raggedMethod · 0.80
to_tensorMethod · 0.80

Tested by

no test coverage detected