ermig1979 / Synet

A small framework to infer neural network
MIT License
140 stars 26 forks source link

Assertion failed in SoftmaxLayer #32

Closed edward9112 closed 1 year ago

edward9112 commented 1 year ago
Program: \bin\x64\Debug\Simd.dll
File: \src\Simd\SimdMemory.h
Line: 161

Expression: nose[i] == NO_MANS_LAND_WATERMARK
    Simd.dll!Simd::Free(void * ptr) Line 161    C++
    Simd.dll!Simd::Array<float>::~Array<float>() Line 47    C++
    Simd.dll!Simd::Avx2::SynetSoftmaxLayerForwardX1(const float * src, unsigned __int64 outer, unsigned __int64 count, float * dst) Line 278    C++
    Simd.dll!Simd::Avx2::SynetSoftmaxLayerForward(const float * src, unsigned __int64 outer, unsigned __int64 count, unsigned __int64 inner, float * dst) Line 290  C++
    Simd.dll!SimdSynetSoftmaxLayerForward(const float * src, unsigned __int64 outer, unsigned __int64 count, unsigned __int64 inner, float * dst) Line 6763 C++
    Lib.dll!Synet::Detail::SoftmaxLayerForwardCpu<float>(const float * src, unsigned __int64 outer, unsigned __int64 count, unsigned __int64 inner, float * dst) Line 133   C++
    Lib.dll!Synet::SoftmaxLayer<float>::ForwardCpu(const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & src, const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & buf, const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & dst) Line 168 C++
    Lib.dll!Synet::Layer<float>::Forward(const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & src, const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & buf, const std::vector<Synet::Tensor<float> *,std::allocator<Synet::Tensor<float> *>> & dst) Line 147   C++
    Lib.dll!Synet::Network<float>::Forward() Line 406   C++
ermig1979 commented 1 year ago

Hi! Thank you for bug report! I reproduced and fixed the bug.

edward9112 commented 1 year ago

It works!!! Thank you!!!