Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for isAligned (0.13 sec)

  1. test/typeparam/issue54497.go

    package testcase
    
    type C interface{ ~uint | ~uint32 | ~uint64 }
    
    func isAligned[T C](x, y T) bool { // ERROR "can inline isAligned\[uint\]" "can inline isAligned\[go\.shape\.uint\]" "inlining call to isAligned\[go\.shape\.uint\]"
    	return x%y == 0
    }
    
    func foo(x uint) bool { // ERROR "can inline foo"
    	return isAligned(x, 64) // ERROR "inlining call to isAligned\[go\.shape\.uint\]"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:26:40 UTC 2022
    - 618 bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor.cc

    Status TensorInterface::ToTensor(tensorflow::Tensor* dst) const {
      *dst = tensor_;
      return absl::OkStatus();
    }
    
    bool TensorInterface::IsAligned() const { return tensor_.IsAligned(); }
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/c/tensor_interface.h

      // Return size in bytes of the Tensor
      virtual size_t ByteSize() const = 0;
      // Returns a pointer to tensor data
      virtual void* Data() const = 0;
    
      // Returns if the tensor is aligned
      virtual bool IsAligned() const = 0;
      // Returns if their is sole ownership of this Tensor and thus it can be moved.
      virtual bool CanMove() const = 0;
    
      virtual std::string SummarizeValue() const = 0;
    
     protected:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 09 23:17:07 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor_internal.h

      int NumDims() const override;
      int64_t Dim(int dim_index) const override;
      int64_t NumElements() const override;
      size_t ByteSize() const override;
      void* Data() const override;
      bool IsAligned() const override;
      bool CanMove() const override;
      std::string SummarizeValue() const override;
    
      void SetShape(const int64_t* dims, int num_dims);
      Status ToTensor(tensorflow::Tensor* dst) const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

                                         const bool narrow_range,
                                         const bool is_signed) {
      if (num_bits >= 8) {
        return type;
      }
      int64_t qmin = QType::getDefaultMinimumForInteger(is_signed, num_bits);
      int64_t qmax = QType::getDefaultMaximumForInteger(is_signed, num_bits);
      if (narrow_range) {
        qmin += 1;
      }
      const int64_t storage_type_min = type.getStorageTypeMin();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h

            storage_bit_width_(storage_bit_width),
            is_signed_(is_signed),
            round_mode_(APFloat::rmNearestTiesToAway) {}
    
      UniformQuantizedValueConverter(double scale, double zero_point,
                                     const APFloat& clamp_min,
                                     const APFloat& clamp_max,
                                     uint32_t storage_bit_width, bool is_signed)
          : scale_(scale),
            zero_point_(zero_point),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

      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)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

                /*narrowRange=*/true, expressed,
                /*isSigned=*/true);
          } else {
            quant_type = quantfork::fakeQuantAttrsToType(
                op.getLoc(), tensor_property.number_of_bits, min, max,
                /*narrowRange=*/false, expressed,
                /*isSigned=*/true);
          }
          if (quant_specs_.legacy_float_scale) {
    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/transforms/prepare_quantize_helper.cc

    }
    
    tensorflow::DataType GetQuantizedInferenceType(bool is_signed,
                                                   int number_of_bits) {
      if (is_signed && number_of_bits == 8) {
        return tensorflow::DT_QINT8;
      } else if (!is_signed && number_of_bits == 8) {
        return tensorflow::DT_QUINT8;
      } else if (is_signed && number_of_bits == 16) {
        return tensorflow::DT_QINT16;
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 12:08:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

                                                     bool isSigned) {
      MLIRContext *ctx = expressedType.getContext();
      unsigned flags = isSigned ? quant::QuantizationFlags::Signed : 0;
      Type storageType;
      int64_t qmin;
      int64_t qmax;
      if (getDefaultStorageParams(numBits, narrowRange, isSigned, ctx, storageType,
                                  qmin, qmax)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top