Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for VerifySameScales (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h

    namespace mlir {
    namespace quant {
    // Verifies that the op satisfies the same operands and results scales
    // constraints. Note that this constraint can only be applied on some
    // storage types of the op.
    LogicalResult VerifySameScales(Operation* op);
    }  // namespace quant
    
    // This includes the interface class definition. It couldn't be in a namespace
    // because the table gen doesn't emit the namespace when it is used.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

          "bool", "RequiredSameQuantizedAxes",
          (ins), [{}], [{return true;}]
        >,
      ];
    
      let verify = [{
        return quant::VerifySameScales($_op);
      }];
    }
    
    def DynamicRangeQuantizedOpInterface : OpInterface<
      "DynamicRangeQuantizedOpInterface"> {
      let description = [{
        Interface for ops dynamic range quantization is supported.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        stats_op.getResult().replaceAllUsesWith(stats_op.getArg());
        stats_op.erase();
      }
    
      // Returns false if the steps finish without errors.
      return false;
    }
    
    LogicalResult VerifySameScales(Operation* op) {
      auto same_scale_op = cast<SameScalesOpInterface>(op);
    
      SmallVector<QuantizedType, 4> collected_quant_params;
      for (Value input : op->getOperands()) {
        QuantizedType quant_params =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top