Browse Source

enable packing_layout by default

tags/20200413
nihui 6 years ago
parent
commit
d85b2bc285
2 changed files with 7 additions and 3 deletions
  1. +1
    -1
      src/option.cpp
  2. +6
    -2
      src/option.h

+ 1
- 1
src/option.cpp View File

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

use_packing_layout = false;
use_packing_layout = true;

use_shader_pack8 = false;



+ 6
- 2
src/option.h View File

@@ -85,12 +85,16 @@ public:
bool use_int8_storage;
bool use_int8_arithmetic;

//
// enable simd-friendly packed memory layout
// improve all operator performace on all arm devices, will consume more memory
// changes should be applied before loading network structure and weight
// enabled by default
bool use_packing_layout;

bool use_shader_pack8;

// enable options for cpu inference
// enable bf16 data type for storage
// improve most operator performace on all arm devices, may consume more memory
bool use_bf16_storage;
};



Loading…
Cancel
Save