firebird wire protocolthe operation that initiated the response. #### 2.1. Generic response Int32 Operation code If operation equals op_response: Int32 Object handle Int64 Object ID Buffer Data (meaning depends on the SQL response Int32 Operation code If operation equals op_sql_response: Int32 Message count Buffer Response data (meaning depends on the operation). #### 2.3. Fetch response Int32 Operation code code If operation equals op_fetch_response: Int32 Status A value of 0 is the success value.  End of cursor is indicated0 码力 | 40 页 | 213.15 KB | 2 年前3
TVM Meetup: Quantization) / * ty=Tensor[(2, 5), int32] */; %3 = add(%2, 127 / * ty=int32 */) / * ty=Tensor[(2, 5), int32] */; %4 = clip(%3, a_min=0f, a_max=255f) / * ty=Tensor[(2, 5), int32] */; cast(%4, dtype="uint8") 2, 2), uint8]) -> Tensor[(1, 3, 1, 2), int32] { %0 = nn.conv2d(%data, %weight, ..., out_dtype="int32") / * ty = Tensor[(1, 3, 1, 2), int32] */; %1 = cast(%data, dtype="int32") 2, 3), int32] */; %2 = multiply(%1, 4 / * ty = int32 */) / * ty = Tensor[(1, 3, 2, 3), int32] */; %3 = nn.avg_pool2d(%2, pool_size=[2, 2]) / * ty = Tensor[(1, 3, 1, 2), int32] */;0 码力 | 19 页 | 489.50 KB | 1 年前3
Dynamic Model in TVMRelay virtual machine def @main(%i: int32) -> int32 { @sum_up(%i) /* ty=int32 */ } def @sum_up(%i1: int32) -> int32 { %0 = equal(%i1, 0 / * ty=int32 */) / * ty=bool */; if (%0) { } else { %1 = subtract(%i1, 1 / * ty=int32 */) / * ty=int32 */; %2 = @sum_up(%i) / * ty=int32 */; add(%2, %i1) / * ty=int32 */; } } sum_up: alloc_storage 1 1 64 bool alloc_storage 4 4 64 int32 alloc_tensor $5 $4 [] int32 invoke_packed PackedFunc[1] (in: $0, out: $5) invoke $6 VMFunc[0]($5) alloc_storage 7 4 64 int32 alloc_tensor $8 $7 [] int32 invoke_packed PackedFunc[2]0 码力 | 24 页 | 417.46 KB | 1 年前3
Go 101 (Golang 101) v1.21.0type: bool. • 11 built-in integer numeric types (basic integer types): int8, uint8, int16, uint16, int32, uint32, int64, uint64, int, uint, and uintptr. • two built-in floating-point numeric types: float32 view byte and uint8 as the same type. • rune is a built-in alias of int32. We can view rune and int32 as the same type. The integer types whose names starting with an u are unsigned types. Values of declarations, the word type is a keyword. /* Some type definition declarations */ // char, rune and int32 denote the same type. type char = rune We can call the custom real type defined above and the built-in0 码力 | 610 页 | 945.17 KB | 2 年前3
Go 101 (Golang 101) v1.21.0type: bool. • 11 built-in integer numeric types (basic integer types): int8, uint8, int16, uint16, int32, uint32, int64, uint64, int, uint, and uintptr. • two built-in floating-point numeric types: float32 view byte and uint8 as the same type. • rune is a built-in alias of int32. We can view rune and int32 as the same type. The integer types whose names starting with an u are unsigned types. Values of the same type. 19| type U8 = uint8 §6. Basic Types and Basic Value Literals 20| // char, rune and int32 denote the same type. 21| type char = rune We can call the custom real type defined above and the0 码力 | 630 页 | 3.77 MB | 2 年前3
Go 101 (Golang 101) v1.21.0type: bool. - 11 built-in integer numeric types (basic integer types): int8, uint8, int16, uint16, int32, uint32, int64, uint64, int, uint, and uintptr. • two built-in floating-point numeric types: float32 view byte and uint8 as the same type. - rune is a built-in alias of int32. We can view rune and int32 as the same type. The integer types whose names starting with an u are unsigned types. Values of string 18| |// U8, uint8 and byte denote the same type. 19| | type U8 = uint8 20| |// char, rune and int32 denote the same type. 21| | type char = rune We can call the custom real type defined above and the0 码力 | 880 页 | 833.34 KB | 2 年前3
1.6 Go并发编程实践 - 晁岳攀非重入锁 ’ alt=‘OCR图片’/> 基本同步原语 Mutex - 初版(2008) export type Mutex struct { key int32; sema int32; } func (m *Mutex) Lock() { if xadd(&m.key, 1) == 1 { return; } path抽取出来,保留 fast path以便内联 ’ alt=‘OCR图片’/> 基本同步原语 Mutex - 当前实现 type Mutex struct { state int32 sema uint32 } const ( mutexLocked = 1 << iota mutexWoken mutexStarving (*int32)(unsafe.Pointer(&m.Mutex)), 0, mutexLocked) { return true } return false } func (m *Mutex) Count() int { v := atomic.LoadInt32((*int32)(unsafe.Pointer(&m0 码力 | 82 页 | 16.62 MB | 1 月前3
2.5 深入CGO编程实战:int32和 *C.char 相互转换(A) ’ alt=‘OCR图片’/> 实战:int32和 *C.char 相互转换(B) // int32 => *C.char var x = int32(9527) var p *C.char = (*C.char)(unsafe.Pointer(uintptr(x))) // *C.char => int32 var y y *C.char var q int32 = int32(uintptr(unsafe.Pointer(y))) 第一步:int32 => uintprt 第二步: uintptr => unsafe.Pointer 第三步:unsafe.Pointer => *C.char 反之亦然 实战:X和Y相互转换(A) ’ alt=‘OCR图片’/> 实战:x和y相互转换(B) h> Go中的qsort(B) import "unsafe" import "fmt" func main() { values := []int32{ 42, 9, 101, 95, 27, 25 }; C.qsort_proxy( unsafe.Pointer(&values[0]), C0 码力 | 145 页 | 2.29 MB | 1 月前3
The Julia Language 1.6.0 beta1 Documentationvalue Int8 √ 8 -2^7 2^7-1 UInt8 8 0 2^8-1 Int16 √ 16 -2^15 2^15-1 UInt16 16 0 2^16-1 Int32 √ 32 -2^31 2^31-1 UInt32 32 0 2^32-1 Int64 √ 64 -2^63 2^63-1 UInt64 64 0 2^64-1 Int128 √ system has a 32-bit architecture or a 64-bit architecture: # 32-bit system: julia> typeof(1) Int32 # 64-bit system: julia> typeof(1) Int64 The Julia internal variable Sys.WORD_SIZE indicates system’s signed and unsigned native integer types respectively: # 32-bit system: julia> Int Int32 julia> UInt UInt32 # 64-bit system: julia> Int Int64 julia> UInt UInt64 Larger integer0 码力 | 1381 页 | 4.71 MB | 1 天前3
The Julia Language 1.6.0 rc3 Documentationvalue Int8 √ 8 -2^7 2^7-1 UInt8 8 0 2^8-1 Int16 √ 16 -2^15 2^15-1 UInt16 16 0 2^16-1 Int32 √ 32 -2^31 2^31-1 UInt32 32 0 2^32-1 Int64 √ 64 -2^63 2^63-1 UInt64 64 0 2^64-1 Int128 √ system has a 32-bit architecture or a 64-bit architecture: # 32-bit system: julia> typeof(1) Int32 # 64-bit system: julia> typeof(1) Int64 The Julia internal variable Sys.WORD_SIZE indicates system’s signed and unsigned native integer types respectively: # 32-bit system: julia> Int Int32 julia> UInt UInt32 # 64-bit system: julia> Int Int64 julia> UInt UInt64 Larger integer0 码力 | 1385 页 | 4.72 MB | 1 天前3
共 412 条
- 1
- 2
- 3
- 4
- 5
- 6
- 42













