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

Method UnaryOp

tensorflow/core/framework/numeric_op.h:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

MatchSignatureMethod · 0.80

Tested by

no test coverage detected