mpc-msri / EzPC

MIT License
401 stars 122 forks source link

error: cannot resolve overloaded function ‘type_cast’ based on conversion to type ‘long int’ #195

Open 000HuangWenfeng000 opened 1 year ago

000HuangWenfeng000 commented 1 year ago

/home/lab/test06/EzPC/inference-app/play/EzPC/OnnxBridge/LLAMA/../../sytorch/include/sytorch/tensor.h:238:41: error: expected ‘;’ before ‘d’ 238 | data[new_idx] = type_cast d; | ^~ | ; /home/lab/test06/EzPC/inference-app/play/EzPC/OnnxBridge/LLAMA/../../sytorch/include/sytorch/tensor.h: In instantiation of ‘void Tensor::input_nchw(int) [with T = long int]’: /home/lab/test06/EzPC/inference-app/play/chexpert_LLAMA_15.cpp:1079:31: required from here /home/lab/test06/EzPC/inference-app/play/EzPC/OnnxBridge/LLAMA/../../sytorch/include/sytorch/tensor.h:238:27: error: cannot resolve overloaded function ‘type_cast’ based on conversion to type ‘long int’ 238 | data[new_idx] = type_cast d; | ~~~~^~~~ /home/lab/test06/EzPC/inference-app/play/EzPC/OnnxBridge/LLAMA/../../sytorch/include/sytorch/tensor.h: In instantiation of ‘void Tensor::input_nchw(int) [with T = long unsigned int]’: /home/lab/test06/EzPC/inference-app/play/chexpert_LLAMA_15.cpp:1113:32: required from here /home/lab/test06/EzPC/inference-app/play/EzPC/OnnxBridge/LLAMA/../../sytorch/include/sytorch/tensor.h:238:27: error: cannot resolve overloaded function ‘type_cast’ based on conversion to type ‘long unsigned int’ make[2]: [CMakeFiles/chexpert_LLAMA_15.dir/build.make:76:CMakeFiles/chexpert_LLAMA_15.dir/home/lab/test06/EzPC/inference-app/play/chexpert_LLAMA_15.cpp.o] 错误 1 make[2]: 正在等待未完成的任务....