Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetQuantParamsForSameScaleConstraint (1.96 sec)

  1. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

          if (failed(spec->scale_fn(this, op, new_items, changed))) {
            return failure();
          }
          break;
        }
        case ScaleConstraintType::OutputInputSameScale: {
          auto params = GetQuantParamsForSameScaleConstraint(op);
          if (EmptyParams(params)) {
            *changed |= false;
            break;
          }
          // propagate this params to all the quantizable ports.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

      //   - use the first one in the collection,
      // - use the single input if it is ready, or,
      // - use the single output if it is ready, or,
      // - use the first ready one in the collection.
      QuantParams GetQuantParamsForSameScaleConstraint(Operation *op);
    
      // Propagate `params` to all the quantizable port of the `op`. The adjacent
      // ops, which have the parameters propagated to, are collected by `new_items`,
    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.cc

    // - use the single input if it is ready, or,
    // - use the single output if it is ready, or,
    // - use the first ready one in the collection.
    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) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h

      // Returns the quantization parameter satisfies the same scale
      // constraints for the op. Returns an empty option if this quantization
      // parameter doesn't exist.
      QuantizedType GetQuantParamsForSameScaleConstraint(Operation* op);
    
      // Returns the state of the index-th operand of the op.
      QuantState& GetOperandQuantState(Operation* op, const int index) {
        return states_[operand_states_[{op, index}]];
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:42:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top