| 806 | } |
| 807 | |
| 808 | void softmax_cross_entropy(unsigned long int eid,float* pred,int N,int M,int C,float* real,float* output){ |
| 809 | sgx_status_t ret = ecall_softmax_cross_entropy(eid,pred,N,M,C,real,output); |
| 810 | if (ret != SGX_SUCCESS) { |
| 811 | print_error_message(ret); |
| 812 | throw ret; |
| 813 | } |
| 814 | |
| 815 | } |
| 816 | void softmax_cross_entropy_grad(unsigned long int eid,float* pred,float* grad, int N, int M,int C,float* real,float* output,float* grad_r){ |
| 817 | sgx_status_t ret = ecall_softmax_cross_entropy_grad(eid,pred,grad,N,M,C,real,output,grad_r); |
| 818 | if (ret != SGX_SUCCESS) { |
nothing calls this directly
no test coverage detected