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

Method ESampleOp

en_ops/e_sample.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38{
39public:
40 explicit ESampleOp(OpKernelConstruction *context) : OpKernel(context)
41 {
42 OP_REQUIRES_OK(context, context->GetAttr("nums", &nums_));
43 OP_REQUIRES_OK(context, context->GetAttr("eid_low", &eid_low_));
44 OP_REQUIRES_OK(context, context->GetAttr("eid_high", &eid_high_));
45 OP_REQUIRES_OK(context, context->GetAttr("times", &times_));
46 lib = dlopen("/home/zhangyan/jhrsgx/privacy_test/privacy_tf/sgx_tf_ops/sgx.so", RTLD_LAZY);
47 OP_REQUIRES(context, lib != NULL, errors::Unknown("Unable to load sgx.so!"));
48 }
49 void Compute(OpKernelContext *context) override
50 {
51 const Tensor &input1 = context->input(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected