Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for arg_states_ (0.1 sec)

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

      if (!inserted) {
        arg_states_[arg] = cached->second;
        return;
      }
    
      const QuantizedType quantized_type =
          QuantizedType::getQuantizedElementType(arg_value.getType());
      const bool immutable = quantized_type != nullptr;
      const QuantizationDriver::QuantStateIndex next_state_index = states_.size();
      states_.push_back({quantized_type, immutable});
      arg_states_[arg] = next_state_index;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
Back to top