File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
onnxruntime/core/providers/migraphx Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -209,12 +209,12 @@ MIGraphXExecutionProvider::MIGraphXExecutionProvider(const MIGraphXExecutionProv
209209 int8_use_native_migraphx_calibration_table_env.empty () ? info.int8_use_native_calibration_table : std::stoi (int8_use_native_migraphx_calibration_table_env) != 0 ;
210210 }
211211
212- if (int8_enable_ || fp8_enable_) {
213- int8_calibration_cache_available_ = !info. int8_calibration_table_name .empty ();
214- }
212+ int8_calibration_cache_available_ =
213+ (int8_enable_ || fp8_enable_) && !int8_calibration_table_name_ .empty ();
214+
215215
216216 // Load INT8 calibration table
217- if ((int8_enable_ || fp8_enable_) && int8_calibration_cache_available_) {
217+ if (int8_calibration_cache_available_) {
218218 std::unordered_map<std::string, float > dynamic_range_map;
219219 auto calibration_cache_path = GetCachePath (calibration_cache_path_, int8_calibration_table_name_);
220220 if (!ReadDynamicRange (calibration_cache_path, int8_use_native_calibration_table_, dynamic_range_map)) {
You can’t perform that action at this time.
0 commit comments