josephjaspers / blackcat_tensors

Matrix-Vector Library Designed for Neural Network Construction. cuda (gpu) support, openmp (multithreaded cpu) support, partial support of BLAS, expression template based implementation PTX code generation identical to hand written kernels, and support for auto-differentiation
12 stars 4 forks source link

Debug model is so slow. #39

Closed xinsuinizhuan closed 4 years ago

xinsuinizhuan commented 4 years ago

vs2019 debug model, to create network and load trained model file is so slow. load trained model file > 5s.

josephjaspers commented 4 years ago

Debug mode is slower because it doesn't have any optimizations. You can try to use /Zo in Visual Studio. (It has some optimizations to make it run faster, but not too many to make it hard to debug).

https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-optimized-code?view=vs-2019

xinsuinizhuan commented 4 years ago

Debug mode is slower because it doesn't have any optimizations. You can try to use /Zo in Visual Studio. (It has some optimizations to make it run faster, but not too many to make it hard to debug).

https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-optimized-code?view=vs-2019

How about the compile errors, the newest code? I can't compile it by vs2019 now, i am so hurry! error Could you repair it firstly?

josephjaspers commented 4 years ago

Fixed with: https://github.com/josephjaspers/blackcat_tensors/commit/67b6673460ad8198dd007a6f0d2183ce29f390ed

xinsuinizhuan commented 4 years ago

yes, it is ok now. I dowload the newest code, it ok! but, could you fixed the https://github.com/josephjaspers/blackcat_tensors/issues/40 problem, i use the lstm mode, but could only train, can not forcast.

josephjaspers commented 4 years ago

Closing.

Working on problem https://github.com/josephjaspers/blackcat_tensors/issues/40