- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for Int4 (1.29 sec)
-
tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/low_bit_packing.mlir
func.func @main() -> tensor<4xi4> { // CHECK: { // CHECK: version: 3, // CHECK: operator_codes: [ ], // CHECK: subgraphs: [ { // CHECK: tensors: [ { // CHECK: shape: [ 4 ], // CHECK: type: INT4, // CHECK: buffer: 1, // CHECK: name: "Const", // CHECK: quantization: { // CHECK-EMPTY // CHECK: }, // CHECK: has_rank: true // CHECK: } ],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 12 20:13:51 UTC 2022 - 1.4K bytes - Viewed (0) -
test/convert4.go
}, "runtime error: invalid memory address or nil pointer dereference", ) // Test with named types type Slice []int type Int4 [4]int type PInt4 *[4]int ii := make(Slice, 4) if p := (*Int4)(ii); &p[0] != &ii[0] { panic("*Int4 conversion failed") } if p := PInt4(ii); &p[0] != &ii[0] { panic("PInt4 conversion failed") } } // test static variable conversion var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 18:58:26 UTC 2022 - 2.1K bytes - Viewed (0) -
test/typeparam/issue50417.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 1.5K bytes - Viewed (0) -
src/reflect/benchmark_test.go
StructComparable T StructIncomparable _Complex ArrayInt_4 [4]int ArrayInt_1024 [1024]int ArrayInt_1024_NoZero [1024]int Struct4Int Int4 ArrayStruct4Int_1024 [256]Int4 ArrayChanInt_1024 [1024]chan int StructInt_512 Int512 }{} s.ArrayInt_1024_NoZero[512] = 1 source := ValueOf(s) for i := 0; i < source.NumField(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
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/utils/low_bit_utils.h
std::vector<uint8_t> PackInt4ValuesDensely(std::vector<uint8_t> src_buffer); // Assumes `src_buffer` contains 2 4-bit elements packed in 8-bit. // Returns a vector where each int8 element contains a int4 sign-extended value. std::vector<char> UnpackDenseInt4IntoInt8( const std::vector<uint8_t>& src_buffer, int64_t num_elements); } // namespace tflite
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 12 20:13:51 UTC 2022 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go
require.True(t, converted, "expectation not equal to output") } else { t.Fatal("expected result must not be nil") } } func TestIP(t *testing.T) { ipv4Addr, _ := netip.ParseAddr("192.168.0.1") int4 := types.Int(4) ipv6Addr, _ := netip.ParseAddr("2001:db8::68") int6 := types.Int(6) trueVal := types.Bool(true) falseVal := types.Bool(false) cases := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:07 UTC 2023 - 8.9K 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)