Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for numBits (0.09 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/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

        weight = array_ops.fake_quant_with_min_max_args(
            weight, min=-0.1, max=0.2, num_bits=8, narrow_range=False
        )
    
        # shape: (2, 2)
        output_tensor = math_ops.matmul(matmul_input, weight)
        # Insert fake quant to simulate a QAT model.
        output_tensor = array_ops.fake_quant_with_min_max_args(
            output_tensor, min=-0.2, max=0.2, num_bits=8, narrow_range=False
        )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  3. 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)
  4. 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