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

Function tf_fn

tensorflow/contrib/labeled_tensor/python/ops/ops.py:651–654  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

649 @tc.returns(ops.Tensor)
650 @tc.accepts(ops.Tensor)
651 def tf_fn(tensor):
652 original_axes = list(labeled_tensor.axes.values())[1:]
653 tensor_lt = core.LabeledTensor(tensor, original_axes)
654 return fn(tensor_lt).tensor
655
656 map_op = map_fn_lib.map_fn(
657 tf_fn, labeled_tensor.tensor, dtype=first_map_lt.dtype)

Callers

nothing calls this directly

Calls 2

fnFunction · 0.70
valuesMethod · 0.45

Tested by

no test coverage detected