- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Int4 (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc
{tsl::float8_e4m3fn{1.0}, tsl::float8_e4m3fn{-1.0}}, DT_FLOAT8_E4M3FN, mlir::FloatType::getFloat8E4M3FN(&context))); ASSERT_NO_FATAL_FAILURE(VerifyConversion<int4>( {static_cast<int4>(1), static_cast<int4>(-1)}, DT_INT4, mlir::IntegerType::get(&context, 4, mlir::IntegerType::SignednessSemantics::Signed))); ASSERT_NO_FATAL_FAILURE(VerifyConversion<int8>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc
// checking if all values within that tensor are within the range. // This pass is added to aid conversion of models that involve types not // available in TF such as INT4, and ideally should be removed in favor of // stronger type propagation. #include <cstdint> #include <memory> #include <utility> #include "mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants.mlir
%0 = "tfl.pseudo_const"() {value = dense<[222, 173, 190, 239]> : tensor<4xui8>} : () -> tensor<4xui8> func.return %0 : tensor<4xui8> } func.func @int4() -> tensor<5xi4> { // CHECK-LABEL: @int4 // CHECK: value = dense<[6, 3, -2, -7, -8]> : tensor<5xi4> %0 = "tfl.pseudo_const"() {value = dense<[6, 3, -2, -7, -8]> : tensor<5xi4>} : () -> tensor<5xi4> func.return %0 : tensor<5xi4> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 12.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants_offset.mlir
%0 = "tfl.pseudo_const"() {value = dense<[222, 173, 190, 239]> : tensor<4xui8>} : () -> tensor<4xui8> func.return %0 : tensor<4xui8> } func.func @int4() -> tensor<5xi4> { // CHECK-LABEL: @int4 // CHECK: value = dense<[6, 3, -2, -7, -8]> : tensor<5xi4> %0 = "tfl.pseudo_const"() {value = dense<[6, 3, -2, -7, -8]> : tensor<5xi4>} : () -> tensor<5xi4> func.return %0 : tensor<5xi4> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 12.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
auto i4Values = tflite::UnpackDenseInt4IntoInt8(buffer, shaped_type.getNumElements()); // Use `getFromRawBuffer()` instead of `get()` to bypass a templated size // check which doesn't work with int4 because int4_t doesn't exist. return mlir::ElementsAttr(DenseElementsAttr::getFromRawBuffer( shaped_type, ArrayRef<char>(i4Values))); } case 8: { return mlir::ElementsAttr(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
case DT_FLOAT8_E4M3FN: ConvertFloat8ElementsAttr<tsl::float8_e4m3fn>( dense_attr, output->mutable_float8_val()); break; case tensorflow::DT_INT4: ConvertIntElementsAttr<int, tsl::int4>(dense_attr, output->mutable_int_val(), output->mutable_tensor_content()); break; case tensorflow::DT_UINT4:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema.fbs
// to change. Do not implement custom kernels using resource & variant types // now. RESOURCE = 13, VARIANT = 14, UINT32 = 15, UINT16 = 16, INT4 = 17, BFLOAT16 = 18, } // Custom quantization parameters for experimenting with new quantization // techniques. table CustomQuantization { custom:[ubyte] (force_align: 16); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema_generated.h
"STRING", "BOOL", "INT16", "COMPLEX64", "INT8", "FLOAT64", "COMPLEX128", "UINT64", "RESOURCE", "VARIANT", "UINT32", "UINT16", "INT4", "BFLOAT16", nullptr }; return names; } inline const char *EnumNameTensorType(TensorType e) { if (::flatbuffers::IsOutRange(e, TensorType_FLOAT32, TensorType_BFLOAT16)) return "";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 1M bytes - Viewed (0)