Skip to content

Commit ed03222

Browse files
committed
Properly skip some generation
Signed-off-by: Ryan Nett <[email protected]>
1 parent 05d9de3 commit ed03222

File tree

1 file changed

+25
-43
lines changed
  • tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/c_api/presets

1 file changed

+25
-43
lines changed

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/c_api/presets/tensorflow.java

Lines changed: 25 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -315,49 +315,10 @@ public void map(InfoMap infoMap) {
315315
new Info("TF_ImportGraphDefOptions")
316316
.pointerTypes("TF_ImportGraphDefOptions")
317317
.base("org.tensorflow.internal.c_api.AbstractTF_ImportGraphDefOptions"))
318-
.put(
319-
new Info(
320-
"TF_Operation",
321-
"TF_WhileParams",
322-
"TFE_MonitoringCounterCell",
323-
"TFE_MonitoringSamplerCell",
324-
"TFE_MonitoringCounter0",
325-
"TFE_MonitoringCounter1",
326-
"TFE_MonitoringCounter2",
327-
"TFE_MonitoringIntGaugeCell",
328-
"TFE_MonitoringStringGaugeCell",
329-
"TFE_MonitoringBoolGaugeCell",
330-
"TFE_MonitoringIntGauge0",
331-
"TFE_MonitoringIntGauge1",
332-
"TFE_MonitoringIntGauge2",
333-
"TFE_MonitoringStringGauge0",
334-
"TFE_MonitoringStringGauge1",
335-
"TFE_MonitoringStringGauge2",
336-
"TFE_MonitoringBoolGauge0",
337-
"TFE_MonitoringBoolGauge1",
338-
"TFE_MonitoringBoolGauge2",
339-
"TFE_MonitoringSampler0",
340-
"TFE_MonitoringSampler1",
341-
"TFE_MonitoringSampler2")
342-
.purify())
318+
.put(new Info("TF_Operation", "TF_WhileParams").purify())
343319
.put(
344320
new Info("TF_Operation::node")
345321
.javaText("public native @MemberGetter @ByRef Node node();"))
346-
.put(
347-
new Info("TFE_MonitoringCounterCell::cell")
348-
.javaText("public native @MemberGetter @ByRef CounterCell cell();"))
349-
.put(
350-
new Info("TFE_MonitoringSamplerCell::cell")
351-
.javaText("public native @MemberGetter @ByRef SamplerCell cell();"))
352-
.put(
353-
new Info("TFE_MonitoringIntGaugeCell::cell")
354-
.javaText("public native @MemberGetter @ByRef IntGaugeCell cell();"))
355-
.put(
356-
new Info("TFE_MonitoringStringGaugeCell::cell")
357-
.javaText("public native @MemberGetter @ByRef StringGaugeCell cell();"))
358-
.put(
359-
new Info("TFE_MonitoringBoolGaugeCell::cell")
360-
.javaText("public native @MemberGetter @ByRef BoolGaugeCell cell();"))
361322
.put(
362323
new Info("TFE_Context")
363324
.pointerTypes("TFE_Context")
@@ -385,8 +346,29 @@ public void map(InfoMap infoMap) {
385346
new Info(
386347
"TF_ShapeInferenceContextDimValueKnown",
387348
"TFE_NewTensorHandle(const tensorflow::Tensor&, TF_Status*)",
388-
"TF_InitKernel")
389-
.skip())
390-
.put(new Info("TFE_CustomDeviceTensorHandle", "TFE_CustomDevice").skip());
349+
"TF_InitKernel",
350+
"TFE_MonitoringCounterCell",
351+
"TFE_MonitoringSamplerCell",
352+
"TFE_MonitoringCounter0",
353+
"TFE_MonitoringCounter1",
354+
"TFE_MonitoringCounter2",
355+
"TFE_MonitoringIntGaugeCell",
356+
"TFE_MonitoringStringGaugeCell",
357+
"TFE_MonitoringBoolGaugeCell",
358+
"TFE_MonitoringIntGauge0",
359+
"TFE_MonitoringIntGauge1",
360+
"TFE_MonitoringIntGauge2",
361+
"TFE_MonitoringStringGauge0",
362+
"TFE_MonitoringStringGauge1",
363+
"TFE_MonitoringStringGauge2",
364+
"TFE_MonitoringBoolGauge0",
365+
"TFE_MonitoringBoolGauge1",
366+
"TFE_MonitoringBoolGauge2",
367+
"TFE_MonitoringSampler0",
368+
"TFE_MonitoringSampler1",
369+
"TFE_MonitoringSampler2",
370+
"TFE_CustomDeviceTensorHandle",
371+
"TFE_CustomDevice")
372+
.skip());
391373
}
392374
}

0 commit comments

Comments
 (0)