Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for calibrate (0.21 sec)

  1. src/unicode/letter_test.go

    // of an effective cutoff value. In practice we could probably set it higher
    // than what this function recommends.
    
    var calibrate = flag.Bool("calibrate", false, "compute crossover for linear vs. binary search")
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    	if runtime.GOARCH == "amd64" {
    		fmt.Printf("warning: running calibration on %s\n", runtime.GOARCH)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto

    // https://www.tensorflow.org/tutorials/load_data/tfrecord for details on the
    // TFRecord format.
    // Next ID: 2
    message TfRecordFile {
      string path = 1;
    }
    
    // Configures a single representative dataset used to calibrate a single
    // function.
    // Next ID: 3
    message RepresentativeDatasetConfig {
      oneof file {
        // Represents representative dataset saved as a .tfrecord file format.
        TfRecordFile tf_record = 1;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. src/unicode/letter.go

    // [Upper] [Lower] [Upper] [Lower].
    const (
    	UpperLower = MaxRune + 1 // (Cannot be a valid delta.)
    )
    
    // linearMax is the maximum size table for linear search for non-Latin1 rune.
    // Derived by running 'go test -calibrate'.
    const linearMax = 18
    
    // is16 reports whether r is in the sorted slice of 16-bit ranges.
    func is16(ranges []Range16, r uint16) bool {
    	if len(ranges) <= linearMax || r <= MaxLatin1 {
    		for i := range ranges {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

    from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2
    from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_algorithm
    from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_statistics_pb2
    from tensorflow.compiler.mlir.quantization.tensorflow.python import pywrap_function_lib
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics.pb.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_average_min_max.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_histogram.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_min_max.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    #include "tsl/platform/status.h"
    #include "tsl/platform/status_matchers.h"
    
    namespace tensorflow {
    namespace {
    
    using ::stablehlo::quantization::CalibrationOptions;
    using ::tensorflow::calibrator::CalibrationStatistics;
    using ::tensorflow::calibrator::CalibrationStatisticsMap;
    using ::testing::Contains;
    using ::testing::ElementsAre;
    using ::testing::HasSubstr;
    using ::testing::Key;
    using ::testing::SizeIs;
    using ::tsl::testing::StatusIs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/tests/canonicalize.mlir

    // CHECK: return %[[scale]], %[[zp]]
    }
    
    // CHECK-LABEL: quant_qparam_invalid
    func.func @quant_qparam_invalid(%arg0: tensor<1x3x!quant.calibrated<f32<-1.0:1.0>>>) -> (!tfr.tensor, !tfr.tensor) {
      %0 = "tfr.cast"(%arg0) : (tensor<1x3x!quant.calibrated<f32<-1.0:1.0>>>) -> !tfr.tensor
      %scale, %zp = tfr.quant_qparam(%0) : (!tfr.tensor) -> (!tfr.tensor, !tfr.tensor)
      func.return %scale, %zp: !tfr.tensor, !tfr.tensor
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

          // Quantize inputs of quantizable composite functions.
          for (OpOperand &input : op->getOpOperands()) {
            Type element_type = getElementTypeOrSelf(input.get().getType());
            // Non-float cases won't be calibrated.
            if (!element_type.isF32()) {
              continue;
            }
    
            // Skip when there is any already existing CustomAggregatorOp found.
            Operation *defining_op = input.get().getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/prepare-quantize-post-training-16bits.mlir

        %9, %9,
        %recurrent_stats, %cell_stats,
        %9, %9, %9, %9) {
          asymmetric_quantize_inputs = false,
          cell_clip = 1.000000e+01 : f32,
          effective_hidden_scale_intermediate = tensor<0x!quant.calibrated<f32<0.0:1.0>>>,
          fused_activation_function = "TANH",
          input_to_cell_intermediate = tensor<0xf32>,
          input_to_forget_intermediate = tensor<0xf32>,
          input_to_input_intermediate = tensor<0xf32>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

                                           elem_type.getIntOrFloatBitWidth());
      }
    
      // Intermediate tensors with calibration value (but not scale and zero points)
      // should return calibrated quantized type.
      if (is_intermediate && tensor.quantization != nullptr &&
          !IsQuantized(tensor)) {
        TF_ASSIGN_OR_RETURN(elem_type, GetCalibratedQuantizedType(tensor, builder));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top