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

Function batchnorm_grad

sgx_tf_ops/App/App.cpp:632–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void batchnorm_grad(unsigned long int eid, float* input,float* grad,float* scale,float* offset,float* mean_x,float* variance, int N,int M,int H,int W, float* grad_in,float* grad_sc,float* grad_off,float* grad_mean,float* grad_var,float epsilon){
633 sgx_status_t ret = ecall_batchnorm_grad(eid,input,grad,scale,offset,mean_x,variance,N,M,H,W,grad_in,grad_sc,grad_off,grad_mean,grad_var,epsilon);
634 if (ret != SGX_SUCCESS) {
635 print_error_message(ret);
636 throw ret;
637 }
638}
639
640void dot(unsigned long int eid, float* input1,float* input2, int N1, int N2,int* shape1, int* shape2,int ndims ,float* output){
641 sgx_status_t ret = ecall_dot(eid,input1,input2,N1,N2,shape1,shape2,ndims,output);

Callers

nothing calls this directly

Calls 2

ecall_batchnorm_gradFunction · 0.85
print_error_messageFunction · 0.85

Tested by

no test coverage detected