- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RequantizeState (0.33 sec)
-
tensorflow/compiler/mlir/lite/quantization/quantization_context.cc
auto &requantize = states_manager_.GetOperandRequantizeState(op, i); if (state.IsEmpty() && requantize.pos == RequantizeState::NO_REQUANTIZE) { input_specs.push_back(original_input_specs[i]); } else if (requantize.pos == RequantizeState::ON_OUTPUT) { input_specs.push_back(TypeAttr::get(requantize.params)); } else { input_specs.push_back(TypeAttr::get(state.params));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/quantization_context.h
} // Returns the state of the index-th operand of the op. RequantizeState &GetOperandRequantizeState(Operation *op, int index) { return rescale_states_[operand_states_[{op, index}]]; } // Returns the state of the index-th result of the op. RequantizeState &GetResultRequantizeState(Operation *op, int index) { return rescale_states_[result_states_[{op, index}]]; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
RequantizeStates& rescales = GetOperandRequantizeStates(op, operand_index); for (RequantizeState& rescale : rescales) { if (rescale.params == quantized_type) { rescale.users.emplace_back(op, operand_index); return true; } } RequantizeState& rescale = rescales.emplace_back(); rescale.pos = RequantizeState::ON_OUTPUT; rescale.params = quantized_type;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h
// The state for rescaling the propagated quantization parameters. This can be // on the input side to satisfy the constraint of previous operation, or on the // output side to satisfy the constraint of the next operation. struct RequantizeState { // Sometimes, we have to "requantize" the quantization result to satisfy all // the constraints. The "requantize" can happen either on the input or output // of the quantization result. enum RequantizePosition {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K bytes - Viewed (0)