Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for numBits (0.17 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

      min = fakequant_op.getODSOperands(1);
      max = fakequant_op.getODSOperands(2);
      {
        auto target_attr = op->getAttrOfType<IntegerAttr>("num_bits");
        if (!target_attr)
          target_attr = rewriter.getIntegerAttr(rewriter.getIntegerType(64), 8);
        num_bits = target_attr;
      }
      {
        auto target_attr = op->getAttrOfType<BoolAttr>("narrow_range");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

        %7 = "tf.FakeQuantWithMinMaxVarsPerChannel"(%arg1, %arg2, %arg3) {device = "", narrow_range = false, num_bits = 8 : i64} : (tensor<*xf32>, tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
        "tfl.yield"(%7) : (tensor<*xf32>) -> ()
      }) {device = "", narrow_range = false, num_bits = 8 : i64} : (tensor<3x4xf32>, tensor<4xf32>, tensor<4xf32>) -> tensor<3x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        auto element_ty = input_ty.getElementType();
        auto scalar_ty = tensorflow::GetTypeFromTFTensorShape({}, element_ty);
    
        auto num_bits = op.getNumBits();
        auto narrow_range = op.getNarrowRange();
        const double bits_min = narrow_range ? 1 : 0;
        const double bits_max = (1 << num_bits) - 1;
    
        auto float_min = op.getMin();
        auto float_max = op.getMax();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top