Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for rmaxs (0.06 sec)

  1. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

        double rmin = rmins[axis];
        double rmax = rmaxs[axis];
        if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) {
          scales.push_back(1.0);
          zeroPoints.push_back(qmin);
          continue;
        }
    
        double scale;
        int64_t nudgedZeroPoint;
        getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint);
        scales.push_back(scale);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

              // supports only symmetric quantization.
              rmax = std::max(std::abs(rmin), std::abs(rmax));
              rmin = -rmax;
            }
            TensorRangeSanityCheck(op, rmin, rmax);
            mins.push_back(rmin);
            maxs.push_back(rmax);
          }
          quant_type = quantfork::fakeQuantAttrsToType(
              op.getLoc(), num_bits, *op.getAxis(), mins, maxs, narrow_range,
              expressed, is_signed);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/numerical_utils.cc

                                           std::optional<double> rmax, int32_t qmin,
                                           int32_t qmax) {
      auto quantize = [scale, zero_point](float f) {
        return zero_point + static_cast<int32_t>(std::round(f / scale));
      };
    
      if (rmin.has_value() && rmax.has_value()) {
        return {std::max(qmin, quantize(rmin.value())),
                std::min(qmax, quantize(rmax.value()))};
      } else if (rmin.has_value()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 19:57:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

          maxs[channel_index] = std::max(maxs[channel_index], ele_value);
        }
        // Expand range to include 0.
        for (int i = 0; i < dim_size; ++i) {
          maxs[i] = std::max(maxs[i], 0.0);
          mins[i] = std::min(mins[i], 0.0);
        }
        if (symmetric) {
          for (int i = 0; i < dim_size; ++i) {
            maxs[i] = std::max(std::abs(mins[i]), std::abs(maxs[i]));
            mins[i] = -maxs[i];
    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. test/codegen/floats.go

    	// arm64:"FMINS"
    	// riscv64:"FMINS"
    	// ppc64/power9:"XSMINJDP"
    	// ppc64/power10:"XSMINJDP"
    	return min(a, b)
    }
    
    func Float32Max(a, b float32) float32 {
    	// amd64:"MINSS"
    	// arm64:"FMAXS"
    	// riscv64:"FMAXS"
    	// ppc64/power9:"XSMAXJDP"
    	// ppc64/power10:"XSMAXJDP"
    	return max(a, b)
    }
    
    // ------------------------ //
    //  Constant Optimizations  //
    // ------------------------ //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.h

    /// originating op.
    quant::UniformQuantizedType fakeQuantAttrsToType(Location loc, unsigned numBits,
                                                     double rmin, double rmax,
                                                     bool narrowRange,
                                                     Type expressedType,
                                                     bool isSigned = false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/riscv/anames.go

    	"FRCSR",
    	"FSCSR",
    	"FRRM",
    	"FSRM",
    	"FRFLAGS",
    	"FSFLAGS",
    	"FSRMI",
    	"FSFLAGSI",
    	"FLW",
    	"FSW",
    	"FADDS",
    	"FSUBS",
    	"FMULS",
    	"FDIVS",
    	"FMINS",
    	"FMAXS",
    	"FSQRTS",
    	"FMADDS",
    	"FMSUBS",
    	"FNMADDS",
    	"FNMSUBS",
    	"FCVTWS",
    	"FCVTLS",
    	"FCVTSW",
    	"FCVTSL",
    	"FCVTWUS",
    	"FCVTLUS",
    	"FCVTSWU",
    	"FCVTSLU",
    	"FSGNJS",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:19:33 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

          SmallVector<double, 4> maxs(1, std::numeric_limits<double>::min());
          // Computes the effective min/max values of the attribute values.
          quant::ExtractMinMaxFromAttr(attr, /*dim_size=*/1, /*slice_size=*/1,
                                       /*symmetric=*/true, mins, maxs);
          double scale = maxs[0] / -llvm::minIntN(tensor_property.number_of_bits);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      }
      auto mins = tensor.quantization->min;
      auto maxs = tensor.quantization->max;
      if (mins.size() != maxs.size() || mins.empty()) return nullptr;
    
      llvm::SmallVector<llvm::APFloat, 4> min_maxs;
      min_maxs.reserve(mins.size() * 2);
      for (int i = 0, end = mins.size(); i < end; ++i) {
        llvm::APFloat min(mins[i]);
        llvm::APFloat max(maxs[i]);
        min_maxs.push_back(min);
        min_maxs.push_back(max);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/riscv64.s

    	FADDS	F1, F0, F2				// 53011000
    	FSUBS	F1, F0, F2				// 53011008
    	FMULS	F1, F0, F2				// 53011010
    	FDIVS	F1, F0, F2				// 53011018
    	FMINS	F1, F0, F2				// 53011028
    	FMAXS	F1, F0, F2				// 53111028
    	FSQRTS	F0, F1					// d3000058
    
    	// 11.7: Single-Precision Floating-Point Conversion and Move Instructions
    	FCVTWS	F0, X5					// d31200c0
    	FCVTWS.RNE	F0, X5				// d30200c0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top