- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 576 for Int8 (0.04 sec)
-
tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.h
// // Specifically, it combines the following concerns, each of which would be // independent variables in a more generic setup: // - numBits and isSigned imply storage data type (uint8, int8, int16) // - numBits < 8 is promoted to uint8 or int8 // - "narrow_range" narrows the lower bound of the storage type's range by // 1 // - the specified min/max values are "nudged" so that the result has a zero
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 11:52:27 UTC 2024 - 3.7K bytes - Viewed (0) -
src/encoding/gob/codec_test.go
enc := NewEncoder(b) dec := NewDecoder(b) // int8 b.Reset() it = inputT{ Maxi: math.MaxInt8 + 1, } type outi8 struct { Maxi int8 Mini int8 } var o1 outi8 enc.Encode(it) err = dec.Decode(&o1) if err == nil || err.Error() != `value for "Maxi" out of range` { t.Error("wrong overflow error for int8:", err) } it = inputT{ Mini: math.MinInt8 - 1, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 19 23:03:14 UTC 2023 - 36.9K bytes - Viewed (0) -
src/encoding/gob/decgen.go
error_(ovfl) } slice[i] = int32(x)`, }, { "int64", "Int64", `slice[i] = state.decodeInt()`, }, { "int8", "Int8", `x := state.decodeInt() if x < math.MinInt8 || math.MaxInt8 < x { error_(ovfl) } slice[i] = int8(x)`, }, { "string", "String", `u := state.decodeUint() n := int(u) if n < 0 || uint64(n) != u || n > state.b.Len() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:15:38 UTC 2024 - 5.3K bytes - Viewed (0) -
src/encoding/gob/dec_helpers.go
} func decInt8Slice(state *decoderState, v reflect.Value, length int, ovfl error) bool { slice, ok := v.Interface().([]int8) if !ok { // It is kind int8 but not type int8. TODO: We can handle this unsafely. return false } for i := 0; i < length; i++ { if state.b.Len() == 0 { errorf("decoding int8 array or slice: length exceeds input size (%d elements)", length) } if i >= len(slice) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 19:28:46 UTC 2023 - 15.4K bytes - Viewed (0) -
test/zerodivide.go
ErrorTest{"int 0/0", func() { use(i / j) }, "divide"}, ErrorTest{"int8 0/0", func() { use(i8 / j8) }, "divide"}, ErrorTest{"int16 0/0", func() { use(i16 / j16) }, "divide"}, ErrorTest{"int32 0/0", func() { use(i32 / j32) }, "divide"}, ErrorTest{"int64 0/0", func() { use(i64 / j64) }, "divide"}, ErrorTest{"int 1/0", func() { use(k / j) }, "divide"}, ErrorTest{"int8 1/0", func() { use(k8 / j8) }, "divide"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 5.7K bytes - Viewed (0) -
test/fixedbugs/issue38117.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:59:57 UTC 2020 - 433 bytes - Viewed (0) -
test/typeparam/issue48094.dir/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "./a" func main() { if a.F[int64]() != 8 { panic("bad") } if a.G[int8]() != 1 { panic("bad") } // TODO: enable once 47631 is fixed. //if a.H[int64]() != 8 { // panic("bad") //}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 373 bytes - Viewed (0) -
schema/field_test.go
type ( ID int64 INT int INT8 int8 INT16 int16 INT32 int32 INT64 int64 UINT uint UINT8 uint8 UINT16 uint16 UINT32 uint32 UINT64 uint64 FLOAT32 float32 FLOAT64 float64 BOOL bool STRING string TIME time.Time BYTES []byte TypeAlias struct { ID INT `gorm:"column:fint"` INT8 `gorm:"column:fint8"`
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Feb 19 09:02:53 UTC 2022 - 12.7K bytes - Viewed (0) -
src/encoding/binary/binary_test.go
// license that can be found in the LICENSE file. package binary import ( "bytes" "fmt" "io" "math" "reflect" "strings" "sync" "testing" "unsafe" ) type Struct struct { Int8 int8 Int16 int16 Int32 int32 Int64 int64 Uint8 uint8 Uint16 uint16 Uint32 uint32 Uint64 uint64 Float32 float32 Float64 float64 Complex64 complex64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:16:18 UTC 2024 - 25.4K bytes - Viewed (0) -
test/typeswitch2.go
// Does not compile. package main import "io" func whatis(x interface{}) string { switch x.(type) { case int: return "int" case int: // ERROR "duplicate" return "int8" case io.Reader: return "Reader1" case io.Reader: // ERROR "duplicate" return "Reader2" case interface { r() w() }: return "rw" case interface { // ERROR "duplicate" w() r()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 11 23:33:11 UTC 2019 - 655 bytes - Viewed (0)