File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
tensorflow-internal-macros Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ documentation = "https://tensorflow.github.io/rust/tensorflow"
11
11
edition = " 2018"
12
12
13
13
[dependencies ]
14
- libc = " 0.2.43 "
14
+ libc = " 0.2.62 "
15
15
aligned_alloc = " 0.1.3"
16
- num-complex = { version = " 0.2.1 " , default-features = false }
16
+ num-complex = { version = " 0.2.3 " , default-features = false }
17
17
tensorflow-internal-macros = { version = " =0.0.1" , path = " tensorflow-internal-macros" }
18
18
tensorflow-sys = { version = " 0.17.0" , path = " tensorflow-sys" }
19
- byteorder = " 1.2.7 "
19
+ byteorder = " 1.3.2 "
20
20
crc = " 1.8.1"
21
21
half = " 1.3.0"
22
22
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ edition = "2018"
15
15
proc-macro = true
16
16
17
17
[dependencies ]
18
- quote = " 0.6 "
19
- syn = { version = " 0.15.36 " , features = [" extra-traits" ] }
20
- proc-macro2 = " 0.4"
18
+ quote = " 1.0.2 "
19
+ syn = { version = " 1.0.5 " , features = [" extra-traits" ] }
20
+ proc-macro2 = " 1. 0.4"
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ edition = "2018"
18
18
libc = " 0.2.43"
19
19
20
20
[build-dependencies ]
21
- curl = " 0.4.19 "
22
- flate2 = " 1.0.4 "
23
- pkg-config = " 0.3.14 "
21
+ curl = " 0.4.24 "
22
+ flate2 = " 1.0.12 "
23
+ pkg-config = " 0.3.16 "
24
24
semver = " 0.9.0"
25
- tar = " 0.4.19 "
25
+ tar = " 0.4.26 "
26
26
27
27
[features ]
28
28
tensorflow_gpu = []
Original file line number Diff line number Diff line change 1
- use libc:: { c_int, int64_t , size_t} ;
1
+ use libc:: { c_int, size_t} ;
2
2
use std:: ffi:: { CStr , CString } ;
3
3
use std:: mem;
4
4
use std:: os:: raw:: c_void;
@@ -52,7 +52,7 @@ fn main() {
52
52
53
53
let name = CString :: new ( "a" ) . unwrap ( ) ;
54
54
let mut data = vec ! [ 1f32 , 2.0 , 3.0 ] ;
55
- let dims = vec ! [ data. len( ) as int64_t ] ;
55
+ let dims = vec ! [ data. len( ) as i64 ] ;
56
56
let input_tensor1 = nonnull ! ( ffi:: TF_NewTensor (
57
57
ffi:: TF_FLOAT ,
58
58
dims. as_ptr( ) ,
@@ -72,7 +72,7 @@ fn main() {
72
72
73
73
let name = CString :: new ( "b" ) . unwrap ( ) ;
74
74
let mut data = vec ! [ 4f32 , 5.0 , 6.0 ] ;
75
- let dims = vec ! [ data. len( ) as int64_t ] ;
75
+ let dims = vec ! [ data. len( ) as i64 ] ;
76
76
let input_tensor2 = nonnull ! ( ffi:: TF_NewTensor (
77
77
ffi:: TF_FLOAT ,
78
78
dims. as_ptr( ) ,
You can’t perform that action at this time.
0 commit comments