Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for QuantState (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc

      for (const auto& arg : quantization_driver.GetArgs()) {
        const QuantState& state = quantization_driver.GetArgQuantState(arg);
        EXPECT_TRUE(isa<quant::QuantizedType>(state.params));
      }
      for (const auto& result : quantization_driver.GetResultStates()) {
        Operation* op = result.first.first;
        const int res_index = result.first.second;
        const QuantState state =
            quantization_driver.GetResultQuantState(op, res_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. 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)
Back to top