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

Function clip_grad

sgx_tf_ops/App/App.cpp:502–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void clip_grad(unsigned long int eid, float *input, float *grad, float* down, float* up,int n1,int n2,int N, float *output){
503 sgx_status_t ret = ecall_clip_grad(eid,input,grad,down,up,n1,n2,N,output);
504 if (ret != SGX_SUCCESS) {
505 print_error_message(ret);
506 throw ret;
507 }
508}
509
510void reducemax_one(unsigned long int eid, float *input,int N,int M,int C,int L, float *output){
511 sgx_status_t ret = ecall_reducemax_one(eid,input,N,M,C,L,output);

Callers

nothing calls this directly

Calls 2

ecall_clip_gradFunction · 0.85
print_error_messageFunction · 0.85

Tested by

no test coverage detected