Skip to content

Fix unresolved symbols on windows #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ public void init(ClassProperties properties) {
@Override
public void map(InfoMap infoMap) {
infoMap
.put(
new Info("c_api_experimental.h")
.linePatterns(
"typedef struct TFE_OpAttrs TFE_OpAttrs;",
"#define TFE_CUSTOM_DEVICE_VERSION 4"))
.put(new Info("TF_CAPI_EXPORT", "TF_Bool").cppTypes().annotations())
.put(
new Info("TF_Buffer::data")
Expand Down Expand Up @@ -315,49 +320,10 @@ public void map(InfoMap infoMap) {
new Info("TF_ImportGraphDefOptions")
.pointerTypes("TF_ImportGraphDefOptions")
.base("org.tensorflow.internal.c_api.AbstractTF_ImportGraphDefOptions"))
.put(
new Info(
"TF_Operation",
"TF_WhileParams",
"TFE_MonitoringCounterCell",
"TFE_MonitoringSamplerCell",
"TFE_MonitoringCounter0",
"TFE_MonitoringCounter1",
"TFE_MonitoringCounter2",
"TFE_MonitoringIntGaugeCell",
"TFE_MonitoringStringGaugeCell",
"TFE_MonitoringBoolGaugeCell",
"TFE_MonitoringIntGauge0",
"TFE_MonitoringIntGauge1",
"TFE_MonitoringIntGauge2",
"TFE_MonitoringStringGauge0",
"TFE_MonitoringStringGauge1",
"TFE_MonitoringStringGauge2",
"TFE_MonitoringBoolGauge0",
"TFE_MonitoringBoolGauge1",
"TFE_MonitoringBoolGauge2",
"TFE_MonitoringSampler0",
"TFE_MonitoringSampler1",
"TFE_MonitoringSampler2")
.purify())
.put(new Info("TF_Operation", "TF_WhileParams").purify())
.put(
new Info("TF_Operation::node")
.javaText("public native @MemberGetter @ByRef Node node();"))
.put(
new Info("TFE_MonitoringCounterCell::cell")
.javaText("public native @MemberGetter @ByRef CounterCell cell();"))
.put(
new Info("TFE_MonitoringSamplerCell::cell")
.javaText("public native @MemberGetter @ByRef SamplerCell cell();"))
.put(
new Info("TFE_MonitoringIntGaugeCell::cell")
.javaText("public native @MemberGetter @ByRef IntGaugeCell cell();"))
.put(
new Info("TFE_MonitoringStringGaugeCell::cell")
.javaText("public native @MemberGetter @ByRef StringGaugeCell cell();"))
.put(
new Info("TFE_MonitoringBoolGaugeCell::cell")
.javaText("public native @MemberGetter @ByRef BoolGaugeCell cell();"))
.put(
new Info("TFE_Context")
.pointerTypes("TFE_Context")
Expand Down Expand Up @@ -385,8 +351,29 @@ public void map(InfoMap infoMap) {
new Info(
"TF_ShapeInferenceContextDimValueKnown",
"TFE_NewTensorHandle(const tensorflow::Tensor&, TF_Status*)",
"TF_InitKernel")
.skip())
.put(new Info("TFE_CustomDeviceTensorHandle", "TFE_CustomDevice").skip());
"TF_InitKernel",
"TFE_MonitoringCounterCell",
"TFE_MonitoringCounter0",
"TFE_MonitoringCounter1",
"TFE_MonitoringCounter2",
"TFE_MonitoringIntGaugeCell",
"TFE_MonitoringIntGauge0",
"TFE_MonitoringIntGauge1",
"TFE_MonitoringIntGauge2",
"TFE_MonitoringStringGaugeCell",
"TFE_MonitoringStringGauge0",
"TFE_MonitoringStringGauge1",
"TFE_MonitoringStringGauge2",
"TFE_MonitoringBoolGaugeCell",
"TFE_MonitoringBoolGauge0",
"TFE_MonitoringBoolGauge1",
"TFE_MonitoringBoolGauge2",
"TFE_MonitoringSamplerCell",
"TFE_MonitoringSampler0",
"TFE_MonitoringSampler1",
"TFE_MonitoringSampler2",
"TFE_CustomDeviceTensorHandle",
"TFE_CustomDevice")
.skip());
}
}