@@ -22,25 +22,15 @@ pub const __USE_FORTIFY_LEVEL: ::std::os::raw::c_uint = 0;
22
22
pub const _STDC_PREDEF_H: :: std:: os:: raw:: c_uint = 1 ;
23
23
pub const __STDC_IEC_559__: :: std:: os:: raw:: c_uint = 1 ;
24
24
pub const __STDC_IEC_559_COMPLEX__: :: std:: os:: raw:: c_uint = 1 ;
25
- pub const __STDC_ISO_10646__: :: std:: os:: raw:: c_uint = 201505 ;
25
+ pub const __STDC_ISO_10646__: :: std:: os:: raw:: c_uint = 201605 ;
26
26
pub const __STDC_NO_THREADS__: :: std:: os:: raw:: c_uint = 1 ;
27
27
pub const __GNU_LIBRARY__: :: std:: os:: raw:: c_uint = 6 ;
28
28
pub const __GLIBC__: :: std:: os:: raw:: c_uint = 2 ;
29
- pub const __GLIBC_MINOR__: :: std:: os:: raw:: c_uint = 25 ;
29
+ pub const __GLIBC_MINOR__: :: std:: os:: raw:: c_uint = 24 ;
30
30
pub const _SYS_CDEFS_H: :: std:: os:: raw:: c_uint = 1 ;
31
- pub const __glibc_c99_flexarr_available: :: std:: os:: raw:: c_uint = 1 ;
32
31
pub const __WORDSIZE: :: std:: os:: raw:: c_uint = 64 ;
33
32
pub const __WORDSIZE_TIME64_COMPAT32: :: std:: os:: raw:: c_uint = 1 ;
34
33
pub const __SYSCALL_WORDSIZE: :: std:: os:: raw:: c_uint = 64 ;
35
- pub const __GLIBC_USE_LIB_EXT2: :: std:: os:: raw:: c_uint = 0 ;
36
- pub const __GLIBC_USE_IEC_60559_BFP_EXT: :: std:: os:: raw:: c_uint = 0 ;
37
- pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: :: std:: os:: raw:: c_uint = 0 ;
38
- pub const _BITS_TYPES_H: :: std:: os:: raw:: c_uint = 1 ;
39
- pub const _BITS_TYPESIZES_H: :: std:: os:: raw:: c_uint = 1 ;
40
- pub const __OFF_T_MATCHES_OFF64_T: :: std:: os:: raw:: c_uint = 1 ;
41
- pub const __INO_T_MATCHES_INO64_T: :: std:: os:: raw:: c_uint = 1 ;
42
- pub const __RLIM_T_MATCHES_RLIM64_T: :: std:: os:: raw:: c_uint = 1 ;
43
- pub const __FD_SETSIZE: :: std:: os:: raw:: c_uint = 1024 ;
44
34
pub const _BITS_WCHAR_H: :: std:: os:: raw:: c_uint = 1 ;
45
35
pub const INT8_MIN : :: std:: os:: raw:: c_int = -128 ;
46
36
pub const INT16_MIN : :: std:: os:: raw:: c_int = -32768 ;
@@ -80,79 +70,6 @@ pub const SIZE_MAX: ::std::os::raw::c_int = -1;
80
70
pub const WINT_MIN : :: std:: os:: raw:: c_uint = 0 ;
81
71
pub const WINT_MAX : :: std:: os:: raw:: c_uint = 4294967295 ;
82
72
pub type wchar_t = :: std:: os:: raw:: c_int ;
83
- pub type __u_char = :: std:: os:: raw:: c_uchar ;
84
- pub type __u_short = :: std:: os:: raw:: c_ushort ;
85
- pub type __u_int = :: std:: os:: raw:: c_uint ;
86
- pub type __u_long = :: std:: os:: raw:: c_ulong ;
87
- pub type __int8_t = :: std:: os:: raw:: c_schar ;
88
- pub type __uint8_t = :: std:: os:: raw:: c_uchar ;
89
- pub type __int16_t = :: std:: os:: raw:: c_short ;
90
- pub type __uint16_t = :: std:: os:: raw:: c_ushort ;
91
- pub type __int32_t = :: std:: os:: raw:: c_int ;
92
- pub type __uint32_t = :: std:: os:: raw:: c_uint ;
93
- pub type __int64_t = :: std:: os:: raw:: c_long ;
94
- pub type __uint64_t = :: std:: os:: raw:: c_ulong ;
95
- pub type __quad_t = :: std:: os:: raw:: c_long ;
96
- pub type __u_quad_t = :: std:: os:: raw:: c_ulong ;
97
- pub type __intmax_t = :: std:: os:: raw:: c_long ;
98
- pub type __uintmax_t = :: std:: os:: raw:: c_ulong ;
99
- pub type __dev_t = :: std:: os:: raw:: c_ulong ;
100
- pub type __uid_t = :: std:: os:: raw:: c_uint ;
101
- pub type __gid_t = :: std:: os:: raw:: c_uint ;
102
- pub type __ino_t = :: std:: os:: raw:: c_ulong ;
103
- pub type __ino64_t = :: std:: os:: raw:: c_ulong ;
104
- pub type __mode_t = :: std:: os:: raw:: c_uint ;
105
- pub type __nlink_t = :: std:: os:: raw:: c_ulong ;
106
- pub type __off_t = :: std:: os:: raw:: c_long ;
107
- pub type __off64_t = :: std:: os:: raw:: c_long ;
108
- pub type __pid_t = :: std:: os:: raw:: c_int ;
109
- #[ repr( C ) ]
110
- #[ derive( Debug , Copy ) ]
111
- pub struct __fsid_t {
112
- pub __val : [ :: std:: os:: raw:: c_int ; 2usize ] ,
113
- }
114
- #[ test]
115
- fn bindgen_test_layout___fsid_t ( ) {
116
- assert_eq ! ( :: std:: mem:: size_of:: <__fsid_t>( ) , 8usize , concat ! (
117
- "Size of: " , stringify ! ( __fsid_t ) ) ) ;
118
- assert_eq ! ( :: std:: mem:: align_of:: <__fsid_t>( ) , 4usize , concat ! (
119
- "Alignment of " , stringify ! ( __fsid_t ) ) ) ;
120
- assert_eq ! ( unsafe {
121
- & ( * ( 0 as * const __fsid_t ) ) . __val as * const _ as
122
- usize } , 0usize , concat ! (
123
- "Alignment of field: " , stringify ! ( __fsid_t ) , "::" ,
124
- stringify ! ( __val ) ) ) ;
125
- }
126
- impl Clone for __fsid_t {
127
- fn clone ( & self ) -> Self { * self }
128
- }
129
- pub type __clock_t = :: std:: os:: raw:: c_long ;
130
- pub type __rlim_t = :: std:: os:: raw:: c_ulong ;
131
- pub type __rlim64_t = :: std:: os:: raw:: c_ulong ;
132
- pub type __id_t = :: std:: os:: raw:: c_uint ;
133
- pub type __time_t = :: std:: os:: raw:: c_long ;
134
- pub type __useconds_t = :: std:: os:: raw:: c_uint ;
135
- pub type __suseconds_t = :: std:: os:: raw:: c_long ;
136
- pub type __daddr_t = :: std:: os:: raw:: c_int ;
137
- pub type __key_t = :: std:: os:: raw:: c_int ;
138
- pub type __clockid_t = :: std:: os:: raw:: c_int ;
139
- pub type __timer_t = * mut :: std:: os:: raw:: c_void ;
140
- pub type __blksize_t = :: std:: os:: raw:: c_long ;
141
- pub type __blkcnt_t = :: std:: os:: raw:: c_long ;
142
- pub type __blkcnt64_t = :: std:: os:: raw:: c_long ;
143
- pub type __fsblkcnt_t = :: std:: os:: raw:: c_ulong ;
144
- pub type __fsblkcnt64_t = :: std:: os:: raw:: c_ulong ;
145
- pub type __fsfilcnt_t = :: std:: os:: raw:: c_ulong ;
146
- pub type __fsfilcnt64_t = :: std:: os:: raw:: c_ulong ;
147
- pub type __fsword_t = :: std:: os:: raw:: c_long ;
148
- pub type __ssize_t = :: std:: os:: raw:: c_long ;
149
- pub type __syscall_slong_t = :: std:: os:: raw:: c_long ;
150
- pub type __syscall_ulong_t = :: std:: os:: raw:: c_ulong ;
151
- pub type __loff_t = __off64_t ;
152
- pub type __qaddr_t = * mut __quad_t ;
153
- pub type __caddr_t = * mut :: std:: os:: raw:: c_char ;
154
- pub type __intptr_t = :: std:: os:: raw:: c_long ;
155
- pub type __socklen_t = :: std:: os:: raw:: c_uint ;
156
73
pub type int_least8_t = :: std:: os:: raw:: c_schar ;
157
74
pub type int_least16_t = :: std:: os:: raw:: c_short ;
158
75
pub type int_least32_t = :: std:: os:: raw:: c_int ;
@@ -169,8 +86,8 @@ pub type uint_fast8_t = ::std::os::raw::c_uchar;
169
86
pub type uint_fast16_t = :: std:: os:: raw:: c_ulong ;
170
87
pub type uint_fast32_t = :: std:: os:: raw:: c_ulong ;
171
88
pub type uint_fast64_t = :: std:: os:: raw:: c_ulong ;
172
- pub type intmax_t = __intmax_t ;
173
- pub type uintmax_t = __uintmax_t ;
89
+ pub type intmax_t = :: std :: os :: raw :: c_long ;
90
+ pub type uintmax_t = :: std :: os :: raw :: c_ulong ;
174
91
extern "C" {
175
92
pub fn TF_Version ( ) -> * const :: std:: os:: raw:: c_char ;
176
93
}
@@ -316,6 +233,9 @@ extern "C" {
316
233
num_dims : :: std:: os:: raw:: c_int , len : usize )
317
234
-> * mut TF_Tensor ;
318
235
}
236
+ extern "C" {
237
+ pub fn TF_TensorMaybeMove ( tensor : * mut TF_Tensor ) -> * mut TF_Tensor ;
238
+ }
319
239
extern "C" {
320
240
pub fn TF_DeleteTensor ( arg1 : * mut TF_Tensor ) ;
321
241
}
@@ -901,12 +821,12 @@ extern "C" {
901
821
dst : TF_Output ) ;
902
822
}
903
823
extern "C" {
904
- pub fn TF_GraphImportGraphDefOptionsRemapControlDependency ( opts :
905
- * mut TF_ImportGraphDefOptions ,
906
- src_name :
907
- * const :: std:: os:: raw:: c_char ,
908
- dst :
909
- * mut TF_Operation ) ;
824
+ pub fn TF_ImportGraphDefOptionsRemapControlDependency ( opts :
825
+ * mut TF_ImportGraphDefOptions ,
826
+ src_name :
827
+ * const :: std:: os:: raw:: c_char ,
828
+ dst :
829
+ * mut TF_Operation ) ;
910
830
}
911
831
extern "C" {
912
832
pub fn TF_ImportGraphDefOptionsAddControlDependency ( opts :
@@ -1024,6 +944,12 @@ extern "C" {
1024
944
extern "C" {
1025
945
pub fn TF_AbortWhile ( params : * const TF_WhileParams ) ;
1026
946
}
947
+ extern "C" {
948
+ pub fn TF_AddGradients ( g : * mut TF_Graph , y : * mut TF_Output ,
949
+ ny : :: std:: os:: raw:: c_int , x : * mut TF_Output ,
950
+ nx : :: std:: os:: raw:: c_int , dx : * mut TF_Output ,
951
+ status : * mut TF_Status , dy : * mut TF_Output ) ;
952
+ }
1027
953
#[ repr( C ) ]
1028
954
#[ derive( Debug , Copy , Clone ) ]
1029
955
pub struct TF_Session {
0 commit comments