You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorflow-core/tensorflow-core-native/src/main/java/org/tensorflow/internal/c_api/presets/tensorflow.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,19 @@ public void map(InfoMap infoMap) {
213
213
214
214
// Skip C++ classes
215
215
infoMap.put(newInfo("tsl::StatusGroup").skip());
216
+
217
+
// Force correct marshalling of TFJ_RegisterCustomGradient callback argument.
218
+
// Without an explicit cast, JavaCPP may pass a NULL function pointer for some FunctionPointer
Copy file name to clipboardExpand all lines: tensorflow-core/tensorflow-core-native/src/main/native/org/tensorflow/internal/c_api/tfj_gradients_impl.cc
+68-10Lines changed: 68 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,12 @@ limitations under the License.
18
18
#include<stdio.h>
19
19
#include<stdlib.h>
20
20
21
+
// IMPORTANT: explicit STL includes (this .cc is included via tfj_gradients.h in some builds,
22
+
// so we must not rely on transitive includes from other headers).
0 commit comments