Home
last modified time | relevance | path

Searched refs:immutable_states (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_context.cc196 std::vector<quant::QuantState *> mutable_states, immutable_states; in GetQuantParamsForSameScaleConstraint() local
200 immutable_states.push_back(&state); in GetQuantParamsForSameScaleConstraint()
206 int immutable_operands_num = immutable_states.size(); in GetQuantParamsForSameScaleConstraint()
211 return immutable_states.front()->params; in GetQuantParamsForSameScaleConstraint()
217 immutable_states.push_back(&state); in GetQuantParamsForSameScaleConstraint()
223 int immutable_results_num = immutable_states.size() - immutable_operands_num; in GetQuantParamsForSameScaleConstraint()
227 return immutable_states.back()->params; in GetQuantParamsForSameScaleConstraint()
235 if (!immutable_states.empty()) return immutable_states.front()->params; in GetQuantParamsForSameScaleConstraint()
Dquantization_driver.cc616 std::vector<QuantState *> mutable_states, immutable_states; in GetQuantParamsForSameScaleConstraint() local
620 immutable_states.push_back(&state); in GetQuantParamsForSameScaleConstraint()
626 int immutable_operands_num = immutable_states.size(); in GetQuantParamsForSameScaleConstraint()
631 return immutable_states.front()->params; in GetQuantParamsForSameScaleConstraint()
637 immutable_states.push_back(&state); in GetQuantParamsForSameScaleConstraint()
643 int immutable_results_num = immutable_states.size() - immutable_operands_num; in GetQuantParamsForSameScaleConstraint()
647 return immutable_states.back()->params; in GetQuantParamsForSameScaleConstraint()
651 if (!immutable_states.empty()) return immutable_states.front()->params; in GetQuantParamsForSameScaleConstraint()