- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsStorageTypeI8 (0.16 sec)
-
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc
SmallVector<double>(scales), SmallVector<int64_t>(zero_points), quantization_dimension, /*storageTypeMin=*/llvm::minIntN(32), /*storageTypeMax=*/llvm::maxIntN(32)); } bool IsStorageTypeI8(const QuantizedType quantized_type) { const Type storage_type = quantized_type.getStorageType(); return storage_type.isInteger(/*width=*/8); } bool IsStorageTypeI32(const QuantizedType quantized_type) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h
UniformQuantizedPerAxisType CreateI32F32UniformQuantizedPerAxisType( Location loc, MLIRContext& context, ArrayRef<double> scales, ArrayRef<int64_t> zero_points, int quantization_dimension); bool IsStorageTypeI8(QuantizedType quantized_type); bool IsStorageTypeI32(QuantizedType quantized_type); bool IsExpressedTypeF32(QuantizedType quantized_type); // Given a value, extract the `ElementType`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc
/*flags=*/QuantizationFlags::Signed, builder_.getI8Type(), builder_.getF32Type(), /*scale=*/1.0, /*zeroPoint=*/0, /*storageTypeMin=*/-128, /*storageTypeMax=*/127); EXPECT_TRUE(IsStorageTypeI8(qi8_type)); } TEST_F(IsI8F32UniformQuantizedTypeTest, ExpressedTypeF32Succeeds) { const UniformQuantizedType qi8_type = quant::UniformQuantizedType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.8K bytes - Viewed (0)