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

Class UnaryOp

tensorflow/core/framework/numeric_op.h:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// One input and one output, both the same type.
29template <class T>
30class UnaryOp : public OpKernel {
31 public:
32 explicit UnaryOp(OpKernelConstruction* context) : OpKernel(context) {
33 const DataType dt = DataTypeToEnum<T>::v();
34 OP_REQUIRES_OK(context, context->MatchSignature({dt}, {dt}));
35 }
36};
37
38// Two inputs and one output, all the same type.
39template <class T>

Callers 11

UnaryFunction · 0.50
TESTFunction · 0.50
UnaryFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TEST_FFunction · 0.50
TESTFunction · 0.50
TEST_FFunction · 0.50
TEST_PFunction · 0.50

Calls

no outgoing calls

Tested by 10

UnaryFunction · 0.40
TESTFunction · 0.40
UnaryFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TEST_FFunction · 0.40
TESTFunction · 0.40
TEST_FFunction · 0.40
TEST_PFunction · 0.40