diff --git a/tensorflow-core/pom.xml b/tensorflow-core/pom.xml index 6f61fc92e83..2d98332fa9f 100644 --- a/tensorflow-core/pom.xml +++ b/tensorflow-core/pom.xml @@ -36,7 +36,11 @@ - + 3.9.2 ${javacpp.platform}${javacpp.platform.extension} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_CancellationManager.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_CancellationManager.java deleted file mode 100644 index d98765a5dad..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_CancellationManager.java +++ /dev/null @@ -1,21 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// ----------------------------------------------------------------------------- -// Cancellation APIs. - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_CancellationManager extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_CancellationManager() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_CancellationManager(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_Executor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_Executor.java deleted file mode 100644 index cad647e262b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_Executor.java +++ /dev/null @@ -1,20 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// ----------------------------------------------------------------------------- -// Eager Executor APIs. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_Executor extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_Executor() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_Executor(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge0.java deleted file mode 100644 index 70711d9a4d3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge0.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Bool Gauge without label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringBoolGauge0 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringBoolGauge0() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringBoolGauge0(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge1.java deleted file mode 100644 index e29294aae88..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge1.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Bool Gauge with 1 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringBoolGauge1 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringBoolGauge1() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringBoolGauge1(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge2.java deleted file mode 100644 index 7dbc30d3ecf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGauge2.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Bool Gauge with 2 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringBoolGauge2 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringBoolGauge2() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringBoolGauge2(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGaugeCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGaugeCell.java deleted file mode 100644 index 0b2c5005aec..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringBoolGaugeCell.java +++ /dev/null @@ -1,18 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringBoolGaugeCell extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringBoolGaugeCell() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringBoolGaugeCell(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter0.java deleted file mode 100644 index 38d10d187e6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter0.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Counter without label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringCounter0 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringCounter0() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringCounter0(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter1.java deleted file mode 100644 index 6fd51182aaf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter1.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Counter with 1 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringCounter1 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringCounter1() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringCounter1(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter2.java deleted file mode 100644 index 5f6b3cb65d8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounter2.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Counter with 2 labels. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringCounter2 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringCounter2() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringCounter2(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounterCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounterCell.java deleted file mode 100644 index 4d06bf772df..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringCounterCell.java +++ /dev/null @@ -1,23 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// TODO(fishx): Move these monitoring APIs into a separate file. -// ----------------------------------------------------------------------------- -// Monitoring Counter APIs. -// These APIs de-templated monitoring Counter for swig. - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringCounterCell extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringCounterCell() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringCounterCell(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge0.java deleted file mode 100644 index 07644a51b23..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge0.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Int Gauge without label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringIntGauge0 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringIntGauge0() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringIntGauge0(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge1.java deleted file mode 100644 index 8382f6e8ef0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge1.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Int Gauge with 1 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringIntGauge1 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringIntGauge1() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringIntGauge1(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge2.java deleted file mode 100644 index 699f99004a4..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGauge2.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Int Gauge with 2 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringIntGauge2 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringIntGauge2() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringIntGauge2(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGaugeCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGaugeCell.java deleted file mode 100644 index 4aa9d8255b1..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringIntGaugeCell.java +++ /dev/null @@ -1,22 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// ----------------------------------------------------------------------------- -// Monitoring Gauge APIs. -// These APIs de-templated monitoring Gauge for swig. - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringIntGaugeCell extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringIntGaugeCell() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringIntGaugeCell(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler0.java deleted file mode 100644 index d2a07d4729d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler0.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Sampler without label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringSampler0 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringSampler0() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringSampler0(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler1.java deleted file mode 100644 index 20480b01d90..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler1.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Sampler with 1 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringSampler1 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringSampler1() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringSampler1(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler2.java deleted file mode 100644 index 93878dc287c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSampler2.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for Sampler with 2 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringSampler2 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringSampler2() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringSampler2(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSamplerCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSamplerCell.java deleted file mode 100644 index f938c4a2b05..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringSamplerCell.java +++ /dev/null @@ -1,22 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// ----------------------------------------------------------------------------- -// Monitoring Sampler APIs. -// These APIs de-templated monitoring Sampler for swig. - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringSamplerCell extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringSamplerCell() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringSamplerCell(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge0.java deleted file mode 100644 index 87828c7df42..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge0.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for String Gauge without label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringStringGauge0 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringStringGauge0() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringStringGauge0(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge1.java deleted file mode 100644 index 5b462d7d1ab..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge1.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for String Gauge with 1 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringStringGauge1 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringStringGauge1() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringStringGauge1(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge2.java deleted file mode 100644 index 5098284180f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGauge2.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// APIs for String Gauge with 2 label. -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringStringGauge2 extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringStringGauge2() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringStringGauge2(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGaugeCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGaugeCell.java deleted file mode 100644 index ceb811e6da3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_MonitoringStringGaugeCell.java +++ /dev/null @@ -1,18 +0,0 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_MonitoringStringGaugeCell extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_MonitoringStringGaugeCell() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_MonitoringStringGaugeCell(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java index 340dcc8feec..30398899f83 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE package org.tensorflow.internal.c_api; @@ -8,15 +8,8 @@ import static org.tensorflow.internal.c_api.global.tensorflow.*; +// Parsed from tensorflow/c/eager/c_api_experimental.h -// APIs for generically dealing with op attributes (e.g. when forwarding them -// through custom device implementations). -// -// TODO(allenl): Currently these are black boxes, but we should have some way to -// inspect values. This would let people e.g. copy over most attributes and then -// modify some based on their values. - -// A reference to an op's name -> attribute mapping @Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) public class TFE_OpAttrs extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java index d1eefb1a9a3..56ed191ae28 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java @@ -4744,458 +4744,6 @@ public static native void TFE_ContextExportRunMetadata(TFE_Context ctx, // #endif // TENSORFLOW_C_EAGER_C_API_H_ -// Parsed from tensorflow/c/eager/c_api_experimental.h - -/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -==============================================================================*/ -// #ifndef TENSORFLOW_C_EAGER_C_API_EXPERIMENTAL_H_ -// #define TENSORFLOW_C_EAGER_C_API_EXPERIMENTAL_H_ - -// #include "tensorflow/c/c_api.h" -// #include "tensorflow/c/eager/c_api.h" - -// #ifdef __cplusplus -// #endif - -// Resets `op_to_reset` with `op_or_function_name` and `raw_device_name`. This -// is for performance optimization by reusing an exiting unused op rather than -// creating a new op every time. If `raw_device_name` is `NULL` or empty, it -// does not set the device name. If it's not `NULL`, then it attempts to parse -// and set the device name. It's effectively `TFE_OpSetDevice`, but it is faster -// than separately calling it because if the existing op has the same -// `raw_device_name`, it skips parsing and just leave as it is. -public static native void TFE_OpReset(TFE_Op op_to_reset, - @Cast("const char*") BytePointer op_or_function_name, - @Cast("const char*") BytePointer raw_device_name, - TF_Status status); -public static native void TFE_OpReset(TFE_Op op_to_reset, - String op_or_function_name, - String raw_device_name, - TF_Status status); - -// Enables only graph collection in RunMetadata on the functions executed from -// this context. -public static native void TFE_ContextEnableGraphCollection(TFE_Context ctx); - -// Disables only graph collection in RunMetadata on the functions executed from -// this context. -public static native void TFE_ContextDisableGraphCollection(TFE_Context ctx); -// Targeting ../TFE_MonitoringCounterCell.java - - - -// Atomically increments the value of the cell. The value must be non-negative. -public static native void TFE_MonitoringCounterCellIncrementBy( - TFE_MonitoringCounterCell cell, @Cast("int64_t") long value); - -// Retrieves the current value of the cell. -public static native @Cast("int64_t") long TFE_MonitoringCounterCellValue( - TFE_MonitoringCounterCell cell); -// Targeting ../TFE_MonitoringCounter0.java - - -// Returns a new Counter metric object. The caller should manage lifetime of -// the object. Using duplicate metric name will crash the program with fatal -// error. -public static native TFE_MonitoringCounter0 TFE_MonitoringNewCounter0( - @Cast("const char*") BytePointer name, TF_Status status, @Cast("const char*") BytePointer description); -public static native TFE_MonitoringCounter0 TFE_MonitoringNewCounter0( - String name, TF_Status status, String description); -// Deletes the Counter object. -public static native void TFE_MonitoringDeleteCounter0( - TFE_MonitoringCounter0 counter); -// Retrieves the cell from the Counter object. The Counter object will manage -// lifetime of the cell. -public static native TFE_MonitoringCounterCell TFE_MonitoringGetCellCounter0( - TFE_MonitoringCounter0 counter); -// Targeting ../TFE_MonitoringCounter1.java - - -public static native TFE_MonitoringCounter1 TFE_MonitoringNewCounter1( - @Cast("const char*") BytePointer name, TF_Status status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringCounter1 TFE_MonitoringNewCounter1( - String name, TF_Status status, String description, - String label1); -public static native void TFE_MonitoringDeleteCounter1( - TFE_MonitoringCounter1 counter); -public static native TFE_MonitoringCounterCell TFE_MonitoringGetCellCounter1( - TFE_MonitoringCounter1 counter, @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringCounterCell TFE_MonitoringGetCellCounter1( - TFE_MonitoringCounter1 counter, String label1); -// Targeting ../TFE_MonitoringCounter2.java - - -public static native TFE_MonitoringCounter2 TFE_MonitoringNewCounter2( - @Cast("const char*") BytePointer name, TF_Status status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringCounter2 TFE_MonitoringNewCounter2( - String name, TF_Status status, String description, - String label1, String label2); -public static native void TFE_MonitoringDeleteCounter2( - TFE_MonitoringCounter2 counter); -public static native TFE_MonitoringCounterCell TFE_MonitoringGetCellCounter2( - TFE_MonitoringCounter2 counter, @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringCounterCell TFE_MonitoringGetCellCounter2( - TFE_MonitoringCounter2 counter, String label1, String label2); -// Targeting ../TFE_MonitoringIntGaugeCell.java - - - -// Atomically set the value of the cell. -public static native void TFE_MonitoringIntGaugeCellSet( - TFE_MonitoringIntGaugeCell cell, @Cast("int64_t") long value); - -// Retrieves the current value of the cell. -public static native @Cast("int64_t") long TFE_MonitoringIntGaugeCellValue( - TFE_MonitoringIntGaugeCell cell); -// Targeting ../TFE_MonitoringIntGauge0.java - - -public static native TFE_MonitoringIntGauge0 TFE_MonitoringNewIntGauge0( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description); -public static native TFE_MonitoringIntGauge0 TFE_MonitoringNewIntGauge0( - String name, TF_Status out_status, String description); -public static native void TFE_MonitoringDeleteIntGauge0( - TFE_MonitoringIntGauge0 gauge); -public static native TFE_MonitoringIntGaugeCell TFE_MonitoringGetCellIntGauge0(TFE_MonitoringIntGauge0 gauge); -// Targeting ../TFE_MonitoringIntGauge1.java - - -public static native TFE_MonitoringIntGauge1 TFE_MonitoringNewIntGauge1( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringIntGauge1 TFE_MonitoringNewIntGauge1( - String name, TF_Status out_status, String description, - String label1); -public static native void TFE_MonitoringDeleteIntGauge1( - TFE_MonitoringIntGauge1 gauge); -public static native TFE_MonitoringIntGaugeCell TFE_MonitoringGetCellIntGauge1(TFE_MonitoringIntGauge1 gauge, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringIntGaugeCell TFE_MonitoringGetCellIntGauge1(TFE_MonitoringIntGauge1 gauge, - String label1); -// Targeting ../TFE_MonitoringIntGauge2.java - - -public static native TFE_MonitoringIntGauge2 TFE_MonitoringNewIntGauge2( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringIntGauge2 TFE_MonitoringNewIntGauge2( - String name, TF_Status out_status, String description, - String label1, String label2); -public static native void TFE_MonitoringDeleteIntGauge2( - TFE_MonitoringIntGauge2 gauge); -public static native TFE_MonitoringIntGaugeCell TFE_MonitoringGetCellIntGauge2(TFE_MonitoringIntGauge2 gauge, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringIntGaugeCell TFE_MonitoringGetCellIntGauge2(TFE_MonitoringIntGauge2 gauge, - String label1, String label2); -// Targeting ../TFE_MonitoringStringGaugeCell.java - - -public static native void TFE_MonitoringStringGaugeCellSet( - TFE_MonitoringStringGaugeCell cell, @Cast("const char*") BytePointer value); -public static native void TFE_MonitoringStringGaugeCellSet( - TFE_MonitoringStringGaugeCell cell, String value); -// Retrieves the string value and saves it in buffer. -public static native void TFE_MonitoringStringGaugeCellValue( - TFE_MonitoringStringGaugeCell cell, TF_Buffer buf); -// Targeting ../TFE_MonitoringStringGauge0.java - - -public static native TFE_MonitoringStringGauge0 TFE_MonitoringNewStringGauge0( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description); -public static native TFE_MonitoringStringGauge0 TFE_MonitoringNewStringGauge0( - String name, TF_Status out_status, String description); -public static native void TFE_MonitoringDeleteStringGauge0( - TFE_MonitoringStringGauge0 gauge); -public static native TFE_MonitoringStringGaugeCell TFE_MonitoringGetCellStringGauge0(TFE_MonitoringStringGauge0 gauge); -// Targeting ../TFE_MonitoringStringGauge1.java - - -public static native TFE_MonitoringStringGauge1 TFE_MonitoringNewStringGauge1( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringStringGauge1 TFE_MonitoringNewStringGauge1( - String name, TF_Status out_status, String description, - String label1); -public static native void TFE_MonitoringDeleteStringGauge1( - TFE_MonitoringStringGauge1 gauge); -public static native TFE_MonitoringStringGaugeCell TFE_MonitoringGetCellStringGauge1(TFE_MonitoringStringGauge1 gauge, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringStringGaugeCell TFE_MonitoringGetCellStringGauge1(TFE_MonitoringStringGauge1 gauge, - String label1); -// Targeting ../TFE_MonitoringStringGauge2.java - - -public static native TFE_MonitoringStringGauge2 TFE_MonitoringNewStringGauge2( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringStringGauge2 TFE_MonitoringNewStringGauge2( - String name, TF_Status out_status, String description, - String label1, String label2); -public static native void TFE_MonitoringDeleteStringGauge2( - TFE_MonitoringStringGauge2 gauge); -public static native TFE_MonitoringStringGaugeCell TFE_MonitoringGetCellStringGauge2(TFE_MonitoringStringGauge2 gauge, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringStringGaugeCell TFE_MonitoringGetCellStringGauge2(TFE_MonitoringStringGauge2 gauge, - String label1, String label2); -// Targeting ../TFE_MonitoringBoolGaugeCell.java - - -public static native void TFE_MonitoringBoolGaugeCellSet( - TFE_MonitoringBoolGaugeCell cell, @Cast("bool") boolean value); -public static native @Cast("bool") boolean TFE_MonitoringBoolGaugeCellValue( - TFE_MonitoringBoolGaugeCell cell); -// Targeting ../TFE_MonitoringBoolGauge0.java - - -public static native TFE_MonitoringBoolGauge0 TFE_MonitoringNewBoolGauge0( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description); -public static native TFE_MonitoringBoolGauge0 TFE_MonitoringNewBoolGauge0( - String name, TF_Status out_status, String description); -public static native void TFE_MonitoringDeleteBoolGauge0( - TFE_MonitoringBoolGauge0 gauge); -public static native TFE_MonitoringBoolGaugeCell TFE_MonitoringGetCellBoolGauge0(TFE_MonitoringBoolGauge0 gauge); -// Targeting ../TFE_MonitoringBoolGauge1.java - - -public static native TFE_MonitoringBoolGauge1 TFE_MonitoringNewBoolGauge1( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringBoolGauge1 TFE_MonitoringNewBoolGauge1( - String name, TF_Status out_status, String description, - String label1); -public static native void TFE_MonitoringDeleteBoolGauge1( - TFE_MonitoringBoolGauge1 gauge); -public static native TFE_MonitoringBoolGaugeCell TFE_MonitoringGetCellBoolGauge1(TFE_MonitoringBoolGauge1 gauge, - @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringBoolGaugeCell TFE_MonitoringGetCellBoolGauge1(TFE_MonitoringBoolGauge1 gauge, - String label1); -// Targeting ../TFE_MonitoringBoolGauge2.java - - -public static native TFE_MonitoringBoolGauge2 TFE_MonitoringNewBoolGauge2( - @Cast("const char*") BytePointer name, TF_Status out_status, @Cast("const char*") BytePointer description, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringBoolGauge2 TFE_MonitoringNewBoolGauge2( - String name, TF_Status out_status, String description, - String label1, String label2); -public static native void TFE_MonitoringDeleteBoolGauge2( - TFE_MonitoringBoolGauge2 gauge); -public static native TFE_MonitoringBoolGaugeCell TFE_MonitoringGetCellBoolGauge2(TFE_MonitoringBoolGauge2 gauge, - @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringBoolGaugeCell TFE_MonitoringGetCellBoolGauge2(TFE_MonitoringBoolGauge2 gauge, - String label1, String label2); -// Targeting ../TFE_MonitoringSamplerCell.java - - - -// Atomically add the value of the cell. -public static native void TFE_MonitoringSamplerCellAdd( - TFE_MonitoringSamplerCell cell, double value); - -// Retrieves the current value of the cell. The return value is a HistogramProto -// saved in buffer. -public static native void TFE_MonitoringSamplerCellValue( - TFE_MonitoringSamplerCell cell, TF_Buffer buf); - -// APIs for sampler buckets -// Targeting ../TFE_MonitoringSampler0.java - - -public static native void TFE_MonitoringDeleteSampler0( - TFE_MonitoringSampler0 sampler); -public static native TFE_MonitoringSamplerCell TFE_MonitoringGetCellSampler0( - TFE_MonitoringSampler0 sampler); -// Targeting ../TFE_MonitoringSampler1.java - - -public static native void TFE_MonitoringDeleteSampler1( - TFE_MonitoringSampler1 sampler); -public static native TFE_MonitoringSamplerCell TFE_MonitoringGetCellSampler1( - TFE_MonitoringSampler1 sampler, @Cast("const char*") BytePointer label1); -public static native TFE_MonitoringSamplerCell TFE_MonitoringGetCellSampler1( - TFE_MonitoringSampler1 sampler, String label1); -// Targeting ../TFE_MonitoringSampler2.java - - -public static native void TFE_MonitoringDeleteSampler2( - TFE_MonitoringSampler2 sampler); -public static native TFE_MonitoringSamplerCell TFE_MonitoringGetCellSampler2( - TFE_MonitoringSampler2 sampler, @Cast("const char*") BytePointer label1, @Cast("const char*") BytePointer label2); -public static native TFE_MonitoringSamplerCell TFE_MonitoringGetCellSampler2( - TFE_MonitoringSampler2 sampler, String label1, String label2); - -// Sets whether to use TFRT -public static native void TFE_ContextOptionsSetTfrt(TFE_ContextOptions arg0, - @Cast("bool") boolean use_tfrt); - -// Returns the context_id from the EagerContext which is used by the -// EagerService to maintain consistency between client and worker. The -// context_id is initialized with a dummy value and is later set when the worker -// is initialized (either locally or remotely). The context_id can change during -// the process lifetime although this should cause the worker to be -// reinitialized (e.g. cleared caches) as well. -public static native @Cast("uint64_t") long TFE_GetContextId(TFE_Context ctx); -// Targeting ../TFE_CancellationManager.java - - -public static native TFE_CancellationManager TFE_NewCancellationManager(); -public static native @Cast("bool") boolean TFE_CancellationManagerIsCancelled( - TFE_CancellationManager arg0); -public static native void TFE_CancellationManagerStartCancel( - TFE_CancellationManager arg0); -public static native void TFE_DeleteCancellationManager( - TFE_CancellationManager arg0); - -// Associates the given `cancellation_manager` with `op`, so that invoking -// `TFE_CancellationManagerStartCancel(cancellation_manager)` will cancel the -// execution of `op`. -public static native void TFE_OpSetCancellationManager( - TFE_Op op, TFE_CancellationManager cancellation_manager, - TF_Status status); -// Targeting ../TFE_Executor.java - - - -// Creates a new eager Executor. Nodes in one executor are guaranteed to be -// executed in sequence. Assigning nodes to different executors allows executing -// nodes in parallel. -public static native TFE_Executor TFE_NewExecutor(@Cast("bool") boolean is_async); - -// Deletes the eager Executor without waiting for enqueued nodes. Please call -// TFE_ExecutorWaitForAllPendingNodes before calling this API if you want to -// make sure all nodes are finished. -public static native void TFE_DeleteExecutor(TFE_Executor arg0); - -// Returns true if the executor is in async mode. -public static native @Cast("bool") boolean TFE_ExecutorIsAsync(TFE_Executor arg0); - -// Causes the calling thread to block till all ops dispatched in this executor -// have been executed. Note that "execution" here refers to kernel execution / -// scheduling of copies, etc. Similar to sync execution, it doesn't guarantee -// that lower level device queues (like GPU streams) have been flushed. -// -// This call may not block for execution of ops enqueued concurrently with this -// call. -public static native void TFE_ExecutorWaitForAllPendingNodes( - TFE_Executor arg0, TF_Status status); - -// When an error happens, any pending operations are discarded and newly issued -// ops return an error. This call clears the error state and re-enables -// execution of newly issued ops. -// -// Note that outputs of discarded ops remain in a corrupt state and should not -// be used for future calls. -// TODO(agarwal): mark the affected handles and raise errors if they are used. -public static native void TFE_ExecutorClearError(TFE_Executor arg0); - -// Sets a custom Executor for current thread. All nodes created by this thread -// will be added to this Executor. It will override current executor. -public static native void TFE_ContextSetExecutorForThread(TFE_Context arg0, - TFE_Executor arg1); - -// Returns the Executor for current thread. -public static native TFE_Executor TFE_ContextGetExecutorForThread( - TFE_Context arg0); - -// ----------------------------------------------------------------------------- -// Dynamic cluster API. - -// Update an existing context with a new set of servers defined in a ServerDef -// proto. Servers can be added to and removed from the list of remote workers -// in the context. New set of servers identified by the ServerDef must be up -// when the context is updated. -// -// This API is for experimental usage and may be subject to change. -public static native void TFE_ContextUpdateServerDef(TFE_Context ctx, - int keep_alive_secs, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); - -// Checks whether a remote worker is alive or not. This will return true even if -// the context doesn't exist on the remote worker. -public static native @Cast("bool") boolean TFE_ContextCheckAlive(TFE_Context ctx, - @Cast("const char*") BytePointer worker_name, - TF_Status status); -public static native @Cast("bool") boolean TFE_ContextCheckAlive(TFE_Context ctx, - String worker_name, - TF_Status status); - -// Sync pending nodes in local executors (including the context default executor -// and thread executors) and streaming requests to remote executors, and get the -// combined status. -public static native void TFE_ContextAsyncWait(TFE_Context ctx, - TF_Status status); - -// This function will block till the operation that produces `h` has -// completed. This is only valid on local TFE_TensorHandles. The pointer -// returned will be on the device in which the TFE_TensorHandle resides (so e.g. -// for a GPU tensor this will return a pointer to GPU memory). The pointer is -// only guaranteed to be valid until TFE_DeleteTensorHandle is called on this -// TensorHandle. Only supports POD data types. -public static native Pointer TFE_TensorHandleDevicePointer(TFE_TensorHandle arg0, - TF_Status arg1); - -// This function will block till the operation that produces `h` has -// completed. This is only valid on local TFE_TensorHandles. Returns the size in -// bytes of the memory pointed to by the device pointer returned above. -public static native @Cast("size_t") long TFE_TensorHandleDeviceMemorySize(TFE_TensorHandle arg0, - TF_Status arg1); - -// Creates a new TensorHandle from memory residing in the physical device -// device_name. Takes ownership of the memory, and will call deleter to release -// it after TF no longer needs it or in case of error. -// -// Custom devices must use TFE_NewCustomDeviceTensorHandle instead. -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, @Cast("const char*") BytePointer device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") LongPointer dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, String device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") LongBuffer dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, @Cast("const char*") BytePointer device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") long[] dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, String device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") LongPointer dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, @Cast("const char*") BytePointer device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") LongBuffer dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); -public static native TFE_TensorHandle TFE_NewTensorHandleFromDeviceMemory( - TFE_Context ctx, String device_name, @Cast("TF_DataType") int arg2, @Cast("const int64_t*") long[] dims, - int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg, TF_Status status); - -// Retrieves the address space (i.e. job, replia, task) of the local host and -// saves it in the buffer. -public static native void TFE_HostAddressSpace(TFE_Context ctx, - TF_Buffer buf); // Targeting ../TFE_OpAttrs.java @@ -5234,136 +4782,5 @@ public static native void TFE_OpSetAttrValueProto(@Const TFE_Op op, public static final int TFE_CUSTOM_DEVICE_VERSION = 4; -// Struct to be filled in. Functions are required except where indicated. - -// Registers a custom device for use with eager execution. -// -// Eager operations may be placed on this device, e.g. `with -// tf.device("CUSTOM"):` from Python if `device_name` for this call is -// "/job:localhost/replica:0/task:0/device:CUSTOM:0". -// -// The custom device defines copy operations for moving TensorHandles on and -// off, and an execution operation for named operations. Often execution will -// simply wrap op execution on one or more physical devices. -// -// device_info is an opaque caller-defined type stored with the custom device -// which is passed to the functions referenced in the TFE_CustomDevice struct -// `device` (execute, delete_device, etc.). It can for example contain the -// names of wrapped devices. -// -// There are currently no graph semantics implemented for registered custom -// devices, so executing tf.functions which contain operations placed on custom -// devices will fail. -// -// `device_name` must not name an existing physical or custom device. It must -// follow the format: -// -// /job:/replica:/task:/device:: -// -// If the device is successfully registered, `status` is set to TF_OK. Otherwise -// the device is not usable. In case of a bad status, `device.delete_device` is -// still called on `device_info` (i.e. the caller does not retain ownership). -// -// This API is highly experimental, and in particular is expected to change when -// it starts supporting operations with attributes and when tf.function support -// is added. - -// Struct to be filled in to define a custom device tensor handle. Fields are -// required except where indicated. - -// Creates a new TensorHandle from memory residing in a custom device. Takes -// ownership of the memory pointed to by `tensor_handle_data`, and calls -// `methods.deallocator` to release it after TF no longer needs it or in case of -// an error. -// -// This call is similar to `TFE_NewTensorHandleFromDeviceMemory`, but supports -// custom devices instead of physical devices and does not require blocking -// waiting for exact shapes. - -public static native void TFE_ContextGetFunctionDef(TFE_Context ctx, - @Cast("const char*") BytePointer function_name, - TF_Buffer buf, - TF_Status status); -public static native void TFE_ContextGetFunctionDef(TFE_Context ctx, - String function_name, - TF_Buffer buf, - TF_Status status); - -// Allocate and return a new Tensor on the host. -// -// The caller must set the Tensor values by writing them to the pointer returned -// by TF_TensorData with length TF_TensorByteSize. -public static native TF_Tensor TFE_AllocateHostTensor(TFE_Context ctx, - @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") LongPointer dims, - int num_dims, - TF_Status status); -public static native TF_Tensor TFE_AllocateHostTensor(TFE_Context ctx, - @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") LongBuffer dims, - int num_dims, - TF_Status status); -public static native TF_Tensor TFE_AllocateHostTensor(TFE_Context ctx, - @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") long[] dims, - int num_dims, - TF_Status status); - -// Given a Tensor, wrap it with a TensorHandle -// -// Similar to TFE_NewTensorHandle, but includes a pointer to the TFE_Context. -// The context should be identical to that of the Tensor. -public static native TFE_TensorHandle TFE_NewTensorHandleFromTensor( - TFE_Context ctx, TF_Tensor t, TF_Status status); - -// Create a packed TensorHandle with the given list of TensorHandles. -// If `handles` are on the same device, assign the same device to the packed -// handle; if `handles` are on different deivces, assign a CompositeDevice to -// it. -public static native TFE_TensorHandle TFE_CreatePackedTensorHandle( - TFE_Context ctx, @Cast("TFE_TensorHandle**") PointerPointer handles, IntPointer num_handles, - TF_Status status); -public static native TFE_TensorHandle TFE_CreatePackedTensorHandle( - TFE_Context ctx, @ByPtrPtr TFE_TensorHandle handles, IntPointer num_handles, - TF_Status status); -public static native TFE_TensorHandle TFE_CreatePackedTensorHandle( - TFE_Context ctx, @ByPtrPtr TFE_TensorHandle handles, IntBuffer num_handles, - TF_Status status); -public static native TFE_TensorHandle TFE_CreatePackedTensorHandle( - TFE_Context ctx, @ByPtrPtr TFE_TensorHandle handles, int[] num_handles, - TF_Status status); - -// Configure soft device placement policy for the eager executor. Note this -// policy is applied to any subsequent op executions. -public static native void TFE_ContextSetSoftDevicePlacement(TFE_Context ctx, - @Cast("unsigned char") byte enable, - TF_Status status); - -// Configure device placement policy logging for the eager executor. Note this -// policy is applied to any subsequent op executions. -public static native void TFE_ContextSetLogDevicePlacement(TFE_Context ctx, - @Cast("unsigned char") byte enable, - TF_Status status); - -// Returns the device type of the operation that produced `h`. -public static native @Cast("const char*") BytePointer TFE_TensorHandleDeviceType( - TFE_TensorHandle h, TF_Status status); - -// Returns the device ID of the operation that produced `h`. -public static native int TFE_TensorHandleDeviceID(TFE_TensorHandle h, - TF_Status status); - -// Get a comma-separated list of op names executed in graph functions dispatched -// to `ctx`. This feature is currently only enabled for TFRT debug builds, for -// performance and simplicity reasons. -public static native void TFE_GetExecutedOpNames(TFE_Context ctx, - TF_Buffer buf, - TF_Status status); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_EAGER_C_API_EXPERIMENTAL_H_ - } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pb b/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pb index ff27424bb23..523f9d0a0c7 100644 Binary files a/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pb and b/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pb differ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pbtxt b/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pbtxt index dc03d76f47e..d1ca721acbb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pbtxt +++ b/tensorflow-core/tensorflow-core-api/src/gen/resources/ops.pbtxt @@ -31154,6 +31154,63 @@ op { type: "type" } } +op { + name: "QuantizedConcatV2" + input_arg { + name: "values" + type_attr: "T" + number_attr: "N" + } + input_arg { + name: "axis" + type_attr: "Tidx" + } + input_arg { + name: "input_mins" + type: DT_FLOAT + number_attr: "N" + } + input_arg { + name: "input_maxes" + type: DT_FLOAT + number_attr: "N" + } + output_arg { + name: "output" + type_attr: "T" + } + output_arg { + name: "output_min" + type: DT_FLOAT + } + output_arg { + name: "output_max" + type: DT_FLOAT + } + attr { + name: "N" + type: "int" + has_minimum: true + minimum: 2 + } + attr { + name: "T" + type: "type" + } + attr { + name: "Tidx" + type: "type" + default_value { + type: DT_INT32 + } + allowed_values { + list { + type: DT_INT32 + type: DT_INT64 + } + } + } +} op { name: "QuantizedConv2D" input_arg {