ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

Question about Pnnx_Parameter

Open Crucifixion-Fxl opened this issue 1 year ago • 1 comments

detail | 详细描述 | 詳細な説明

Hello, I am currently studying your code on pnnx, and I have a question regarding the following code. I’m wondering if it could potentially lead to memory wastage. I would greatly appreciate your insights. Thank you!

pnnx

    bool b;
    int i;
    float f;
    std::complex<float> c;
    std::vector<int> ai;
    std::vector<float> af;
    std::vector<std::complex<float> > ac;

Crucifixion-Fxl avatar Feb 23 '25 01:02 Crucifixion-Fxl

Yes, it's a bit wasteful here, if you'd like to improve it, pull requests are welcome

nihui avatar Apr 11 '25 08:04 nihui