Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CanBeSymmetricallyQuantized (0.34 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

    def SupportedAffineOpMatcher : NativeCodeCall<
      "MatchSupportedAffineOp($_self, $0, $1, $2)">;
    
    // Checks if a value can be symetrically quantized.
    def CanBeSymmetricallyQuantized : Constraint<CPred<"CanBeSymmetricallyQuantized($0)">>;
    
    // Multiplies the value followed by a FakeQuant op and adjusts its params.
    def MultiplyFakeQuantValue : NativeCodeCall<
      "MultiplyFakeQuantValue($_builder, $_loc, $0...)">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

          loc, value, Create1DConstValue(builder, loc, new_shape));
      return ConstantFoldOpIfPossible(reshape_op).front();
    }
    
    // Checks if a value can be symmetrically quantized.
    bool CanBeSymmetricallyQuantized(Value weight) {
      auto dq_op = weight.getDefiningOp<quantfork::DequantizeCastOp>();
      if (!dq_op) return true;
    
      auto qtype =
          mlir::cast<TensorType>(dq_op.getArg().getType()).getElementType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top