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

Function op

tensorflow/contrib/labeled_tensor/python/ops/core.py:1077–1092  ·  view source on GitHub ↗

LabeledTensor version of `tf.{op_name}`. See `tf.{op_name}` for full details. Args: labeled_tensor: Input tensor. name: Optional op name. Returns: A LabeledTensor with result of applying `tf.{op_name}` elementwise.

(labeled_tensor, name=None)

Source from the content-addressed store, hash-verified

1075 @tc.returns(LabeledTensor)
1076 @tc.accepts(LabeledTensorLike, tc.Optional(string_types))
1077 def op(labeled_tensor, name=None):
1078 """LabeledTensor version of `tf.{op_name}`.
1079
1080 See `tf.{op_name}` for full details.
1081
1082 Args:
1083 labeled_tensor: Input tensor.
1084 name: Optional op name.
1085
1086 Returns:
1087 A LabeledTensor with result of applying `tf.{op_name}` elementwise.
1088 """
1089 with ops.name_scope(name, default_name, [labeled_tensor]) as scope:
1090 labeled_tensor = convert_to_labeled_tensor(labeled_tensor)
1091 result_tensor = elementwise_function(labeled_tensor.tensor, name=scope)
1092 return LabeledTensor(result_tensor, labeled_tensor.axes)
1093
1094 op.__doc__ = op.__doc__.format(op_name=op_name)
1095 op.__name__ = op_name

Callers

nothing calls this directly

Calls 4

LabeledTensorClass · 0.85
alignFunction · 0.85
name_scopeMethod · 0.45

Tested by

no test coverage detected