Browse Source

new option use_packing_layout

tags/20190908
nihuini 6 years ago
parent
commit
834224fea8
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      src/option.cpp
  2. +3
    -0
      src/option.h

+ 2
- 0
src/option.cpp View File

@@ -41,6 +41,8 @@ Option::Option()
use_int8_storage = true;
use_int8_arithmetic = false;

use_packing_layout = false;

// sanitize
if (num_threads <= 0)
num_threads = 1;


+ 3
- 0
src/option.h View File

@@ -84,6 +84,9 @@ public:
bool use_fp16_arithmetic;
bool use_int8_storage;
bool use_int8_arithmetic;

//
bool use_packing_layout;
};

} // namespace ncnn


Loading…
Cancel
Save