- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for QuantState (0.16 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
QuantizedType QuantizationDriver::GetQuantParamsForSameScaleConstraint( Operation* op) { // Two vector to collect Non-empty operands and results states. std::vector<QuantState*> mutable_states, immutable_states; for (int i = 0; i < op->getNumOperands(); ++i) { QuantState& state = GetOperandQuantState(op, i); if (state.immutable) { immutable_states.push_back(&state); } else if (!state.IsEmpty()) {
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/lite/quantization/quantization_context.h
// Returns the state of the index-th operand of the op. QuantState &GetOperandQuantState(Operation *op, int index) { return states_[operand_states_[{op, index}]]; } // Returns the state of the index-th result of the op. QuantState &GetResultQuantState(Operation *op, int index) { return 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.h
} DenseMap<OpWithResultIndex, QuantStateIndex> result_states_; // Returns the state of the block argument. QuantState& GetArgQuantState(BlockArgument arg) { return states_[arg_states_[arg]]; } // Returns the state of the index-th result of the op. QuantState& GetResultQuantState(Operation* op, const int index) { return states_[result_states_[{op, index}]]; } private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/quantization_context.cc
// - use the first ready one in the collection. QuantParams QuantizeContext::GetQuantParamsForSameScaleConstraint( Operation *op) { // Two vector to collect Non-empty operands and results states. std::vector<quant::QuantState *> mutable_states, immutable_states; for (int i = 0, e = op->getNumOperands(); i != e; ++i) { auto &state = states_manager_.GetOperandQuantState(op, i); if (state.immutable) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 13.1K bytes - Viewed (0)