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

Function batchnorm

sgx_tf_ops/App/App.cpp:624–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624void batchnorm(unsigned long int eid, float* input,float* scale,float* offset,float* mean_x,float* variance, int N,int M,int H,int W, float* output,float epsilon){
625 sgx_status_t ret = ecall_batchnorm(eid,input,scale,offset,mean_x,variance,N,M,H,W,output,epsilon);
626 if (ret != SGX_SUCCESS) {
627 print_error_message(ret);
628 throw ret;
629 }
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);

Callers

nothing calls this directly

Calls 2

ecall_batchnormFunction · 0.85
print_error_messageFunction · 0.85

Tested by

no test coverage detected