Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for numBits (0.3 sec)

  1. tensorflow/compiler/mlir/lite/tests/prepare-tf-fake-quant-4bit.mlir

      ^bb0(%arg1: tensor<8xf32>, %arg2: tensor<f32>, %arg3: tensor<f32>):
        %2 = "tf.FakeQuantWithMinMaxVars"(%arg1, %arg2, %arg3) {num_bits = 3, narrow_range = false} : (tensor<8xf32>, tensor<f32>, tensor<f32>) -> tensor<8xf32>
        "tfl.yield"(%2) : (tensor<8xf32>) -> ()
      }) {num_bits = 3, narrow_range = false} :  (tensor<8xf32>, tensor<f32>, tensor<f32>) -> tensor<8xf32>
      func.return %rst : tensor<8xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/fake_quant.mlir

    // CHECK-NEXT:     } ]
    // CHECK-NEXT:     signature_defs: [ ]
    // CHECK-NEXT:   }
    
    // IMPORT: "tfl.fake_quant"(%arg0) <{max = 1.400000e+00 : f32, min = 3.000000e-01 : f32, narrow_range = false, num_bits = 6 : i32}>
    
      %0 = "tfl.fake_quant"(%arg0) {num_bits = 6 : i32, narrow_range = false, min = 0.3:f32, max = 1.4:f32} : (tensor<4 x f32>) -> tensor<4 x f32>
      func.return %0 : tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    struct ConvertStatsToQDQs : public OpRewritePattern<quantfork::StatisticsOp> {
      ConvertStatsToQDQs(int num_bits, bool narrow_range, bool is_signed,
                         bool legacy_float_scale, MLIRContext* context)
          : OpRewritePattern<quantfork::StatisticsOp>(context),
            num_bits(num_bits),
            narrow_range(narrow_range),
            is_signed(is_signed),
            legacy_float_scale(legacy_float_scale) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      }
    }
    
    // Sets the min / max, scale and zero_points from the fake quant num_bits
    // attribute from QAT.
    QuantizedType ResetMinMaxFromNumBits(const QuantizedType type,
                                         const int num_bits,
                                         const bool narrow_range,
                                         const bool is_signed) {
      if (num_bits >= 8) {
        return type;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

          quant_dim = mlir::cast<ShapedType>(res.getType()).getRank() - 1;
        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

          quant_dim = mlir::cast<ShapedType>(res.getType()).getRank() - 1;
        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

          quant_dim = input_type.getRank() - 1;
        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td

      let summary = [{
        Simulates the effect of uniform quantization with const range.
      }];
    
      let description = [{
        Given a const min, max, num_bits and narrow_range attribute, applies the
        same uniform quantization simulation as is done by the TensorFlow
        fake_quant_with_min_max_args op. See the fakeQuantAttrsToType() utility
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 03:10:59 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    				s.Label = labels
    			}
    			if len(numLabels) > 0 {
    				s.NumLabel = numLabels
    				for key, units := range numUnits {
    					if len(units) > 0 {
    						numUnits[key] = padStringArray(units, len(numLabels[key]))
    					}
    				}
    				s.NumUnit = numUnits
    			}
    		}
    
    		s.Location = locBuffer[:len(s.locationIDX)]
    		locBuffer = locBuffer[len(s.locationIDX):]
    		for i, lid := range s.locationIDX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

        """Quantizes and dequantizes hist_mids using quant_min and quant_max.
    
        Quantization converts the range of numbers from [quant_min, quant_max] to
        [0, 2^num_bits - 1]. Values less than quant_min are converted to 0, and
        values greater than quant_max are converted to 2^num_bits - 1.
    
        The histogram represents the distribution of the data, and our goal is to
        find the quant_min and quant_max that best describe this distribution. To do
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top