MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / ESigmoidGradOp

Method ESigmoidGradOp

en_ops/e_sigmoid.cc:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74{
75public:
76 explicit ESigmoidGradOp(OpKernelConstruction *context) : OpKernel(context)
77 {
78 OP_REQUIRES_OK(context, context->GetAttr("eid_low", &eid_low_));
79 OP_REQUIRES_OK(context, context->GetAttr("eid_high", &eid_high_));
80 OP_REQUIRES_OK(context, context->GetAttr("times", &times_));
81 lib = dlopen("/home/zhangyan/jhrsgx/privacy_test/privacy_tf/sgx_tf_ops/sgx.so", RTLD_LAZY);
82 OP_REQUIRES(context, lib != NULL, errors::Unknown("Unable to load sgx.so!"));
83 }
84 void Compute(OpKernelContext *context) override
85 {
86 const Tensor &grad = context->input(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected