org.bytedeco.javacpp.tensorflow Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.4.4: DO NOT EDIT THIS FILE
package org.bytedeco.javacpp;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
public class tensorflow extends org.bytedeco.javacpp.helper.tensorflow {
static { Loader.load(); }
@Name("tensorflow::gtl::InlinedVector") public static class AllocatorAttributesVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public AllocatorAttributesVector(Pointer p) { super(p); }
public AllocatorAttributesVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef AllocatorAttributesVector put(@ByRef AllocatorAttributesVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef AllocatorAttributes get(@Cast("size_t") long i);
public native AllocatorAttributesVector put(@Cast("size_t") long i, AllocatorAttributes value);
}
@Name("tensorflow::gtl::InlinedVector") public static class AllocRecordVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public AllocRecordVector(Pointer p) { super(p); }
public AllocRecordVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef AllocRecordVector put(@ByRef AllocRecordVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef AllocRecord get(@Cast("size_t") long i);
public native AllocRecordVector put(@Cast("size_t") long i, AllocRecord value);
}
@Name("tensorflow::gtl::InlinedVector") public static class DeviceContextInlinedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DeviceContextInlinedVector(Pointer p) { super(p); }
public DeviceContextInlinedVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef DeviceContextInlinedVector put(@ByRef DeviceContextInlinedVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native DeviceContext get(@Cast("size_t") long i);
public native DeviceContextInlinedVector put(@Cast("size_t") long i, DeviceContext value);
}
@Name("tensorflow::gtl::InlinedVector") public static class DeviceTypeVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DeviceTypeVector(Pointer p) { super(p); }
public DeviceTypeVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef DeviceTypeVector put(@ByRef DeviceTypeVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef DeviceType get(@Cast("size_t") long i);
public native DeviceTypeVector put(@Cast("size_t") long i, DeviceType value);
}
@Name("tensorflow::gtl::InlinedVector") public static class TensorValueVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorValueVector(Pointer p) { super(p); }
public TensorValueVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef TensorValueVector put(@ByRef TensorValueVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef TensorValue get(@Cast("size_t") long i);
public native TensorValueVector put(@Cast("size_t") long i, TensorValue value);
}
@Name("tensorflow::gtl::InlinedVector") public static class WrappedAllocatorVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WrappedAllocatorVector(Pointer p) { super(p); }
public WrappedAllocatorVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef WrappedAllocatorVector put(@ByRef WrappedAllocatorVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef WrappedAllocator get(@Cast("size_t") long i);
public native WrappedAllocatorVector put(@Cast("size_t") long i, WrappedAllocator value);
}
@Name("tensorflow::gtl::InlinedVector") public static class LongVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LongVector(Pointer p) { super(p); }
public LongVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef LongVector put(@ByRef LongVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @Cast("tensorflow::int64") long get(@Cast("size_t") long i);
public native LongVector put(@Cast("size_t") long i, long value);
}
@Name("tensorflow::gtl::InlinedVector") public static class DataTypeVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DataTypeVector(Pointer p) { super(p); }
public DataTypeVector() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef DataTypeVector put(@ByRef DataTypeVector x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @Cast("tensorflow::DataType") int get(@Cast("size_t") long i);
public native DataTypeVector put(@Cast("size_t") long i, int value);
}
@Name("google::protobuf::Map") public static class StringStringMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringStringMap(Pointer p) { super(p); }
public StringStringMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringStringMap put(@ByRef StringStringMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @StdString BytePointer get(@StdString BytePointer i);
public native StringStringMap put(@StdString BytePointer i, BytePointer value);
@ValueSetter @Index public native StringStringMap put(@StdString BytePointer i, @StdString String value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @StdString BytePointer second();
}
}
@Name("google::protobuf::Map") public static class StringIntMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringIntMap(Pointer p) { super(p); }
public StringIntMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringIntMap put(@ByRef StringIntMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @Cast("google::protobuf::int32") int get(@StdString BytePointer i);
public native StringIntMap put(@StdString BytePointer i, int value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @Cast("google::protobuf::int32") int second();
}
}
@Name("google::protobuf::Map") public static class IntStringMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public IntStringMap(Pointer p) { super(p); }
public IntStringMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef IntStringMap put(@ByRef IntStringMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @StdString BytePointer get(int i);
public native IntStringMap put(int i, BytePointer value);
@ValueSetter @Index public native IntStringMap put(int i, @StdString String value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter int first();
public native @Name("operator*().second") @MemberGetter @StdString BytePointer second();
}
}
@Name("google::protobuf::Map") public static class StringFeatureMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringFeatureMap(Pointer p) { super(p); }
public StringFeatureMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringFeatureMap put(@ByRef StringFeatureMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef Feature get(@StdString BytePointer i);
public native StringFeatureMap put(@StdString BytePointer i, Feature value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const Feature second();
}
}
@Name("google::protobuf::Map") public static class StringFeatureListMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringFeatureListMap(Pointer p) { super(p); }
public StringFeatureListMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringFeatureListMap put(@ByRef StringFeatureListMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef FeatureList get(@StdString BytePointer i);
public native StringFeatureListMap put(@StdString BytePointer i, FeatureList value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const FeatureList second();
}
}
@Name("google::protobuf::Map") public static class StringCollectionDefMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringCollectionDefMap(Pointer p) { super(p); }
public StringCollectionDefMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringCollectionDefMap put(@ByRef StringCollectionDefMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef CollectionDef get(@StdString BytePointer i);
public native StringCollectionDefMap put(@StdString BytePointer i, CollectionDef value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const CollectionDef second();
}
}
@Name("google::protobuf::Map") public static class StringSignatureDefMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringSignatureDefMap(Pointer p) { super(p); }
public StringSignatureDefMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringSignatureDefMap put(@ByRef StringSignatureDefMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef SignatureDef get(@StdString BytePointer i);
public native StringSignatureDefMap put(@StdString BytePointer i, SignatureDef value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const SignatureDef second();
}
}
@Name("google::protobuf::Map") public static class StringTensorInfoMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringTensorInfoMap(Pointer p) { super(p); }
public StringTensorInfoMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringTensorInfoMap put(@ByRef StringTensorInfoMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef TensorInfo get(@StdString BytePointer i);
public native StringTensorInfoMap put(@StdString BytePointer i, TensorInfo value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const TensorInfo second();
}
}
@Name("google::protobuf::Map") public static class StringAttrValueMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringAttrValueMap(Pointer p) { super(p); }
public StringAttrValueMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringAttrValueMap put(@ByRef StringAttrValueMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef AttrValue get(@StdString BytePointer i);
public native StringAttrValueMap put(@StdString BytePointer i, AttrValue value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const AttrValue second();
}
}
@Name("tensorflow::gtl::FlatMap,tensorflow::hash >") public static class NameRangeMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NameRangeMap(Pointer p) { super(p); }
public NameRangeMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef NameRangeMap put(@ByRef NameRangeMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index(function = "at") public native int first(@StringPiece BytePointer i); public native NameRangeMap first(@StringPiece BytePointer i, int first);
@Index(function = "at") public native int second(@StringPiece BytePointer i); public native NameRangeMap second(@StringPiece BytePointer i, int second);
}
@Name("tensorflow::gtl::FlatMap") public static class TF_SessionStringMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TF_SessionStringMap(Pointer p) { super(p); }
public TF_SessionStringMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef TF_SessionStringMap put(@ByRef TF_SessionStringMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @StdString BytePointer get(TF_Session i);
public native TF_SessionStringMap put(TF_Session i, BytePointer value);
@ValueSetter @Index public native TF_SessionStringMap put(TF_Session i, @StdString String value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @Const TF_Session first();
public native @Name("operator*().second") @MemberGetter @StdString BytePointer second();
}
}
@Name("std::list") public static class StringList extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringList(Pointer p) { super(p); }
public StringList() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringList put(@ByRef StringList x);
public boolean empty() { return size() == 0; }
public native long size();
public native @ByVal Iterator insert(@ByVal Iterator pos, @StdString BytePointer value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @StdString BytePointer get();
}
}
@Name("std::map") public static class TensorIdTensorIdMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorIdTensorIdMap(Pointer p) { super(p); }
public TensorIdTensorIdMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef TensorIdTensorIdMap put(@ByRef TensorIdTensorIdMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef TensorId get(@ByRef TensorId i);
public native TensorIdTensorIdMap put(@ByRef TensorId i, TensorId value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @ByRef @Const TensorId first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const TensorId second();
}
}
@Name("std::map") public static class SafeTensorIdTensorIdMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SafeTensorIdTensorIdMap(Pointer p) { super(p); }
public SafeTensorIdTensorIdMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef SafeTensorIdTensorIdMap put(@ByRef SafeTensorIdTensorIdMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef SafeTensorId get(@ByRef SafeTensorId i);
public native SafeTensorIdTensorIdMap put(@ByRef SafeTensorId i, SafeTensorId value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @ByRef @Const SafeTensorId first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const SafeTensorId second();
}
}
@Name("std::set") public static class StringSet extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringSet(Pointer p) { super(p); }
public StringSet() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringSet put(@ByRef StringSet x);
public boolean empty() { return size() == 0; }
public native long size();
public native void insert(@StdString BytePointer value);
public native void erase(@StdString BytePointer value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @StdString BytePointer get();
}
}
@Name("std::vector") public static class StringPieceVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringPieceVector(Pointer p) { super(p); }
public StringPieceVector(BytePointer value) { this(1); put(0, value); }
public StringPieceVector(BytePointer ... array) { this(array.length); put(array); }
public StringPieceVector(String value) { this(1); put(0, value); }
public StringPieceVector(String ... array) { this(array.length); put(array); }
public StringPieceVector() { allocate(); }
public StringPieceVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef StringPieceVector put(@ByRef StringPieceVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @StringPiece BytePointer get(@Cast("size_t") long i);
public native StringPieceVector put(@Cast("size_t") long i, BytePointer value);
@ValueSetter @Index(function = "at") public native StringPieceVector put(@Cast("size_t") long i, @StringPiece String value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @StringPiece BytePointer value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @StringPiece BytePointer get();
}
public BytePointer[] get() {
BytePointer[] array = new BytePointer[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public BytePointer pop_back() {
long size = size();
BytePointer value = get(size - 1);
resize(size - 1);
return value;
}
public StringPieceVector push_back(BytePointer value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public StringPieceVector put(BytePointer value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public StringPieceVector put(BytePointer ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
public StringPieceVector push_back(String value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public StringPieceVector put(String value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public StringPieceVector put(String ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class StringVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringVector(Pointer p) { super(p); }
public StringVector(BytePointer value) { this(1); put(0, value); }
public StringVector(BytePointer ... array) { this(array.length); put(array); }
public StringVector(String value) { this(1); put(0, value); }
public StringVector(String ... array) { this(array.length); put(array); }
public StringVector() { allocate(); }
public StringVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef StringVector put(@ByRef StringVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @StdString BytePointer get(@Cast("size_t") long i);
public native StringVector put(@Cast("size_t") long i, BytePointer value);
@ValueSetter @Index(function = "at") public native StringVector put(@Cast("size_t") long i, @StdString String value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @StdString BytePointer value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @StdString BytePointer get();
}
public BytePointer[] get() {
BytePointer[] array = new BytePointer[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public BytePointer pop_back() {
long size = size();
BytePointer value = get(size - 1);
resize(size - 1);
return value;
}
public StringVector push_back(BytePointer value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public StringVector put(BytePointer value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public StringVector put(BytePointer ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
public StringVector push_back(String value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public StringVector put(String value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public StringVector put(String ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector >") public static class StringStringPairVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringStringPairVector(Pointer p) { super(p); }
public StringStringPairVector(BytePointer[] firstValue, BytePointer[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringStringPairVector(String[] firstValue, String[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringStringPairVector() { allocate(); }
public StringStringPairVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef StringStringPairVector put(@ByRef StringStringPairVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @StdString BytePointer first(@Cast("size_t") long i); public native StringStringPairVector first(@Cast("size_t") long i, BytePointer first);
@Index(function = "at") public native @StdString BytePointer second(@Cast("size_t") long i); public native StringStringPairVector second(@Cast("size_t") long i, BytePointer second);
@MemberSetter @Index(function = "at") public native StringStringPairVector first(@Cast("size_t") long i, @StdString String first);
@MemberSetter @Index(function = "at") public native StringStringPairVector second(@Cast("size_t") long i, @StdString String second);
public StringStringPairVector put(BytePointer[] firstValue, BytePointer[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
public StringStringPairVector put(String[] firstValue, String[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
}
@Name("std::vector") public static class DeviceVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DeviceVector(Pointer p) { super(p); }
public DeviceVector(Device value) { this(1); put(0, value); }
public DeviceVector(Device ... array) { this(array.length); put(array); }
public DeviceVector() { allocate(); }
public DeviceVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DeviceVector put(@ByRef DeviceVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native Device get(@Cast("size_t") long i);
public native DeviceVector put(@Cast("size_t") long i, Device value);
public native @ByVal Iterator insert(@ByVal Iterator pos, Device value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const Device get();
}
public Device[] get() {
Device[] array = new Device[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Device pop_back() {
long size = size();
Device value = get(size - 1);
resize(size - 1);
return value;
}
public DeviceVector push_back(Device value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public DeviceVector put(Device value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public DeviceVector put(Device ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class DeviceContextVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DeviceContextVector(Pointer p) { super(p); }
public DeviceContextVector(DeviceContext value) { this(1); put(0, value); }
public DeviceContextVector(DeviceContext ... array) { this(array.length); put(array); }
public DeviceContextVector() { allocate(); }
public DeviceContextVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DeviceContextVector put(@ByRef DeviceContextVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native DeviceContext get(@Cast("size_t") long i);
public native DeviceContextVector put(@Cast("size_t") long i, DeviceContext value);
public native @ByVal Iterator insert(@ByVal Iterator pos, DeviceContext value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const DeviceContext get();
}
public DeviceContext[] get() {
DeviceContext[] array = new DeviceContext[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public DeviceContext pop_back() {
long size = size();
DeviceContext value = get(size - 1);
resize(size - 1);
return value;
}
public DeviceContextVector push_back(DeviceContext value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public DeviceContextVector put(DeviceContext value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public DeviceContextVector put(DeviceContext ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class TensorVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorVector(Pointer p) { super(p); }
public TensorVector(Tensor value) { this(1); put(0, value); }
public TensorVector(Tensor ... array) { this(array.length); put(array); }
public TensorVector() { allocate(); }
public TensorVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef TensorVector put(@ByRef TensorVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef Tensor get(@Cast("size_t") long i);
public native TensorVector put(@Cast("size_t") long i, Tensor value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef Tensor value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const Tensor get();
}
public Tensor[] get() {
Tensor[] array = new Tensor[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Tensor pop_back() {
long size = size();
Tensor value = get(size - 1);
resize(size - 1);
return value;
}
public TensorVector push_back(Tensor value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public TensorVector put(Tensor value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public TensorVector put(Tensor ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class TensorProtoVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorProtoVector(Pointer p) { super(p); }
public TensorProtoVector(TensorProto value) { this(1); put(0, value); }
public TensorProtoVector(TensorProto ... array) { this(array.length); put(array); }
public TensorProtoVector() { allocate(); }
public TensorProtoVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef TensorProtoVector put(@ByRef TensorProtoVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef TensorProto get(@Cast("size_t") long i);
public native TensorProtoVector put(@Cast("size_t") long i, TensorProto value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef TensorProto value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const TensorProto get();
}
public TensorProto[] get() {
TensorProto[] array = new TensorProto[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public TensorProto pop_back() {
long size = size();
TensorProto value = get(size - 1);
resize(size - 1);
return value;
}
public TensorProtoVector push_back(TensorProto value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public TensorProtoVector put(TensorProto value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public TensorProtoVector put(TensorProto ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class TensorShapeVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorShapeVector(Pointer p) { super(p); }
public TensorShapeVector(TensorShape value) { this(1); put(0, value); }
public TensorShapeVector(TensorShape ... array) { this(array.length); put(array); }
public TensorShapeVector() { allocate(); }
public TensorShapeVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef TensorShapeVector put(@ByRef TensorShapeVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef TensorShape get(@Cast("size_t") long i);
public native TensorShapeVector put(@Cast("size_t") long i, TensorShape value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef TensorShape value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const TensorShape get();
}
public TensorShape[] get() {
TensorShape[] array = new TensorShape[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public TensorShape pop_back() {
long size = size();
TensorShape value = get(size - 1);
resize(size - 1);
return value;
}
public TensorShapeVector push_back(TensorShape value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public TensorShapeVector put(TensorShape value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public TensorShapeVector put(TensorShape ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class NodeOutVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NodeOutVector(Pointer p) { super(p); }
public NodeOutVector(NodeBuilder.NodeOut value) { this(1); put(0, value); }
public NodeOutVector(NodeBuilder.NodeOut ... array) { this(array.length); put(array); }
public NodeOutVector() { allocate(); }
public NodeOutVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef NodeOutVector put(@ByRef NodeOutVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef NodeBuilder.NodeOut get(@Cast("size_t") long i);
public native NodeOutVector put(@Cast("size_t") long i, NodeBuilder.NodeOut value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef NodeBuilder.NodeOut value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const NodeBuilder.NodeOut get();
}
public NodeBuilder.NodeOut[] get() {
NodeBuilder.NodeOut[] array = new NodeBuilder.NodeOut[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public NodeBuilder.NodeOut pop_back() {
long size = size();
NodeBuilder.NodeOut value = get(size - 1);
resize(size - 1);
return value;
}
public NodeOutVector push_back(NodeBuilder.NodeOut value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public NodeOutVector put(NodeBuilder.NodeOut value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public NodeOutVector put(NodeBuilder.NodeOut ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class NodeVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NodeVector(Pointer p) { super(p); }
public NodeVector(Node value) { this(1); put(0, value); }
public NodeVector(Node ... array) { this(array.length); put(array); }
public NodeVector() { allocate(); }
public NodeVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef NodeVector put(@ByRef NodeVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native Node get(@Cast("size_t") long i);
public native NodeVector put(@Cast("size_t") long i, Node value);
public native @ByVal Iterator insert(@ByVal Iterator pos, Node value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const Node get();
}
public Node[] get() {
Node[] array = new Node[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Node pop_back() {
long size = size();
Node value = get(size - 1);
resize(size - 1);
return value;
}
public NodeVector push_back(Node value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public NodeVector put(Node value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public NodeVector put(Node ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector >") public static class NodeIntPairVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NodeIntPairVector(Pointer p) { super(p); }
public NodeIntPairVector(Node[] firstValue, int[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public NodeIntPairVector() { allocate(); }
public NodeIntPairVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef NodeIntPairVector put(@ByRef NodeIntPairVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native Node first(@Cast("size_t") long i); public native NodeIntPairVector first(@Cast("size_t") long i, Node first);
@Index(function = "at") public native int second(@Cast("size_t") long i); public native NodeIntPairVector second(@Cast("size_t") long i, int second);
public NodeIntPairVector put(Node[] firstValue, int[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
}
@Name("std::vector >") public static class StringAttrPairVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringAttrPairVector(Pointer p) { super(p); }
public StringAttrPairVector(BytePointer[] firstValue, FunctionDefHelper.AttrValueWrapper[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringAttrPairVector(String[] firstValue, FunctionDefHelper.AttrValueWrapper[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringAttrPairVector() { allocate(); }
public StringAttrPairVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef StringAttrPairVector put(@ByRef StringAttrPairVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @StdString BytePointer first(@Cast("size_t") long i); public native StringAttrPairVector first(@Cast("size_t") long i, BytePointer first);
@Index(function = "at") public native @ByRef FunctionDefHelper.AttrValueWrapper second(@Cast("size_t") long i); public native StringAttrPairVector second(@Cast("size_t") long i, FunctionDefHelper.AttrValueWrapper second);
@MemberSetter @Index(function = "at") public native StringAttrPairVector first(@Cast("size_t") long i, @StdString String first);
public StringAttrPairVector put(BytePointer[] firstValue, FunctionDefHelper.AttrValueWrapper[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
public StringAttrPairVector put(String[] firstValue, FunctionDefHelper.AttrValueWrapper[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
}
@Name("std::vector") public static class ConstTensorPtrVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConstTensorPtrVector(Pointer p) { super(p); }
public ConstTensorPtrVector(Tensor value) { this(1); put(0, value); }
public ConstTensorPtrVector(Tensor ... array) { this(array.length); put(array); }
public ConstTensorPtrVector() { allocate(); }
public ConstTensorPtrVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef ConstTensorPtrVector put(@ByRef ConstTensorPtrVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @Const Tensor get(@Cast("size_t") long i);
public native ConstTensorPtrVector put(@Cast("size_t") long i, Tensor value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @Const Tensor value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const Tensor get();
}
public Tensor[] get() {
Tensor[] array = new Tensor[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Tensor pop_back() {
long size = size();
Tensor value = get(size - 1);
resize(size - 1);
return value;
}
public ConstTensorPtrVector push_back(Tensor value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public ConstTensorPtrVector put(Tensor value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public ConstTensorPtrVector put(Tensor ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class ConstDimensionPtrVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConstDimensionPtrVector(Pointer p) { super(p); }
public ConstDimensionPtrVector(Dimension value) { this(1); put(0, value); }
public ConstDimensionPtrVector(Dimension ... array) { this(array.length); put(array); }
public ConstDimensionPtrVector() { allocate(); }
public ConstDimensionPtrVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef ConstDimensionPtrVector put(@ByRef ConstDimensionPtrVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @Const Dimension get(@Cast("size_t") long i);
public native ConstDimensionPtrVector put(@Cast("size_t") long i, Dimension value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @Const Dimension value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const Dimension get();
}
public Dimension[] get() {
Dimension[] array = new Dimension[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Dimension pop_back() {
long size = size();
Dimension value = get(size - 1);
resize(size - 1);
return value;
}
public ConstDimensionPtrVector push_back(Dimension value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public ConstDimensionPtrVector put(Dimension value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public ConstDimensionPtrVector put(Dimension ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector >") public static class StringTensorPairVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringTensorPairVector(Pointer p) { super(p); }
public StringTensorPairVector(BytePointer[] firstValue, Tensor[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringTensorPairVector(String[] firstValue, Tensor[] secondValue) { this(Math.min(firstValue.length, secondValue.length)); put(firstValue, secondValue); }
public StringTensorPairVector() { allocate(); }
public StringTensorPairVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef StringTensorPairVector put(@ByRef StringTensorPairVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @StdString BytePointer first(@Cast("size_t") long i); public native StringTensorPairVector first(@Cast("size_t") long i, BytePointer first);
@Index(function = "at") public native @ByRef Tensor second(@Cast("size_t") long i); public native StringTensorPairVector second(@Cast("size_t") long i, Tensor second);
@MemberSetter @Index(function = "at") public native StringTensorPairVector first(@Cast("size_t") long i, @StdString String first);
public StringTensorPairVector put(BytePointer[] firstValue, Tensor[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
public StringTensorPairVector put(String[] firstValue, Tensor[] secondValue) {
for (int i = 0; i < firstValue.length && i < secondValue.length; i++) {
first(i, firstValue[i]);
second(i, secondValue[i]);
}
return this;
}
}
@Name("std::vector") public static class EdgeVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public EdgeVector(Pointer p) { super(p); }
public EdgeVector(Edge value) { this(1); put(0, value); }
public EdgeVector(Edge ... array) { this(array.length); put(array); }
public EdgeVector() { allocate(); }
public EdgeVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef EdgeVector put(@ByRef EdgeVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native Edge get(@Cast("size_t") long i);
public native EdgeVector put(@Cast("size_t") long i, Edge value);
public native @ByVal Iterator insert(@ByVal Iterator pos, Edge value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @Const Edge get();
}
public Edge[] get() {
Edge[] array = new Edge[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Edge pop_back() {
long size = size();
Edge value = get(size - 1);
resize(size - 1);
return value;
}
public EdgeVector push_back(Edge value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public EdgeVector put(Edge value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public EdgeVector put(Edge ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class OpDefVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public OpDefVector(Pointer p) { super(p); }
public OpDefVector(OpDef value) { this(1); put(0, value); }
public OpDefVector(OpDef ... array) { this(array.length); put(array); }
public OpDefVector() { allocate(); }
public OpDefVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef OpDefVector put(@ByRef OpDefVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef OpDef get(@Cast("size_t") long i);
public native OpDefVector put(@Cast("size_t") long i, OpDef value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef OpDef value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const OpDef get();
}
public OpDef[] get() {
OpDef[] array = new OpDef[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public OpDef pop_back() {
long size = size();
OpDef value = get(size - 1);
resize(size - 1);
return value;
}
public OpDefVector push_back(OpDef value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public OpDefVector put(OpDef value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public OpDefVector put(OpDef ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@Name("std::vector") public static class OutputVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public OutputVector(Pointer p) { super(p); }
public OutputVector(Output value) { this(1); put(0, value); }
public OutputVector(Output ... array) { this(array.length); put(array); }
public OutputVector() { allocate(); }
public OutputVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef OutputVector put(@ByRef OutputVector x);
public boolean empty() { return size() == 0; }
public native long size();
public void clear() { resize(0); }
public native void resize(@Cast("size_t") long n);
@Index(function = "at") public native @ByRef Output get(@Cast("size_t") long i);
public native OutputVector put(@Cast("size_t") long i, Output value);
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef Output value);
public native @ByVal Iterator erase(@ByVal Iterator pos);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @ByRef @Const Output get();
}
public Output[] get() {
Output[] array = new Output[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE];
for (int i = 0; i < array.length; i++) {
array[i] = get(i);
}
return array;
}
@Override public String toString() {
return java.util.Arrays.toString(get());
}
public Output pop_back() {
long size = size();
Output value = get(size - 1);
resize(size - 1);
return value;
}
public OutputVector push_back(Output value) {
long size = size();
resize(size + 1);
return put(size, value);
}
public OutputVector put(Output value) {
if (size() != 1) { resize(1); }
return put(0, value);
}
public OutputVector put(Output ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
@NoOffset @Name("std::pair") public static class LongLongPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LongLongPair(Pointer p) { super(p); }
public LongLongPair(long firstValue, long secondValue) { this(); put(firstValue, secondValue); }
public LongLongPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef LongLongPair put(@ByRef LongLongPair x);
@MemberGetter public native long first(); public native LongLongPair first(long first);
@MemberGetter public native @Cast("google::protobuf::uint64") long second(); public native LongLongPair second(long second);
public LongLongPair put(long firstValue, long secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class WrappedAllocator extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WrappedAllocator(Pointer p) { super(p); }
public WrappedAllocator(Allocator firstValue, TrackingAllocator secondValue) { this(); put(firstValue, secondValue); }
public WrappedAllocator() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef WrappedAllocator put(@ByRef WrappedAllocator x);
@MemberGetter public native Allocator first(); public native WrappedAllocator first(Allocator first);
@MemberGetter public native TrackingAllocator second(); public native WrappedAllocator second(TrackingAllocator second);
public WrappedAllocator put(Allocator firstValue, TrackingAllocator secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class ShapeHandlePair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ShapeHandlePair(Pointer p) { super(p); }
public ShapeHandlePair(ShapeHandle firstValue, ShapeHandle secondValue) { this(); put(firstValue, secondValue); }
public ShapeHandlePair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef ShapeHandlePair put(@ByRef ShapeHandlePair x);
@MemberGetter public native @ByRef ShapeHandle first(); public native ShapeHandlePair first(ShapeHandle first);
@MemberGetter public native @ByRef ShapeHandle second(); public native ShapeHandlePair second(ShapeHandle second);
public ShapeHandlePair put(ShapeHandle firstValue, ShapeHandle secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class DimensionHandlePair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DimensionHandlePair(Pointer p) { super(p); }
public DimensionHandlePair(DimensionHandle firstValue, DimensionHandle secondValue) { this(); put(firstValue, secondValue); }
public DimensionHandlePair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef DimensionHandlePair put(@ByRef DimensionHandlePair x);
@MemberGetter public native @ByRef DimensionHandle first(); public native DimensionHandlePair first(DimensionHandle first);
@MemberGetter public native @ByRef DimensionHandle second(); public native DimensionHandlePair second(DimensionHandle second);
public DimensionHandlePair put(DimensionHandle firstValue, DimensionHandle secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class EdgeSetBoolPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public EdgeSetBoolPair(Pointer p) { super(p); }
public EdgeSetBoolPair(EdgeSetIterator firstValue, boolean secondValue) { this(); put(firstValue, secondValue); }
public EdgeSetBoolPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef EdgeSetBoolPair put(@ByRef EdgeSetBoolPair x);
@MemberGetter public native @ByRef EdgeSetIterator first(); public native EdgeSetBoolPair first(EdgeSetIterator first);
@MemberGetter public native @Cast("bool") boolean second(); public native EdgeSetBoolPair second(boolean second);
public EdgeSetBoolPair put(EdgeSetIterator firstValue, boolean secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class StringIntPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringIntPair(Pointer p) { super(p); }
public StringIntPair(BytePointer firstValue, int secondValue) { this(); put(firstValue, secondValue); }
public StringIntPair(String firstValue, int secondValue) { this(); put(firstValue, secondValue); }
public StringIntPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringIntPair put(@ByRef StringIntPair x);
@MemberGetter public native @StdString BytePointer first(); public native StringIntPair first(BytePointer first);
@MemberGetter public native int second(); public native StringIntPair second(int second);
@MemberSetter @Index public native StringIntPair first(@StdString String first);
public StringIntPair put(BytePointer firstValue, int secondValue) {
first(firstValue);
second(secondValue);
return this;
}
public StringIntPair put(String firstValue, int secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class StringPieceIntPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringPieceIntPair(Pointer p) { super(p); }
public StringPieceIntPair(BytePointer firstValue, int secondValue) { this(); put(firstValue, secondValue); }
public StringPieceIntPair(String firstValue, int secondValue) { this(); put(firstValue, secondValue); }
public StringPieceIntPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringPieceIntPair put(@ByRef StringPieceIntPair x);
@MemberGetter public native @StringPiece BytePointer first(); public native StringPieceIntPair first(BytePointer first);
@MemberGetter public native int second(); public native StringPieceIntPair second(int second);
@MemberSetter @Index public native StringPieceIntPair first(@StringPiece String first);
public StringPieceIntPair put(BytePointer firstValue, int secondValue) {
first(firstValue);
second(secondValue);
return this;
}
public StringPieceIntPair put(String firstValue, int secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class TensorSlideStringPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorSlideStringPair(Pointer p) { super(p); }
public TensorSlideStringPair(TensorSlice firstValue, BytePointer secondValue) { this(); put(firstValue, secondValue); }
public TensorSlideStringPair(TensorSlice firstValue, String secondValue) { this(); put(firstValue, secondValue); }
public TensorSlideStringPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef TensorSlideStringPair put(@ByRef TensorSlideStringPair x);
@MemberGetter public native @ByRef TensorSlice first(); public native TensorSlideStringPair first(TensorSlice first);
@MemberGetter public native @StdString BytePointer second(); public native TensorSlideStringPair second(BytePointer second);
@MemberSetter @Index public native TensorSlideStringPair second(@StdString String second);
public TensorSlideStringPair put(TensorSlice firstValue, BytePointer secondValue) {
first(firstValue);
second(secondValue);
return this;
}
public TensorSlideStringPair put(TensorSlice firstValue, String secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@NoOffset @Name("std::pair") public static class NodeIndexPair extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NodeIndexPair(Pointer p) { super(p); }
public NodeIndexPair(Node firstValue, int secondValue) { this(); put(firstValue, secondValue); }
public NodeIndexPair() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef NodeIndexPair put(@ByRef NodeIndexPair x);
@MemberGetter public native Node first(); public native NodeIndexPair first(Node first);
@MemberGetter public native @Cast("tensorflow::ImportGraphDefResults::Index") int second(); public native NodeIndexPair second(int second);
public NodeIndexPair put(Node firstValue, int secondValue) {
first(firstValue);
second(secondValue);
return this;
}
}
@Name("std::unordered_map") public static class StringSliceInfoMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringSliceInfoMap(Pointer p) { super(p); }
public StringSliceInfoMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringSliceInfoMap put(@ByRef StringSliceInfoMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index(function = "at") public native @ByRef TensorSliceSet.SliceInfo get(@StdString BytePointer i);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const TensorSliceSet.SliceInfo second();
}
}
@Name("std::unordered_map") public static class VarToShapeMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public VarToShapeMap(Pointer p) { super(p); }
public VarToShapeMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef VarToShapeMap put(@ByRef VarToShapeMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @ByRef TensorShape get(@StdString BytePointer i);
public native VarToShapeMap put(@StdString BytePointer i, TensorShape value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @ByRef @Const TensorShape second();
}
}
@Name("std::unordered_map") public static class VarToDataTypeMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public VarToDataTypeMap(Pointer p) { super(p); }
public VarToDataTypeMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef VarToDataTypeMap put(@ByRef VarToDataTypeMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native @Cast("tensorflow::DataType") int get(@StdString BytePointer i);
public native VarToDataTypeMap put(@StdString BytePointer i, int value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @Cast("tensorflow::DataType") int second();
}
}
@Name("std::unordered_map") public static class StringTensorSliceSetMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringTensorSliceSetMap(Pointer p) { super(p); }
public StringTensorSliceSetMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringTensorSliceSetMap put(@ByRef StringTensorSliceSetMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native TensorSliceSet get(@StdString BytePointer i);
public native StringTensorSliceSetMap put(@StdString BytePointer i, TensorSliceSet value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @Const TensorSliceSet second();
}
}
@Name("std::unordered_map") public static class StringNodeMap extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringNodeMap(Pointer p) { super(p); }
public StringNodeMap() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringNodeMap put(@ByRef StringNodeMap x);
public boolean empty() { return size() == 0; }
public native long size();
@Index public native Node get(@StdString BytePointer i);
public native StringNodeMap put(@StdString BytePointer i, Node value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*().first") @MemberGetter @StdString BytePointer first();
public native @Name("operator*().second") @MemberGetter @Const Node second();
}
}
@Name("std::unordered_set") public static class StringUnorderedSet extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public StringUnorderedSet(Pointer p) { super(p); }
public StringUnorderedSet() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef StringUnorderedSet put(@ByRef StringUnorderedSet x);
public boolean empty() { return size() == 0; }
public native long size();
public native void insert(@StdString BytePointer value);
public native void erase(@StdString BytePointer value);
public native @ByVal Iterator begin();
public native @ByVal Iterator end();
@NoOffset @Name("iterator") public static class Iterator extends Pointer {
public Iterator(Pointer p) { super(p); }
public Iterator() { }
public native @Name("operator++") @ByRef Iterator increment();
public native @Name("operator==") boolean equals(@ByRef Iterator it);
public native @Name("operator*") @StdString BytePointer get();
}
}
// Parsed from google/protobuf/arena.h
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This file defines an Arena allocator for better allocation performance.
// #ifndef GOOGLE_PROTOBUF_ARENA_H__
// #define GOOGLE_PROTOBUF_ARENA_H__
// #include
// #ifdef max
// #undef max // Visual Studio defines this macro
// #endif
// #if defined(_MSC_VER) && !defined(_LIBCPP_STD_VER) && !_HAS_EXCEPTIONS
// Work around bugs in MSVC header when _HAS_EXCEPTIONS=0.
// #include
// #include
// #else
// #include
// #endif
// #include
// #include
// #include // defined below
// namespace protobuf
// namespace quality_webanswers // defined below // defined in message.h
// namespace arena_metrics
@Namespace("google::protobuf::internal") @Opaque public static class ArenaStringPtr extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public ArenaStringPtr() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ArenaStringPtr(Pointer p) { super(p); }
} // defined in arenastring.h
@Namespace("google::protobuf::internal") @Opaque public static class LazyField extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public LazyField() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LazyField(Pointer p) { super(p); }
} // defined in lazy_field.h // defined in repeated_field.h
// Templated cleanup methods.
@Namespace("google::protobuf::internal") public static native void arena_free(Pointer object, @Cast("size_t") long size);
// namespace internal
// ArenaOptions provides optional additional parameters to arena construction
// that control its block-allocation behavior.
@Namespace("google::protobuf") @NoOffset public static class ArenaOptions extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ArenaOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ArenaOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ArenaOptions position(long position) {
return (ArenaOptions)super.position(position);
}
// This defines the size of the first block requested from the system malloc.
// Subsequent block sizes will increase in a geometric series up to a maximum.
public native @Cast("size_t") long start_block_size(); public native ArenaOptions start_block_size(long start_block_size);
// This defines the maximum block size requested from system malloc (unless an
// individual arena allocation request occurs with a size larger than this
// maximum). Requested block sizes increase up to this value, then remain
// here.
public native @Cast("size_t") long max_block_size(); public native ArenaOptions max_block_size(long max_block_size);
// An initial block of memory for the arena to use, or NULL for none. If
// provided, the block must live at least as long as the arena itself. The
// creator of the Arena retains ownership of the block after the Arena is
// destroyed.
public native @Cast("char*") BytePointer initial_block(); public native ArenaOptions initial_block(BytePointer initial_block);
// The size of the initial block, if provided.
public native @Cast("size_t") long initial_block_size(); public native ArenaOptions initial_block_size(long initial_block_size);
// A function pointer to an alloc method that returns memory blocks of size
// requested. By default, it contains a ptr to the malloc function.
//
// NOTE: block_alloc and dealloc functions are expected to behave like
// malloc and free, including Asan poisoning.
public static class Block_alloc_long extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Block_alloc_long(Pointer p) { super(p); }
protected Block_alloc_long() { allocate(); }
private native void allocate();
public native Pointer call(@Cast("size_t") long arg0);
}
public native Block_alloc_long block_alloc(); public native ArenaOptions block_alloc(Block_alloc_long block_alloc);
// A function pointer to a dealloc method that takes ownership of the blocks
// from the arena. By default, it contains a ptr to a wrapper function that
// calls free.
public static class Block_dealloc_Pointer_long extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Block_dealloc_Pointer_long(Pointer p) { super(p); }
protected Block_dealloc_Pointer_long() { allocate(); }
private native void allocate();
public native void call(Pointer arg0, @Cast("size_t") long arg1);
}
public native Block_dealloc_Pointer_long block_dealloc(); public native ArenaOptions block_dealloc(Block_dealloc_Pointer_long block_dealloc);
public ArenaOptions() { super((Pointer)null); allocate(); }
private native void allocate();
}
// Support for non-RTTI environments. (The metrics hooks API uses type
// information.)
// #ifndef GOOGLE_PROTOBUF_NO_RTTI
// #define RTTI_TYPE_ID(type) (&typeid(type))
// #else
// #define RTTI_TYPE_ID(type) (NULL)
// #endif
// Arena allocator. Arena allocation replaces ordinary (heap-based) allocation
// with new/delete, and improves performance by aggregating allocations into
// larger blocks and freeing allocations all at once. Protocol messages are
// allocated on an arena by using Arena::CreateMessage(Arena*), below, and
// are automatically freed when the arena is destroyed.
//
// This is a thread-safe implementation: multiple threads may allocate from the
// arena concurrently. Destruction is not thread-safe and the destructing
// thread must synchronize with users of the arena first.
//
// An arena provides two allocation interfaces: CreateMessage, which works
// for arena-enabled proto2 message types as well as other types that satisfy
// the appropriate protocol (described below), and Create, which works for
// any arbitrary type T. CreateMessage is better when the type T supports it,
// because this interface (i) passes the arena pointer to the created object so
// that its sub-objects and internal allocations can use the arena too, and (ii)
// elides the object's destructor call when possible. Create does not place
// any special requirements on the type T, and will invoke the object's
// destructor when the arena is destroyed.
//
// The arena message allocation protocol, required by CreateMessage, is as
// follows:
//
// - The type T must have (at least) two constructors: a constructor with no
// arguments, called when a T is allocated on the heap; and a constructor with
// a google::protobuf::Arena* argument, called when a T is allocated on an arena. If the
// second constructor is called with a NULL arena pointer, it must be
// equivalent to invoking the first (no-argument) constructor.
//
// - The type T must have a particular type trait: a nested type
// |InternalArenaConstructable_|. This is usually a typedef to |void|. If no
// such type trait exists, then the instantiation CreateMessage will fail
// to compile.
//
// - The type T *may* have the type trait |DestructorSkippable_|. If this type
// trait is present in the type, then its destructor will not be called if and
// only if it was passed a non-NULL arena pointer. If this type trait is not
// present on the type, then its destructor is always called when the
// containing arena is destroyed.
//
// - One- and two-user-argument forms of CreateMessage() also exist that
// forward these constructor arguments to T's constructor: for example,
// CreateMessage(Arena*, arg1, arg2) forwards to a constructor T(Arena*,
// arg1, arg2).
//
// This protocol is implemented by all arena-enabled proto2 message classes as
// well as RepeatedPtrField.
//
// Do NOT subclass Arena. This class will be marked as final when C++11 is
// enabled.
@Namespace("google::protobuf") @NoOffset public static class Arena extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Arena(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Arena(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Arena position(long position) {
return (Arena)super.position(position);
}
// Arena constructor taking custom options. See ArenaOptions below for
// descriptions of the options available.
public Arena(@Const @ByRef ArenaOptions options) { super((Pointer)null); allocate(options); }
private native void allocate(@Const @ByRef ArenaOptions options);
// Block overhead. Use this as a guide for how much to over-allocate the
// initial block if you want an allocation of size N to fit inside it.
//
// WARNING: if you allocate multiple objects, it is difficult to guarantee
// that a series of allocations will fit in the initial block, especially if
// Arena changes its alignment guarantees in the future!
@MemberGetter public static native @Cast("const size_t") long kBlockOverhead();
public static final long kBlockOverhead = kBlockOverhead();
// Default constructor with sensible default options, tuned for average
// use-cases.
public Arena() { super((Pointer)null); allocate(); }
private native void allocate();
public native void Init(@Const @ByRef ArenaOptions options);
// API to create proto2 message objects on the arena. If the arena passed in
// is NULL, then a heap allocated object is returned. Type T must be a message
// defined in a .proto file with cc_enable_arenas set to true, otherwise a
// compilation error will occur.
//
// RepeatedField and RepeatedPtrField may also be instantiated directly on an
// arena with this method.
//
// This function also accepts any type T that satisfies the arena message
// allocation protocol, documented above.
// API to create any objects on the arena. Note that only the object will
// be created on the arena; the underlying ptrs (in case of a proto2 message)
// will be still heap allocated. Proto messages should usually be allocated
// with CreateMessage() instead.
//
// Note that even if T satisfies the arena message construction protocol
// (InternalArenaConstructable_ trait and optional DestructorSkippable_
// trait), as described above, this function does not follow the protocol;
// instead, it treats T as a black-box type, just as if it did not have these
// traits. Specifically, T's constructor arguments will always be only those
// passed to Create() -- no additional arena pointer is implicitly added.
// Furthermore, the destructor will always be called at arena destruction time
// (unless the destructor is trivial). Hence, from T's point of view, it is as
// if the object were allocated on the heap (except that the underlying memory
// is obtained from the arena).
// Create an array of object type T on the arena *without* invoking the
// constructor of T. If `arena` is null, then the return value should be freed
// with `delete[] x;` (or `::operator delete[](x);`).
// To ensure safe uses, this function checks at compile time
// (when compiled as C++11) that T is trivially default-constructible and
// trivially destructible.
// Returns the total space allocated by the arena, which is the sum of the
// sizes of the underlying blocks. This method is relatively fast; a counter
// is kept as blocks are allocated.
public native @Cast("google::protobuf::uint64") long SpaceAllocated();
// Returns the total space used by the arena. Similar to SpaceAllocated but
// does not include free space and block overhead. The total space returned
// may not include space used by other threads executing concurrently with
// the call to this method.
public native @Cast("google::protobuf::uint64") long SpaceUsed();
// DEPRECATED. Please use SpaceAllocated() and SpaceUsed().
//
// Combines SpaceAllocated and SpaceUsed. Returns a pair of
// .
public native @Deprecated @ByVal LongLongPair SpaceAllocatedAndUsed();
// Frees all storage allocated by this arena after calling destructors
// registered with OwnDestructor() and freeing objects registered with Own().
// Any objects allocated on this arena are unusable after this call. It also
// returns the total space used by the arena which is the sums of the sizes
// of the allocated blocks. This method is not thread-safe.
public native @Cast("google::protobuf::uint64") long Reset();
// Adds |object| to a list of heap-allocated objects to be freed with |delete|
// when the arena is destroyed or reset.
// Adds |object| to a list of objects whose destructors will be manually
// called when the arena is destroyed or reset. This differs from Own() in
// that it does not free the underlying memory with |delete|; hence, it is
// normally only used for objects that are placement-newed into
// arena-allocated memory.
// Adds a custom member function on an object to the list of destructors that
// will be manually called when the arena is destroyed or reset. This differs
// from OwnDestructor() in that any member function may be specified, not only
// the class destructor.
public static class Destruct_Pointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Destruct_Pointer(Pointer p) { super(p); }
protected Destruct_Pointer() { allocate(); }
private native void allocate();
public native void call(Pointer arg0);
}
public native void OwnCustomDestructor(
Pointer object, Destruct_Pointer destruct);
// Retrieves the arena associated with |value| if |value| is an arena-capable
// message, or NULL otherwise. This differs from value->GetArena() in that the
// latter is a virtual call, while this method is a templated call that
// resolves at compile-time.
// Helper typetraits that indicates support for arenas in a type T at compile
// time. This is public only to allow construction of higher-level templated
// utilities.
//
// is_arena_constructable::value is true if the message type T has arena
// support enabled, and false otherwise.
//
// is_destructor_skippable::value is true if the message type T has told
// the arena that it is safe to skip the destructor, and false otherwise.
//
// This is inside Arena because only Arena has the friend relationships
// necessary to see the underlying generated code traits.
}
// Defined above for supporting environments without RTTI.
// #undef RTTI_TYPE_ID
// namespace protobuf
// namespace google
// #endif // GOOGLE_PROTOBUF_ARENA_H__
// Parsed from google/protobuf/message_lite.h
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Authors: [email protected] (Wink Saville),
// [email protected] (Kenton Varda)
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
//
// Defines MessageLite, the abstract interface implemented by all (lite
// and non-lite) protocol message objects.
// #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__
// #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__
// #include
// #include
// #include
// #include
// #include
// #include
@Namespace("google::protobuf::io") @Opaque public static class CodedInputStream extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public CodedInputStream() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CodedInputStream(Pointer p) { super(p); }
}
@Namespace("google::protobuf::io") @Opaque public static class CodedOutputStream extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public CodedOutputStream() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CodedOutputStream(Pointer p) { super(p); }
}
@Namespace("google::protobuf::io") @Opaque public static class ZeroCopyInputStream extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public ZeroCopyInputStream() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ZeroCopyInputStream(Pointer p) { super(p); }
}
@Namespace("google::protobuf::io") @Opaque public static class ZeroCopyOutputStream extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public ZeroCopyOutputStream() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ZeroCopyOutputStream(Pointer p) { super(p); }
}
@Namespace("google::protobuf::internal") @Opaque public static class RepeatedPtrFieldBase extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public RepeatedPtrFieldBase() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RepeatedPtrFieldBase(Pointer p) { super(p); }
}
@Namespace("google::protobuf::internal") @Opaque public static class WireFormatLite extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public WireFormatLite() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WireFormatLite(Pointer p) { super(p); }
}
@Namespace("google::protobuf::internal") @Opaque public static class WeakFieldMap extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public WeakFieldMap() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WeakFieldMap(Pointer p) { super(p); }
}
// #ifndef SWIG
// #endif // SWIG
// namespace internal
// Interface to light weight protocol messages.
//
// This interface is implemented by all protocol message objects. Non-lite
// messages additionally implement the Message interface, which is a
// subclass of MessageLite. Use MessageLite instead when you only need
// the subset of features which it supports -- namely, nothing that uses
// descriptors or reflection. You can instruct the protocol compiler
// to generate classes which implement only MessageLite, not the full
// Message interface, by adding the following line to the .proto file:
//
// option optimize_for = LITE_RUNTIME;
//
// This is particularly useful on resource-constrained systems where
// the full protocol buffers runtime library is too big.
//
// Note that on non-constrained systems (e.g. servers) when you need
// to link in lots of protocol definitions, a better way to reduce
// total code footprint is to use optimize_for = CODE_SIZE. This
// will make the generated code smaller while still supporting all the
// same features (at the expense of speed). optimize_for = LITE_RUNTIME
// is best when you only have a small number of message types linked
// into your binary, in which case the size of the protocol buffers
// runtime itself is the biggest problem.
@Namespace("google::protobuf") public static class MessageLite extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public MessageLite(Pointer p) { super(p); }
// Basic Operations ------------------------------------------------
// Get the name of this message type, e.g. "foo.bar.BazProto".
public native @StdString BytePointer GetTypeName();
// Construct a new instance of the same type. Ownership is passed to the
// caller.
public native MessageLite New();
// Construct a new instance on the arena. Ownership is passed to the caller
// if arena is a NULL. Default implementation for backwards compatibility.
public native MessageLite New(Arena arena);
// Get the arena, if any, associated with this message. Virtual method
// required for generic operations but most arena-related operations should
// use the GetArenaNoVirtual() generated-code method. Default implementation
// to reduce code size by avoiding the need for per-type implementations
// when types do not implement arena support.
public native Arena GetArena();
// Get a pointer that may be equal to this message's arena, or may not be.
// If the value returned by this method is equal to some arena pointer, then
// this message is on that arena; however, if this message is on some arena,
// this method may or may not return that arena's pointer. As a tradeoff,
// this method may be more efficient than GetArena(). The intent is to allow
// underlying representations that use e.g. tagged pointers to sometimes
// store the arena pointer directly, and sometimes in a more indirect way,
// and allow a fastpath comparison against the arena pointer when it's easy
// to obtain.
public native Pointer GetMaybeArenaPointer();
// Clear all fields of the message and set them to their default values.
// Clear() avoids freeing memory, assuming that any memory allocated
// to hold parts of the message will be needed again to hold the next
// message. If you actually want to free the memory used by a Message,
// you must delete it.
public native void Clear();
// Quickly check if all required fields have values set.
public native @Cast("bool") boolean IsInitialized();
// This is not implemented for Lite messages -- it just returns "(cannot
// determine missing fields for lite message)". However, it is implemented
// for full messages. See message.h.
public native @StdString BytePointer InitializationErrorString();
// If |other| is the exact same class as this, calls MergeFrom(). Otherwise,
// results are undefined (probably crash).
public native void CheckTypeAndMergeFrom(@Const @ByRef MessageLite other);
// Parsing ---------------------------------------------------------
// Methods for parsing in protocol buffer format. Most of these are
// just simple wrappers around MergeFromCodedStream(). Clear() will be
// called before merging the input.
// Fill the message with a protocol buffer parsed from the given input
// stream. Returns false on a read error or if the input is in the wrong
// format. A successful return does not indicate the entire input is
// consumed, ensure you call ConsumedEntireMessage() to check that if
// applicable.
public native @Cast("bool") boolean ParseFromCodedStream(CodedInputStream input);
// Like ParseFromCodedStream(), but accepts messages that are missing
// required fields.
public native @Cast("bool") boolean ParsePartialFromCodedStream(CodedInputStream input);
// Read a protocol buffer from the given zero-copy input stream. If
// successful, the entire input will be consumed.
public native @Cast("bool") boolean ParseFromZeroCopyStream(ZeroCopyInputStream input);
// Like ParseFromZeroCopyStream(), but accepts messages that are missing
// required fields.
public native @Cast("bool") boolean ParsePartialFromZeroCopyStream(ZeroCopyInputStream input);
// Read a protocol buffer from the given zero-copy input stream, expecting
// the message to be exactly "size" bytes long. If successful, exactly
// this many bytes will have been consumed from the input.
public native @Cast("bool") boolean ParseFromBoundedZeroCopyStream(ZeroCopyInputStream input, int size);
// Like ParseFromBoundedZeroCopyStream(), but accepts messages that are
// missing required fields.
public native @Cast("bool") boolean ParsePartialFromBoundedZeroCopyStream(ZeroCopyInputStream input,
int size);
// Parses a protocol buffer contained in a string. Returns true on success.
// This function takes a string in the (non-human-readable) binary wire
// format, matching the encoding output by MessageLite::SerializeToString().
// If you'd like to convert a human-readable string into a protocol buffer
// object, see google::protobuf::TextFormat::ParseFromString().
public native @Cast("bool") boolean ParseFromString(@StdString BytePointer data);
public native @Cast("bool") boolean ParseFromString(@StdString String data);
// Like ParseFromString(), but accepts messages that are missing
// required fields.
public native @Cast("bool") boolean ParsePartialFromString(@StdString BytePointer data);
public native @Cast("bool") boolean ParsePartialFromString(@StdString String data);
// Parse a protocol buffer contained in an array of bytes.
public native @Cast("bool") boolean ParseFromArray(@Const Pointer data, int size);
// Like ParseFromArray(), but accepts messages that are missing
// required fields.
public native @Cast("bool") boolean ParsePartialFromArray(@Const Pointer data, int size);
// Reads a protocol buffer from the stream and merges it into this
// Message. Singular fields read from the what is
// already in the Message and repeated fields are appended to those
// already present.
//
// It is the responsibility of the caller to call input->LastTagWas()
// (for groups) or input->ConsumedEntireMessage() (for non-groups) after
// this returns to verify that the message's end was delimited correctly.
//
// ParsefromCodedStream() is implemented as Clear() followed by
// MergeFromCodedStream().
public native @Cast("bool") boolean MergeFromCodedStream(CodedInputStream input);
// Like MergeFromCodedStream(), but succeeds even if required fields are
// missing in the input.
//
// MergeFromCodedStream() is just implemented as MergePartialFromCodedStream()
// followed by IsInitialized().
public native @Cast("bool") boolean MergePartialFromCodedStream(CodedInputStream input);
// Serialization ---------------------------------------------------
// Methods for serializing in protocol buffer format. Most of these
// are just simple wrappers around ByteSize() and SerializeWithCachedSizes().
// Write a protocol buffer of this message to the given output. Returns
// false on a write error. If the message is missing required fields,
// this may GOOGLE_CHECK-fail.
public native @Cast("bool") boolean SerializeToCodedStream(CodedOutputStream output);
// Like SerializeToCodedStream(), but allows missing required fields.
public native @Cast("bool") boolean SerializePartialToCodedStream(CodedOutputStream output);
// Write the message to the given zero-copy output stream. All required
// fields must be set.
public native @Cast("bool") boolean SerializeToZeroCopyStream(ZeroCopyOutputStream output);
// Like SerializeToZeroCopyStream(), but allows missing required fields.
public native @Cast("bool") boolean SerializePartialToZeroCopyStream(ZeroCopyOutputStream output);
// Serialize the message and store it in the given string. All required
// fields must be set.
public native @Cast("bool") boolean SerializeToString(@StdString @Cast({"char*", "std::string*"}) BytePointer output);
// Like SerializeToString(), but allows missing required fields.
public native @Cast("bool") boolean SerializePartialToString(@StdString @Cast({"char*", "std::string*"}) BytePointer output);
// Serialize the message and store it in the given byte array. All required
// fields must be set.
public native @Cast("bool") boolean SerializeToArray(Pointer data, int size);
// Like SerializeToArray(), but allows missing required fields.
public native @Cast("bool") boolean SerializePartialToArray(Pointer data, int size);
// Make a string encoding the message. Is equivalent to calling
// SerializeToString() on a string and using that. Returns the empty
// string if SerializeToString() would have returned an error.
// Note: If you intend to generate many such strings, you may
// reduce heap fragmentation by instead re-using the same string
// object with calls to SerializeToString().
public native @StdString BytePointer SerializeAsString();
// Like SerializeAsString(), but allows missing required fields.
public native @StdString BytePointer SerializePartialAsString();
// Like SerializeToString(), but appends to the data to the string's existing
// contents. All required fields must be set.
public native @Cast("bool") boolean AppendToString(@StdString @Cast({"char*", "std::string*"}) BytePointer output);
// Like AppendToString(), but allows missing required fields.
public native @Cast("bool") boolean AppendPartialToString(@StdString @Cast({"char*", "std::string*"}) BytePointer output);
// Computes the serialized size of the message. This recursively calls
// ByteSizeLong() on all embedded messages.
//
// ByteSizeLong() is generally linear in the number of fields defined for the
// proto.
public native @Cast("size_t") long ByteSizeLong();
// Legacy ByteSize() API.
public native @Deprecated int ByteSize();
// Serializes the message without recomputing the size. The message must not
// have changed since the last call to ByteSize(), and the value returned by
// ByteSize must be non-negative. Otherwise the results are undefined.
public native void SerializeWithCachedSizes(
CodedOutputStream output);
// Functions below here are not part of the public interface. It isn't
// enforced, but they should be treated as private, and will be private
// at some future time. Unfortunately the implementation of the "friend"
// keyword in GCC is broken at the moment, but we expect it will be fixed.
// Like SerializeWithCachedSizes, but writes directly to *target, returning
// a pointer to the byte immediately after the last byte written. "target"
// must point at a byte array of at least ByteSize() bytes. Whether to use
// deterministic serialization, e.g., maps in sorted order, is determined by
// CodedOutputStream::IsDefaultSerializationDeterministic().
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] target);
// Returns the result of the last call to ByteSize(). An embedded message's
// size is needed both to serialize it (because embedded messages are
// length-delimited) and to compute the outer message's size. Caching
// the size avoids computing it multiple times.
//
// ByteSize() does not automatically use the cached size when available
// because this would require invalidating it every time the message was
// modified, which would be too hard and expensive. (E.g. if a deeply-nested
// sub-message is changed, all of its parents' cached sizes would need to be
// invalidated, which is too much work for an otherwise inlined setter
// method.)
public native int GetCachedSize();
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(@Cast("bool") boolean deterministic,
@Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(@Cast("bool") boolean deterministic,
@Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(@Cast("bool") boolean deterministic,
@Cast("google::protobuf::uint8*") byte[] target);
}
// DO NOT USE: For migration only. Will be removed when Proto3 defaults to
// preserve unknowns.
@Namespace("google::protobuf::internal") public static native @Cast("bool") boolean GetProto3PreserveUnknownsDefault();
// DO NOT USE: For migration only. Will be removed when Proto3 defaults to
// preserve unknowns.
@Namespace("google::protobuf::internal") public static native void SetProto3PreserveUnknownsDefault(@Cast("bool") boolean preserve);
// namespace internal
// namespace protobuf
// namespace google
// #endif // GOOGLE_PROTOBUF_MESSAGE_LITE_H__
// Parsed from google/protobuf/unknown_field_set.h
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Author: [email protected] (Kenton Varda)
// Based on original Protocol Buffers design by
// Sanjay Ghemawat, Jeff Dean, and others.
//
// Contains classes used to keep track of unrecognized fields seen while
// parsing a protocol message.
// #ifndef GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
// #define GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
// #include
// #include
// #include
// #include
// #include
// #include // coded_stream.h // coded_stream.h // zero_copy_stream.h
@Namespace("google::protobuf::internal") @Opaque public static class InternalMetadataWithArena extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public InternalMetadataWithArena() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public InternalMetadataWithArena(Pointer p) { super(p); }
} // metadata.h
@Namespace("google::protobuf::internal") @Opaque public static class WireFormat extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public WireFormat() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WireFormat(Pointer p) { super(p); }
} // wire_format.h
@Namespace("google::protobuf::internal") @Opaque public static class MessageSetFieldSkipperUsingCord extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public MessageSetFieldSkipperUsingCord() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public MessageSetFieldSkipperUsingCord(Pointer p) { super(p); }
}
// extension_set_heavy.cc
// message.h // below
// An UnknownFieldSet contains fields that were encountered while parsing a
// message but were not defined by its type. Keeping track of these can be
// useful, especially in that they may be written if the message is serialized
// again without being cleared in between. This means that software which
// simply receives messages and forwards them to other servers does not need
// to be updated every time a new field is added to the message definition.
//
// To get the UnknownFieldSet attached to any message, call
// Reflection::GetUnknownFields().
//
// This class is necessarily tied to the protocol buffer wire format, unlike
// the Reflection interface which is independent of any serialization scheme.
@Namespace("google::protobuf") @NoOffset public static class UnknownFieldSet extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public UnknownFieldSet(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public UnknownFieldSet(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public UnknownFieldSet position(long position) {
return (UnknownFieldSet)super.position(position);
}
public UnknownFieldSet() { super((Pointer)null); allocate(); }
private native void allocate();
// Remove all fields.
public native void Clear();
// Remove all fields and deallocate internal data objects
public native void ClearAndFreeMemory();
// Is this set empty?
public native @Cast("bool") boolean empty();
// Merge the contents of some other UnknownFieldSet with this one.
public native void MergeFrom(@Const @ByRef UnknownFieldSet other);
// Similar to above, but this function will destroy the contents of other.
public native void MergeFromAndDestroy(UnknownFieldSet other);
// Merge the contents an UnknownFieldSet with the UnknownFieldSet in
// *metadata, if there is one. If *metadata doesn't have an UnknownFieldSet
// then add one to it and make it be a copy of the first arg.
public static native void MergeToInternalMetdata(
@Const @ByRef UnknownFieldSet other,
InternalMetadataWithArena metadata);
// Swaps the contents of some other UnknownFieldSet with this one.
public native void Swap(UnknownFieldSet x);
// Computes (an estimate of) the total number of bytes currently used for
// storing the unknown fields in memory. Does NOT include
// sizeof(*this) in the calculation.
public native @Cast("size_t") long SpaceUsedExcludingSelfLong();
public native int SpaceUsedExcludingSelf();
// Version of SpaceUsed() including sizeof(*this).
public native @Cast("size_t") long SpaceUsedLong();
public native int SpaceUsed();
// Returns the number of fields present in the UnknownFieldSet.
public native int field_count();
// Get a field in the set, where 0 <= index < field_count(). The fields
// appear in the order in which they were added.
public native @Const @ByRef UnknownField field(int index);
// Get a mutable pointer to a field in the set, where
// 0 <= index < field_count(). The fields appear in the order in which
// they were added.
public native UnknownField mutable_field(int index);
// Adding fields ---------------------------------------------------
public native void AddVarint(int number, @Cast("google::protobuf::uint64") long value);
public native void AddFixed32(int number, @Cast("google::protobuf::uint32") int value);
public native void AddFixed64(int number, @Cast("google::protobuf::uint64") long value);
public native void AddLengthDelimited(int number, @StdString BytePointer value);
public native void AddLengthDelimited(int number, @StdString String value);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer AddLengthDelimited(int number);
public native UnknownFieldSet AddGroup(int number);
// Adds an unknown field from another set.
public native void AddField(@Const @ByRef UnknownField field);
// Delete fields with indices in the range [start .. start+num-1].
// Caution: implementation moves all fields with indices [start+num .. ].
public native void DeleteSubrange(int start, int num);
// Delete all fields with a specific field number. The order of left fields
// is preserved.
// Caution: implementation moves all fields after the first deleted field.
public native void DeleteByNumber(int number);
// Parsing helpers -------------------------------------------------
// These work exactly like the similarly-named methods of Message.
public native @Cast("bool") boolean MergeFromCodedStream(CodedInputStream input);
public native @Cast("bool") boolean ParseFromCodedStream(CodedInputStream input);
public native @Cast("bool") boolean ParseFromZeroCopyStream(ZeroCopyInputStream input);
public native @Cast("bool") boolean ParseFromArray(@Const Pointer data, int size);
public native @Cast("bool") boolean ParseFromString(@StdString BytePointer data);
public native @Cast("bool") boolean ParseFromString(@StdString String data);
public static native @Const UnknownFieldSet default_instance();
}
// Represents one field in an UnknownFieldSet.
@Namespace("google::protobuf") public static class UnknownField extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public UnknownField() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public UnknownField(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public UnknownField(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public UnknownField position(long position) {
return (UnknownField)super.position(position);
}
/** enum google::protobuf::UnknownField::Type */
public static final int
TYPE_VARINT = 0,
TYPE_FIXED32 = 1,
TYPE_FIXED64 = 2,
TYPE_LENGTH_DELIMITED = 3,
TYPE_GROUP = 4;
// The field's field number, as seen on the wire.
public native int number();
// The field type.
public native @Cast("google::protobuf::UnknownField::Type") int type();
// Accessors -------------------------------------------------------
// Each method works only for UnknownFields of the corresponding type.
public native @Cast("google::protobuf::uint64") long varint();
public native @Cast("google::protobuf::uint32") int fixed32();
public native @Cast("google::protobuf::uint64") long fixed64();
public native @StdString BytePointer length_delimited();
public native @Const @ByRef UnknownFieldSet group();
public native void set_varint(@Cast("google::protobuf::uint64") long value);
public native void set_fixed32(@Cast("google::protobuf::uint32") int value);
public native void set_fixed64(@Cast("google::protobuf::uint64") long value);
public native void set_length_delimited(@StdString BytePointer value);
public native void set_length_delimited(@StdString String value);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_length_delimited();
public native UnknownFieldSet mutable_group();
// Serialization API.
// These methods can take advantage of the underlying implementation and may
// archieve a better performance than using getters to retrieve the data and
// do the serialization yourself.
public native void SerializeLengthDelimitedNoTag(CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeLengthDelimitedNoTagToArray(@Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeLengthDelimitedNoTagToArray(@Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] SerializeLengthDelimitedNoTagToArray(@Cast("google::protobuf::uint8*") byte[] target);
public native @Cast("size_t") long GetLengthDelimitedSize();
// If this UnknownField contains a pointer, delete it.
public native void Delete();
// Reset all the underlying pointers to NULL. A special function to be only
// used while merging from a temporary UFS.
public native void Reset();
// Make a deep copy of any pointers in this UnknownField.
public native void DeepCopy(@Const @ByRef UnknownField other);
// Set the wire type of this UnknownField. Should only be used when this
// UnknownField is being created.
public native void SetType(@Cast("google::protobuf::UnknownField::Type") int type);
public static class LengthDelimited extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public LengthDelimited() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public LengthDelimited(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LengthDelimited(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public LengthDelimited position(long position) {
return (LengthDelimited)super.position(position);
}
public native @StdString @Cast({"char*", "std::string*"}) BytePointer string_value_(); public native LengthDelimited string_value_(BytePointer string_value_);
}
public native @Cast("google::protobuf::uint32") int number_(); public native UnknownField number_(int number_);
public native @Cast("google::protobuf::uint32") int type_(); public native UnknownField type_(int type_);
@Name("data_.varint_") public native @Cast("google::protobuf::uint64") long data__varint_(); public native UnknownField data__varint_(long data__varint_);
@Name("data_.fixed32_") public native @Cast("google::protobuf::uint32") int data__fixed32_(); public native UnknownField data__fixed32_(int data__fixed32_);
@Name("data_.fixed64_") public native @Cast("google::protobuf::uint64") long data__fixed64_(); public native UnknownField data__fixed64_(long data__fixed64_);
@Name("data_.length_delimited_") public native @ByRef LengthDelimited data__length_delimited_(); public native UnknownField data__length_delimited_(LengthDelimited data__length_delimited_);
@Name("data_.group_") public native UnknownFieldSet data__group_(); public native UnknownField data__group_(UnknownFieldSet data__group_);
}
// ===================================================================
// inline implementations
// namespace protobuf
// namespace google
// #endif // GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
// Parsed from tensorflow/core/platform/default/integral_types.h
/* Copyright 2015 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_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_
// #define TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_
// IWYU pragma: private, include "third_party/tensorflow/core/platform/types.h"
// IWYU pragma: friend third_party/tensorflow/core/platform/types.h
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_
// Parsed from tensorflow/core/lib/bfloat16/bfloat16.h
/* Copyright 2017 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_CORE_LIB_BFLOAT16_BFLOAT16_H_
// #define TENSORFLOW_CORE_LIB_BFLOAT16_BFLOAT16_H_
// #include
// #include
// #include "tensorflow/core/platform/byte_order.h"
// #ifdef __CUDACC__
// All functions callable from CUDA code must be qualified with __device__
// #define B16_DEVICE_FUNC __host__ __device__
// #else
// #define B16_DEVICE_FUNC
// #endif
@Name("Eigen::half") @Opaque public static class ShortPointer extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public ShortPointer() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ShortPointer(Pointer p) { super(p); }
}
// Single precision complex.
// Double precision complex.
// see framework/bfloat16.h for description.
@Namespace("tensorflow") @NoOffset public static class bfloat16 extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public bfloat16(Pointer p) { super(p); }
// The default constructor must yield a zero value, not an uninitialized
// value; some TF kernels use T() as a zero value.
public bfloat16() { super((Pointer)null); allocate(); }
private native void allocate();
public static native @ByVal bfloat16 truncate_to_bfloat16(float v);
public bfloat16(float v) { super((Pointer)null); allocate(v); }
private native void allocate(float v);
public bfloat16(double val) { super((Pointer)null); allocate(val); }
private native void allocate(double val);
// Following the convention of numpy, converting between complex and
// float will lead to loss of imag value.
public bfloat16(@Cast("const tensorflow::complex64*") @ByRef FloatPointer val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex64*") @ByRef FloatPointer val);
public bfloat16(@Cast("const tensorflow::complex64*") @ByRef FloatBuffer val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex64*") @ByRef FloatBuffer val);
public bfloat16(@Cast("const tensorflow::complex64*") @ByRef float... val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex64*") @ByRef float... val);
public bfloat16(@Cast("const tensorflow::complex128*") @ByRef DoublePointer val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex128*") @ByRef DoublePointer val);
public bfloat16(@Cast("const tensorflow::complex128*") @ByRef DoubleBuffer val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex128*") @ByRef DoubleBuffer val);
public bfloat16(@Cast("const tensorflow::complex128*") @ByRef double[] val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const tensorflow::complex128*") @ByRef double[] val);
public bfloat16(@Cast("const unsigned short") short val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const unsigned short") short val);
public bfloat16(@Cast("const unsigned int") int val) { super((Pointer)null); allocate(val); }
private native void allocate(@Cast("const unsigned int") int val);
public bfloat16(long val) { super((Pointer)null); allocate(val); }
private native void allocate(long val);
public native @Name("operator float") float asFloat();
public native @Cast("bool") @Name("operator bool") boolean asBoolean();
public native @Cast("Eigen::half") @Name("operator Eigen::half") short asShort();
public native @Name("operator int") int asInt();
public native @Name("operator long") long asLong();
public native @Cast("char") @Name("operator char") byte asByte();
public native @Name("operator double") double asDouble();
public native @ByVal @Cast("tensorflow::complex64*") @Name("operator tensorflow::complex64") FloatPointer asFloatPointer();
public native @ByVal @Cast("tensorflow::complex128*") @Name("operator tensorflow::complex128") DoublePointer asDoublePointer();
public static class FP32 extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public FP32() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public FP32(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FP32(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public FP32 position(long position) {
return (FP32)super.position(position);
}
public native @Cast("unsigned int") int u(); public native FP32 u(int u);
public native float f(); public native FP32 f(float f);
}
// Converts a float point to bfloat16, with round-nearest-to-even as rounding
// method.
// TODO: There is a slightly faster implementation (8% faster on CPU)
// than this (documented in cl/175987786), that is exponentially harder to
// understand and document. Switch to the faster version when converting to
// BF16 becomes compute-bound.
public static native @ByVal bfloat16 round_to_bfloat16(float v);
public static native @ByVal bfloat16 epsilon();
public static native @ByVal bfloat16 highest();
public static native @ByVal bfloat16 lowest();
public native @Cast("uint16_t") short value(); public native bfloat16 value(short value);
// A value that represents "not a number".
@MemberGetter public static native @Cast("const uint16_t") short NAN_VALUE();
public static final short NAN_VALUE = NAN_VALUE();
}
@Namespace("tensorflow") public static native @Cast("std::ostream*") @ByRef @Name("operator <<") Pointer shiftLeft(@Cast("std::ostream*") @ByRef Pointer os,
@Const @ByRef bfloat16 dt);
@Namespace("tensorflow") public static native @ByVal @Name("operator +") bfloat16 add(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator +") bfloat16 add(@ByVal bfloat16 a, int b);
@Namespace("tensorflow") public static native @ByVal @Name("operator +") bfloat16 add(int a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator -") bfloat16 subtract(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator *") bfloat16 multiply(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator /") bfloat16 divide(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator -") bfloat16 subtract(@ByVal bfloat16 a);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator <") boolean lessThan(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator <=") boolean lessThanEquals(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator ==") boolean equals(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator !=") boolean notEquals(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator >") boolean greaterThan(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @Cast("bool") @Name("operator >=") boolean greaterThanEquals(@ByVal bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByRef @Name("operator +=") bfloat16 addPut(@ByRef bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByRef @Name("operator -=") bfloat16 subtractPut(@ByRef bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByVal @Name("operator ++") bfloat16 increment(@ByRef bfloat16 a);
@Namespace("tensorflow") public static native @ByVal @Name("operator --") bfloat16 decrement(@ByRef bfloat16 a);
@Namespace("tensorflow") public static native @ByVal @Name("operator ++") bfloat16 increment(@ByRef bfloat16 a, int arg1);
@Namespace("tensorflow") public static native @ByVal @Name("operator --") bfloat16 decrement(@ByRef bfloat16 a, int arg1);
@Namespace("tensorflow") public static native @ByRef @Name("operator *=") bfloat16 multiplyPut(@ByRef bfloat16 a, @ByVal bfloat16 b);
@Namespace("tensorflow") public static native @ByRef @Name("operator /=") bfloat16 dividePut(@ByRef bfloat16 a, @ByVal bfloat16 b);
// end namespace tensorflow
@Name("std::hash") public static class HalfHash extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public HalfHash() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public HalfHash(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public HalfHash(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public HalfHash position(long position) {
return (HalfHash)super.position(position);
}
public native @Cast("std::size_t") @Name("operator ()") long apply(@Const @ByRef bfloat16 v);
}
@Namespace("std") public static native @Cast("bool") boolean isinf(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @Cast("bool") boolean isnan(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @Cast("bool") boolean isfinite(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 abs(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 exp(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 log(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 log10(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 sqrt(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 pow(@Const @ByRef bfloat16 a, @Const @ByRef bfloat16 b);
@Namespace("std") public static native @ByVal bfloat16 sin(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 cos(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 tan(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 tanh(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 floor(@Const @ByRef bfloat16 a);
@Namespace("std") public static native @ByVal bfloat16 ceil(@Const @ByRef bfloat16 a);
// namespace std
// #endif // TENSORFLOW_CORE_LIB_BFLOAT16_BFLOAT16_H_
// Parsed from tensorflow/core/framework/numeric_types.h
/* Copyright 2015 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_CORE_FRAMEWORK_NUMERIC_TYPES_H_
// #define TENSORFLOW_CORE_FRAMEWORK_NUMERIC_TYPES_H_
// #include
// #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
// Disable clang-format to prevent 'FixedPoint' header from being included
// before 'Tensor' header on which it depends.
// clang-format off
// #include "third_party/eigen3/unsupported/Eigen/CXX11/FixedPoint"
// clang-format on
// #include "tensorflow/core/lib/bfloat16/bfloat16.h"
// #include "tensorflow/core/platform/types.h"
// Single precision complex.
// Double precision complex.
// We use Eigen's QInt implementations for our quantized int types.
// namespace tensorflow
public static native @ByVal bfloat16 FloatToBFloat16(float float_val);
// TODO(xpan): We probably need to overwrite more methods to have correct eigen
// behavior. E.g. epsilon(), dummy_precision, etc. See NumTraits.h in eigen.
@Name("Eigen::NumTraits") public static class bfloat16NumTraits extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public bfloat16NumTraits() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public bfloat16NumTraits(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public bfloat16NumTraits(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public bfloat16NumTraits position(long position) {
return (bfloat16NumTraits)super.position(position);
}
/** enum Eigen::NumTraits:: */
public static final int
IsInteger = 0,
IsSigned = 1,
RequireInitialization = 0;
public static native @ByVal bfloat16 highest();
public static native @ByVal bfloat16 lowest();
public static native @ByVal bfloat16 infinity();
public static native @ByVal bfloat16 quiet_NaN();
}
// namespace numext
// namespace Eigen
// #if defined(_MSC_VER) && !defined(__clang__)
// namespace std
// #endif // _MSC_VER
// #endif // TENSORFLOW_CORE_FRAMEWORK_NUMERIC_TYPES_H_
// Parsed from tensorflow/core/platform/init_main.h
/* Copyright 2015 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_CORE_PLATFORM_INIT_MAIN_H_
// #define TENSORFLOW_CORE_PLATFORM_INIT_MAIN_H_
// Platform-specific initialization routine that may be invoked by a
// main() program that uses TensorFlow.
//
// Default implementation does nothing.
@Namespace("tensorflow::port") public static native void InitMain(@Cast("const char*") BytePointer usage, IntPointer argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
@Namespace("tensorflow::port") public static native void InitMain(String usage, IntBuffer argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
@Namespace("tensorflow::port") public static native void InitMain(@Cast("const char*") BytePointer usage, int[] argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
@Namespace("tensorflow::port") public static native void InitMain(String usage, IntPointer argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
@Namespace("tensorflow::port") public static native void InitMain(@Cast("const char*") BytePointer usage, IntBuffer argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
@Namespace("tensorflow::port") public static native void InitMain(String usage, int[] argc, @Cast("char***") @ByPtrPtr PointerPointer argv);
// namespace port
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_INIT_MAIN_H_
// Parsed from tensorflow/core/platform/types.h
/* Copyright 2015 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_CORE_PLATFORM_TYPES_H_
// #define TENSORFLOW_CORE_PLATFORM_TYPES_H_
// #include
// #include "tensorflow/core/platform/platform.h"
// Include appropriate platform-dependent implementations
// #if defined(PLATFORM_GOOGLE) || defined(GOOGLE_INTEGRAL_TYPES)
// #include "tensorflow/core/platform/google/integral_types.h"
// #elif defined(PLATFORM_WINDOWS)
// #include "tensorflow/core/platform/windows/integral_types.h"
// #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) ||
// defined(PLATFORM_GOOGLE_ANDROID)
// #include "tensorflow/core/platform/default/integral_types.h"
// #else
// #error Define the appropriate PLATFORM_ macro for this platform
// #endif
// Define tensorflow::string to refer to appropriate platform specific type.
// TODO(josh11b): Move this into the platform/*/integral_types.h files
// above, and rename them platform/*/types.h.
// #if defined(PLATFORM_GOOGLE)
// #else
// #endif
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::uint8") byte kuint8max();
public static final byte kuint8max = kuint8max();
@Namespace("tensorflow") @MemberGetter public static native short kuint16max();
public static final short kuint16max = kuint16max();
@Namespace("tensorflow") @MemberGetter public static native int kuint32max();
public static final int kuint32max = kuint32max();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::uint64") long kuint64max();
public static final long kuint64max = kuint64max();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::int8") byte kint8min();
public static final byte kint8min = kint8min();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::int8") byte kint8max();
public static final byte kint8max = kint8max();
@Namespace("tensorflow") @MemberGetter public static native short kint16min();
public static final short kint16min = kint16min();
@Namespace("tensorflow") @MemberGetter public static native short kint16max();
public static final short kint16max = kint16max();
@Namespace("tensorflow") @MemberGetter public static native int kint32min();
public static final int kint32min = kint32min();
@Namespace("tensorflow") @MemberGetter public static native int kint32max();
public static final int kint32max = kint32max();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::int64") long kint64min();
public static final long kint64min = kint64min();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::int64") long kint64max();
public static final long kint64max = kint64max();
// A typedef for a uint64 used as a short fingerprint.
// namespace tensorflow
// Alias namespace ::stream_executor as ::tensorflow::se.
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_TYPES_H_
// Parsed from tensorflow/core/platform/mutex.h
/* Copyright 2015 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_CORE_PLATFORM_MUTEX_H_
// #define TENSORFLOW_CORE_PLATFORM_MUTEX_H_
// #include "tensorflow/core/platform/platform.h"
// #include "tensorflow/core/platform/types.h"
/** enum tensorflow::ConditionResult */
public static final int kCond_Timeout = 0, kCond_MaybeNotified = 1;
// namespace tensorflow
// Include appropriate platform-dependent implementations of mutex etc.
// #if defined(PLATFORM_GOOGLE)
// #elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) ||
// defined(PLATFORM_GOOGLE_ANDROID) || defined(PLATFORM_WINDOWS)
// #include "tensorflow/core/platform/default/mutex.h"
// #else
// #error Define the appropriate PLATFORM_ macro for this platform
// #endif
// The mutex library included above defines:
// class mutex;
// class mutex_lock;
// class condition_variable;
// It also defines the following:
// Like "cv->wait(*mu)", except that it only waits for up to "ms" milliseconds.
//
// Returns kCond_Timeout if the timeout expired without this
// thread noticing a signal on the condition variable. Otherwise may
// return either kCond_Timeout or kCond_MaybeNotified
@Namespace("tensorflow") public static native @Cast("tensorflow::ConditionResult") int WaitForMilliseconds(@Cast("tensorflow::mutex_lock*") Pointer mu, @Cast("tensorflow::condition_variable*") Pointer cv,
@Cast("tensorflow::int64") long ms);
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_MUTEX_H_
// Parsed from tensorflow/core/platform/macros.h
/* Copyright 2015 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_CORE_PLATFORM_MACROS_H_
// #define TENSORFLOW_CORE_PLATFORM_MACROS_H_
// Compiler attributes
// #if (defined(__GNUC__) || defined(__APPLE__)) && !defined(SWIG)
// Compiler supports GCC-style attributes
// #define TF_ATTRIBUTE_NORETURN __attribute__((noreturn))
// #define TF_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
// #define TF_ATTRIBUTE_NOINLINE __attribute__((noinline))
// #define TF_ATTRIBUTE_UNUSED __attribute__((unused))
// #define TF_ATTRIBUTE_COLD __attribute__((cold))
// #define TF_ATTRIBUTE_WEAK __attribute__((weak))
// #define TF_PACKED __attribute__((packed))
// #define TF_MUST_USE_RESULT __attribute__((warn_unused_result))
// #define TF_PRINTF_ATTRIBUTE(string_index, first_to_check)
// __attribute__((__format__(__printf__, string_index, first_to_check)))
// #define TF_SCANF_ATTRIBUTE(string_index, first_to_check)
// __attribute__((__format__(__scanf__, string_index, first_to_check)))
// #elif defined(_MSC_VER)
// Non-GCC equivalents
// #define TF_ATTRIBUTE_NORETURN __declspec(noreturn)
// #define TF_ATTRIBUTE_ALWAYS_INLINE __forceinline
// #define TF_ATTRIBUTE_NOINLINE
// #define TF_ATTRIBUTE_UNUSED
// #define TF_ATTRIBUTE_COLD
// #define TF_ATTRIBUTE_WEAK
// #define TF_MUST_USE_RESULT
// #define TF_PACKED
// #define TF_PRINTF_ATTRIBUTE(string_index, first_to_check)
// #define TF_SCANF_ATTRIBUTE(string_index, first_to_check)
// #else
// Non-GCC equivalents
// #define TF_ATTRIBUTE_NORETURN
// #define TF_ATTRIBUTE_ALWAYS_INLINE
// #define TF_ATTRIBUTE_NOINLINE
// #define TF_ATTRIBUTE_UNUSED
// #define TF_ATTRIBUTE_COLD
// #define TF_ATTRIBUTE_WEAK
// #define TF_MUST_USE_RESULT
// #define TF_PACKED
// #define TF_PRINTF_ATTRIBUTE(string_index, first_to_check)
// #define TF_SCANF_ATTRIBUTE(string_index, first_to_check)
// #endif
// Control visiblity outside .so
// #if defined(_WIN32)
// #ifdef TF_COMPILE_LIBRARY
// #define TF_EXPORT __declspec(dllexport)
// #else
// #define TF_EXPORT __declspec(dllimport)
// #endif // TF_COMPILE_LIBRARY
// #else
// #define TF_EXPORT __attribute__((visibility("default")))
// #endif // _WIN32
// #ifdef __has_builtin
// #define TF_HAS_BUILTIN(x) __has_builtin(x)
// #else
// #define TF_HAS_BUILTIN(x) 0
// #endif
// Compilers can be told that a certain branch is not likely to be taken
// (for instance, a CHECK failure), and use that information in static
// analysis. Giving it this information can help it optimize for the
// common case in the absence of better information (ie.
// -fprofile-arcs).
//
// We need to disable this for GPU builds, though, since nvcc8 and older
// don't recognize `__builtin_expect` as a builtin, and fail compilation.
// #if (!defined(__NVCC__)) &&
// (TF_HAS_BUILTIN(__builtin_expect) || (defined(__GNUC__) && __GNUC__ >= 3))
// #define TF_PREDICT_FALSE(x) (__builtin_expect(x, 0))
// #define TF_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
// #else
// #define TF_PREDICT_FALSE(x) (x)
// #define TF_PREDICT_TRUE(x) (x)
// #endif
// A macro to disallow the copy constructor and operator= functions
// This is usually placed in the private: declarations for a class.
// #define TF_DISALLOW_COPY_AND_ASSIGN(TypeName)
// TypeName(const TypeName&) = delete;
// void operator=(const TypeName&) = delete
// The TF_ARRAYSIZE(arr) macro returns the # of elements in an array arr.
//
// The expression TF_ARRAYSIZE(a) is a compile-time constant of type
// size_t.
// #define TF_ARRAYSIZE(a)
// ((sizeof(a) / sizeof(*(a))) /
// static_cast(!(sizeof(a) % sizeof(*(a)))))
// #if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L ||
// (defined(_MSC_VER) && _MSC_VER >= 1900)
// Define this to 1 if the code is compiled in C++11 mode; leave it
// undefined otherwise. Do NOT define it to 0 -- that causes
// '#ifdef LANG_CXX11' to behave differently from '#if LANG_CXX11'.
public static final int LANG_CXX11 = 1;
// #endif
// #if defined(__clang__) && defined(LANG_CXX11) && defined(__has_warning)
// #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
// #define TF_FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
// #endif
// #endif
// #ifndef TF_FALLTHROUGH_INTENDED
// #define TF_FALLTHROUGH_INTENDED
// do {
// } while (0)
// #endif
// #endif // TENSORFLOW_CORE_PLATFORM_MACROS_H_
// Parsed from tensorflow/core/util/port.h
/* Copyright 2015 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_CORE_UTIL_PORT_H_
// #define TENSORFLOW_CORE_UTIL_PORT_H_
// Returns true if GOOGLE_CUDA is defined.
@Namespace("tensorflow") public static native @Cast("bool") boolean IsGoogleCudaEnabled();
// Returns true if GOOGLE_CUDA is defined, and the given CUDA version supports
// half-precision matrix multiplications and convolution operations.
@Namespace("tensorflow") public static native @Cast("bool") boolean CudaSupportsHalfMatMulAndConv();
// Returns true if INTEL_MKL is defined
@Namespace("tensorflow") public static native @Cast("bool") boolean IsMklEnabled();
// end namespace tensorflow
// #endif // TENSORFLOW_CORE_UTIL_PORT_H_
// Parsed from tensorflow/core/lib/core/error_codes.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/lib/core/error_codes.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto
// Internal implementation detail -- do not use these members.
@Namespace("protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto") public static class TableStruct extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public TableStruct() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public TableStruct(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TableStruct(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public TableStruct position(long position) {
return (TableStruct)super.position(position);
}
@MemberGetter public static native @Cast("const google::protobuf::uint32") int offsets(int i);
@MemberGetter public static native @Cast("const google::protobuf::uint32*") IntPointer offsets();
}
@Namespace("protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto") public static native void AddDescriptors();
// namespace protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto
// namespace error
// namespace tensorflow
/** enum tensorflow::error::Code */
public static final int
OK = 0,
CANCELLED = 1,
UNKNOWN = 2,
INVALID_ARGUMENT = 3,
DEADLINE_EXCEEDED = 4,
NOT_FOUND = 5,
ALREADY_EXISTS = 6,
PERMISSION_DENIED = 7,
UNAUTHENTICATED = 16,
RESOURCE_EXHAUSTED = 8,
FAILED_PRECONDITION = 9,
ABORTED = 10,
OUT_OF_RANGE = 11,
UNIMPLEMENTED = 12,
INTERNAL = 13,
UNAVAILABLE = 14,
DATA_LOSS = 15,
DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ = 20,
Code_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
Code_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_IsValid(int value);
@Namespace("tensorflow::error") @MemberGetter public static native @Cast("const tensorflow::error::Code") int Code_MIN();
@Namespace("tensorflow::error") @MemberGetter public static native @Cast("const tensorflow::error::Code") int Code_MAX();
@Namespace("tensorflow::error") @MemberGetter public static native int Code_ARRAYSIZE();
@Namespace("tensorflow::error") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Code_descriptor();
@Namespace("tensorflow::error") public static native @StdString BytePointer Code_Name(@Cast("tensorflow::error::Code") int value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString BytePointer name, @Cast("tensorflow::error::Code*") IntPointer value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString String name, @Cast("tensorflow::error::Code*") IntBuffer value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString BytePointer name, @Cast("tensorflow::error::Code*") int... value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString String name, @Cast("tensorflow::error::Code*") IntPointer value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString BytePointer name, @Cast("tensorflow::error::Code*") IntBuffer value);
@Namespace("tensorflow::error") public static native @Cast("bool") boolean Code_Parse(
@StdString String name, @Cast("tensorflow::error::Code*") int... value);
// ===================================================================
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
// namespace error
// namespace tensorflow
// namespace protobuf
// namespace google
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto
// Parsed from tensorflow/core/platform/logging.h
/* Copyright 2015 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_CORE_PLATFORM_LOGGING_H_
// #define TENSORFLOW_CORE_PLATFORM_LOGGING_H_
// #include "tensorflow/core/platform/platform.h" // To pick up PLATFORM_define
// #if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) ||
// defined(GOOGLE_LOGGING)
// #include "tensorflow/core/platform/google/build_config/logging.h"
// #else
// #include "tensorflow/core/platform/default/logging.h"
// #endif
// Emit "message" as a log message to the log for the specified
// "severity" as if it came from a LOG call at "fname:line"
@Namespace("tensorflow::internal") public static native void LogString(@Cast("const char*") BytePointer fname, int line, int severity,
@StdString BytePointer message);
@Namespace("tensorflow::internal") public static native void LogString(String fname, int line, int severity,
@StdString String message);
// namespace internal
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_LOGGING_H_
// Parsed from tensorflow/core/lib/core/status.h
/* Copyright 2015 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_CORE_LIB_CORE_STATUS_H_
// #define TENSORFLOW_CORE_LIB_CORE_STATUS_H_
// #include
// #include
// #include
// #include
// #include "tensorflow/core/lib/core/error_codes.pb.h"
// #include "tensorflow/core/lib/core/stringpiece.h"
// #include "tensorflow/core/platform/logging.h"
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/types.h"
// #if defined(__clang__)
// Only clang supports warn_unused_result as a type annotation.
// #endif
/** \ingroup core
* Denotes success or failure of a call in Tensorflow. */
@Namespace("tensorflow") @NoOffset public static class Status extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Status(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Status(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Status position(long position) {
return (Status)super.position(position);
}
/** Create a success status. */
public Status() { super((Pointer)null); allocate(); }
private native void allocate();
/** \brief Create a status with the specified error code and msg as a
* human-readable string containing more detailed information. */
public Status(@Cast("tensorflow::error::Code") int code, @StringPiece BytePointer msg) { super((Pointer)null); allocate(code, msg); }
private native void allocate(@Cast("tensorflow::error::Code") int code, @StringPiece BytePointer msg);
public Status(@Cast("tensorflow::error::Code") int code, @StringPiece String msg) { super((Pointer)null); allocate(code, msg); }
private native void allocate(@Cast("tensorflow::error::Code") int code, @StringPiece String msg);
/** Copy the specified status. */
public Status(@Const @ByRef Status s) { super((Pointer)null); allocate(s); }
private native void allocate(@Const @ByRef Status s);
public native @Name("operator =") void put(@Const @ByRef Status s);
public static native @ByVal Status OK();
/** Returns true iff the status indicates success. */
public native @Cast("bool") boolean ok();
public native @Cast("tensorflow::error::Code") int code();
public native @StdString BytePointer error_message();
public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef Status x);
///
public native @Cast("bool") @Name("operator !=") boolean notEquals(@Const @ByRef Status x);
/** \brief If {@code ok()}, stores {@code new_status} into {@code *this}. If {@code !ok()},
* preserves the current status, but may augment with additional
* information about {@code new_status}.
*
* Convenient way of keeping track of the first error encountered.
* Instead of:
* {@code if (overall_status.ok()) overall_status = new_status}
* Use:
* {@code overall_status.Update(new_status);} */
public native void Update(@Const @ByRef Status new_status);
/** \brief Return a string representation of this status suitable for
* printing. Returns the string {@code "OK"} for success. */
public native @StdString BytePointer ToString();
// Ignores any errors. This method does nothing except potentially suppress
// complaints from any tools that are checking that errors are not dropped on
// the floor.
public native void IgnoreError();
}
/** \ingroup core */
@Namespace("tensorflow") public static native @Cast("std::ostream*") @ByRef @Name("operator <<") Pointer shiftLeft(@Cast("std::ostream*") @ByRef Pointer os, @Const @ByRef Status x);
@Namespace("tensorflow") public static native @StdString @Cast({"char*", "std::string*"}) BytePointer TfCheckOpHelperOutOfLine(
@Const @ByRef Status v, @Cast("const char*") BytePointer msg);
@Namespace("tensorflow") public static native @StdString @Cast({"char*", "std::string*"}) BytePointer TfCheckOpHelperOutOfLine(
@Const @ByRef Status v, String msg);
@Namespace("tensorflow") public static native @StdString @Cast({"char*", "std::string*"}) BytePointer TfCheckOpHelper(@ByVal Status v,
@Cast("const char*") BytePointer msg);
@Namespace("tensorflow") public static native @StdString @Cast({"char*", "std::string*"}) BytePointer TfCheckOpHelper(@ByVal Status v,
String msg);
// #define TF_DO_CHECK_OK(val, level)
// while (auto _result = ::tensorflow::TfCheckOpHelper(val, #val))
// LOG(level) << *(_result)
public static native void TF_CHECK_OK(@ByVal Status val);
public static native void TF_QCHECK_OK(@ByVal Status val);
// DEBUG only version of TF_CHECK_OK. Compiler still parses 'val' even in opt
// mode.
// #ifndef NDEBUG
// #define TF_DCHECK_OK(val) TF_CHECK_OK(val)
// #else
// #define TF_DCHECK_OK(val)
// while (false && (::tensorflow::Status::OK() == (val))) LOG(FATAL)
// #endif
// namespace tensorflow
// #endif // TENSORFLOW_CORE_LIB_CORE_STATUS_H_
// Parsed from tensorflow/core/lib/io/zlib_compression_options.h
/* Copyright 2016 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_LIB_IO_ZLIB_COMPRESSION_OPTIONS_H_
// #define TENSORFLOW_LIB_IO_ZLIB_COMPRESSION_OPTIONS_H_
// #include "tensorflow/core/platform/types.h"
@Namespace("tensorflow::io") @NoOffset public static class ZlibCompressionOptions extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ZlibCompressionOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ZlibCompressionOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ZlibCompressionOptions position(long position) {
return (ZlibCompressionOptions)super.position(position);
}
public ZlibCompressionOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public static native @ByVal ZlibCompressionOptions DEFAULT();
public static native @ByVal ZlibCompressionOptions RAW();
public static native @ByVal ZlibCompressionOptions GZIP();
// Defaults to Z_NO_FLUSH
public native @Cast("tensorflow::int8") byte flush_mode(); public native ZlibCompressionOptions flush_mode(byte flush_mode);
// Size of the buffer used for caching the data read from source file.
public native @Cast("tensorflow::int64") long input_buffer_size(); public native ZlibCompressionOptions input_buffer_size(long input_buffer_size);
// Size of the sink buffer where the compressed/decompressed data produced by
// zlib is cached.
public native @Cast("tensorflow::int64") long output_buffer_size(); public native ZlibCompressionOptions output_buffer_size(long output_buffer_size);
// The window_bits parameter is the base two logarithm of the window size
// (the size of the history buffer). Larger values of buffer size result in
// better compression at the expense of memory usage.
//
// Accepted values:
//
// 8..15:
// Normal deflate with zlib header and checksum.
//
// -8..-15:
// Negative values can be used for raw deflate/inflate. In this case,
// -window_bits determines the window size. deflate() will then generate raw
// deflate data with no zlib header or trailer, and will not compute an
// adler32 check value. inflate() will then process raw deflate data, not
// looking for a zlib or gzip header, not generating a check value, and not
// looking for any check values for comparison at the end of the stream.
//
// 16 + [8..15]:
// window_bits can also be greater than 15 for optional gzip encoding. Add 16
// to window_bits to write a simple gzip header and trailer around the
// compressed data instead of a zlib wrapper. The gzip header will have no
// file name, no extra data, no comment, no modification time (set to zero),
// no header crc, and the operating system will be set to 255 (unknown). If a
// gzip stream is being written, strm->adler is a crc32 instead of an adler32.
//
// 0:
// window_bits can also be zero to request that inflate use the window size
// in the zlib header of the compressed stream.
//
// While inflating, window_bits must be greater than or equal to the
// window_bits value provided used while compressing. If a compressed stream
// with a larger window size is given as input, inflate() will return with the
// error code Z_DATA_ERROR instead of trying to allocate a larger window.
//
// Defaults to MAX_WBITS
public native @Cast("tensorflow::int8") byte window_bits(); public native ZlibCompressionOptions window_bits(byte window_bits);
// From the zlib manual (http://www.zlib.net/manual.html):
// The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
// 1 gives best speed, 9 gives best compression, 0 gives no compression at all
// (the input data is simply copied a block at a time). Z_DEFAULT_COMPRESSION
// requests a default compromise between speed and compression (currently
// equivalent to level 6).
public native @Cast("tensorflow::int8") byte compression_level(); public native ZlibCompressionOptions compression_level(byte compression_level);
// Only Z_DEFLATED is supported at this time.
public native @Cast("tensorflow::int8") byte compression_method(); public native ZlibCompressionOptions compression_method(byte compression_method);
// From the zlib manual (http://www.zlib.net/manual.html):
// The mem_level parameter specifies how much memory should be allocated for
// the internal compression state. mem_level=1 uses minimum memory but is slow
// and reduces compression ratio; mem_level=9 uses maximum memory for optimal
// speed. The default value is 8.
public native @Cast("tensorflow::int8") byte mem_level(); public native ZlibCompressionOptions mem_level(byte mem_level);
// From the zlib manual (http://www.zlib.net/manual.html):
// The strategy parameter is used to tune the compression algorithm. Use the
// value Z_DEFAULT_STRATEGY for normal data, Z_FILTERED for data produced by
// a filter (or predictor), Z_HUFFMAN_ONLY to force Huffman encoding only
// (no string match), or Z_RLE to limit match distances to one
// (run-length encoding). Filtered data consists mostly of small values with
// a somewhat random distribution. In this case, the compression algorithm is
// tuned to compress them better. The effect of Z_FILTERED is to force more
// Huffman coding and less string matching; it is somewhat intermediate
// between Z_DEFAULT_STRATEGY and Z_HUFFMAN_ONLY. Z_RLE is designed to be
// almost as fast as Z_HUFFMAN_ONLY, but give better compression for
// PNG image data. The strategy parameter only affects the compression ratio
// but not the correctness of the compressed output even if it is not set
// appropriately. Z_FIXED prevents the use of dynamic Huffman codes, allowing
// for a simpler decoder for special applications.
public native @Cast("tensorflow::int8") byte compression_strategy(); public native ZlibCompressionOptions compression_strategy(byte compression_strategy);
}
// namespace io
// namespace tensorflow
// #endif // TENSORFLOW_LIB_IO_ZLIB_COMPRESSION_OPTIONS_H_
// Parsed from tensorflow/core/lib/io/zlib_outputbuffer.h
/* Copyright 2016 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_CORE_LIB_IO_COMPRESSED_OUTPUTBUFFER_H_
// #define TENSORFLOW_CORE_LIB_IO_COMPRESSED_OUTPUTBUFFER_H_
// #include
// #include
// #include "tensorflow/core/lib/core/status.h"
// #include "tensorflow/core/lib/io/zlib_compression_options.h"
// #include "tensorflow/core/platform/env.h"
// #include "tensorflow/core/platform/file_system.h"
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/types.h"
// Provides support for writing compressed output to file using zlib
// (http://www.zlib.net/).
// A given instance of an ZlibOutputBuffer is NOT safe for concurrent use
// by multiple threads
@Namespace("tensorflow::io") @NoOffset public static class ZlibOutputBuffer extends WritableFile {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ZlibOutputBuffer(Pointer p) { super(p); }
// Create an ZlibOutputBuffer for `file` with two buffers that cache the
// 1. input data to be deflated
// 2. the deflated output
// with sizes `input_buffer_bytes` and `output_buffer_bytes` respectively.
// Does not take ownership of `file`.
// output_buffer_bytes should be greater than 1.
public ZlibOutputBuffer(
WritableFile file,
int input_buffer_bytes,
int output_buffer_bytes,
@Const @ByRef ZlibCompressionOptions zlib_options) { super((Pointer)null); allocate(file, input_buffer_bytes, output_buffer_bytes, zlib_options); }
private native void allocate(
WritableFile file,
int input_buffer_bytes,
int output_buffer_bytes,
@Const @ByRef ZlibCompressionOptions zlib_options);
// Initializes some state necessary for the output buffer. This call is
// required before any other operation on the buffer.
public native @ByVal Status Init();
// Adds `data` to the compression pipeline.
//
// The input data is buffered in `z_stream_input_` and is compressed in bulk
// when the buffer gets full. The compressed output is not immediately
// written to file but rather buffered in `z_stream_output_` and gets written
// to file when the buffer is full.
//
// To immediately write contents to file call `Flush()`.
public native @ByVal Status Append(@StringPiece BytePointer data);
public native @ByVal Status Append(@StringPiece String data);
// Deflates any cached input and writes all output to file.
public native @ByVal Status Flush();
// Compresses any cached input and writes all output to file. This must be
// called before the destructor to avoid any data loss.
//
// Contrary to `Flush()` this informs zlib that it should not expect any
// further input by using Z_FINISH flush mode. Also cleans up z_stream.
//
// After calling this, any further calls to `Write()`, `Flush()` or `Close()`
// will fail.
public native @ByVal Status Close();
// Deflates any cached input, writes all output to file and syncs it.
public native @ByVal Status Sync();
}
// namespace io
// namespace tensorflow
// #endif // TENSORFLOW_CORE_LIB_IO_COMPRESSED_OUTPUTBUFFER_H_
// Parsed from tensorflow/core/lib/io/inputstream_interface.h
/* Copyright 2016 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_CORE_LIB_IO_INPUTSTREAM_INTERFACE_H_
// #define TENSORFLOW_CORE_LIB_IO_INPUTSTREAM_INTERFACE_H_
// #include
// #include "tensorflow/core/lib/core/status.h"
// #include "tensorflow/core/platform/types.h"
// An interface that defines input streaming operations.
@Namespace("tensorflow::io") public static class InputStreamInterface extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public InputStreamInterface(Pointer p) { super(p); }
// Reads the next bytes_to_read from the file. Typical return codes:
// * OK - in case of success.
// * OUT_OF_RANGE - not enough bytes remaining before end of file.
public native @ByVal Status ReadNBytes(@Cast("tensorflow::int64") long bytes_to_read, @StdString @Cast({"char*", "std::string*"}) BytePointer result);
// Skips bytes_to_skip before next ReadNBytes. bytes_to_skip should be >= 0.
// Typical return codes:
// * OK - in case of success.
// * OUT_OF_RANGE - not enough bytes remaining before end of file.
public native @ByVal Status SkipNBytes(@Cast("tensorflow::int64") long bytes_to_skip);
// Return the offset of the current byte relative to the beginning of the
// file.
// If we Skip / Read beyond the end of the file, this should return the length
// of the file.
// If there are any errors, this must return -1.
public native @Cast("tensorflow::int64") long Tell();
// Resets the stream to the beginning.
public native @ByVal Status Reset();
}
// namespace io
// namespace tensorflow
// #endif // TENSORFLOW_CORE_LIB_IO_INPUTSTREAM_INTERFACE_H_
// Parsed from tensorflow/core/lib/io/record_reader.h
/* Copyright 2015 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_CORE_LIB_IO_RECORD_READER_H_
// #define TENSORFLOW_CORE_LIB_IO_RECORD_READER_H_
// #include "tensorflow/core/lib/core/errors.h"
// #include "tensorflow/core/lib/core/stringpiece.h"
// #include "tensorflow/core/lib/io/inputstream_interface.h"
// #if !defined(IS_SLIM_BUILD)
// #include "tensorflow/core/lib/io/zlib_compression_options.h"
// #include "tensorflow/core/lib/io/zlib_inputstream.h"
// #endif // IS_SLIM_BUILD
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/types.h"
@Namespace("tensorflow::io") public static class RecordReaderOptions extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public RecordReaderOptions() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RecordReaderOptions(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RecordReaderOptions(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public RecordReaderOptions position(long position) {
return (RecordReaderOptions)super.position(position);
}
/** enum tensorflow::io::RecordReaderOptions::CompressionType */
public static final int NONE = 0, ZLIB_COMPRESSION = 1;
public native @Cast("tensorflow::io::RecordReaderOptions::CompressionType") int compression_type(); public native RecordReaderOptions compression_type(int compression_type);
// If buffer_size is non-zero, then all reads must be sequential, and no
// skipping around is permitted. (Note: this is the same behavior as reading
// compressed files.) Consider using SequentialRecordReader.
public native @Cast("tensorflow::int64") long buffer_size(); public native RecordReaderOptions buffer_size(long buffer_size);
public static native @ByVal RecordReaderOptions CreateRecordReaderOptions(
@StdString BytePointer compression_type);
public static native @ByVal RecordReaderOptions CreateRecordReaderOptions(
@StdString String compression_type);
// #if !defined(IS_SLIM_BUILD)
// Options specific to zlib compression.
public native @ByRef ZlibCompressionOptions zlib_options(); public native RecordReaderOptions zlib_options(ZlibCompressionOptions zlib_options);
// #endif // IS_SLIM_BUILD
}
// Low-level interface to read TFRecord files.
//
// If using compression or buffering, consider using SequentialRecordReader.
//
// Note: this class is not thread safe; external synchronization required.
@Namespace("tensorflow::io") @NoOffset public static class RecordReader extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RecordReader(Pointer p) { super(p); }
// Format of a single record:
// uint64 length
// uint32 masked crc of length
// byte data[length]
// uint32 masked crc of data
@MemberGetter public static native @Cast("const size_t") long kHeaderSize();
public static final long kHeaderSize = kHeaderSize();
@MemberGetter public static native @Cast("const size_t") long kFooterSize();
public static final long kFooterSize = kFooterSize();
// Statistics (sizes are in units of bytes)
public static class Stats extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public Stats() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Stats(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Stats(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public Stats position(long position) {
return (Stats)super.position(position);
}
public native @Cast("tensorflow::int64") long file_size(); public native Stats file_size(long file_size);
public native @Cast("tensorflow::int64") long data_size(); public native Stats data_size(long data_size);
public native @Cast("tensorflow::int64") long entries(); public native Stats entries(long entries); // Number of values
}
// Metadata for the TFRecord file.
public static class Metadata extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public Metadata() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Metadata(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Metadata(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public Metadata position(long position) {
return (Metadata)super.position(position);
}
public native @ByRef Stats stats(); public native Metadata stats(Stats stats);
}
// Create a reader that will return log records from "*file".
// "*file" must remain live while this Reader is in use.
public RecordReader(
RandomAccessFile file,
@Const @ByRef(nullValue = "tensorflow::io::RecordReaderOptions()") RecordReaderOptions options) { super((Pointer)null); allocate(file, options); }
private native void allocate(
RandomAccessFile file,
@Const @ByRef(nullValue = "tensorflow::io::RecordReaderOptions()") RecordReaderOptions options);
public RecordReader(
RandomAccessFile file) { super((Pointer)null); allocate(file); }
private native void allocate(
RandomAccessFile file);
// Read the record at "*offset" into *record and update *offset to
// point to the offset of the next record. Returns OK on success,
// OUT_OF_RANGE for end of file, or something else for an error.
public native @ByVal Status ReadRecord(@Cast("tensorflow::uint64*") LongPointer offset, @StdString @Cast({"char*", "std::string*"}) BytePointer record);
public native @ByVal Status ReadRecord(@Cast("tensorflow::uint64*") LongBuffer offset, @StdString @Cast({"char*", "std::string*"}) BytePointer record);
public native @ByVal Status ReadRecord(@Cast("tensorflow::uint64*") long[] offset, @StdString @Cast({"char*", "std::string*"}) BytePointer record);
// Return the metadata of the Record file.
//
// The current implementation scans the file to completion,
// skipping over the data regions, to extract the metadata once
// on the first call to GetStats(). An improved implementation
// would change RecordWriter to write the metadata into TFRecord
// so that GetMetadata() could be a const method.
//
// 'metadata' must not be nullptr.
public native @ByVal Status GetMetadata(Metadata md);
}
// High-level interface to read TFRecord files.
//
// Note: this class is not thread safe; external synchronization required.
@Namespace("tensorflow::io") @NoOffset public static class SequentialRecordReader extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SequentialRecordReader(Pointer p) { super(p); }
// Create a reader that will return log records from "*file".
// "*file" must remain live while this Reader is in use.
public SequentialRecordReader(
RandomAccessFile file,
@Const @ByRef(nullValue = "tensorflow::io::RecordReaderOptions()") RecordReaderOptions options) { super((Pointer)null); allocate(file, options); }
private native void allocate(
RandomAccessFile file,
@Const @ByRef(nullValue = "tensorflow::io::RecordReaderOptions()") RecordReaderOptions options);
public SequentialRecordReader(
RandomAccessFile file) { super((Pointer)null); allocate(file); }
private native void allocate(
RandomAccessFile file);
// Reads the next record in the file into *record. Returns OK on success,
// OUT_OF_RANGE for end of file, or something else for an error.
public native @ByVal Status ReadRecord(@StdString @Cast({"char*", "std::string*"}) BytePointer record);
// Returns the current offset in the file.
public native @Cast("tensorflow::uint64") long TellOffset();
// Seek to this offset within the file and set this offset as the current
// offset. Trying to seek backward will throw error.
public native @ByVal Status SeekOffset(@Cast("tensorflow::uint64") long offset);
}
// namespace io
// namespace tensorflow
// #endif // TENSORFLOW_CORE_LIB_IO_RECORD_READER_H_
// Parsed from tensorflow/core/lib/io/record_writer.h
/* Copyright 2015 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_CORE_LIB_IO_RECORD_WRITER_H_
// #define TENSORFLOW_CORE_LIB_IO_RECORD_WRITER_H_
// #include "tensorflow/core/lib/core/coding.h"
// #include "tensorflow/core/lib/core/status.h"
// #include "tensorflow/core/lib/core/stringpiece.h"
// #include "tensorflow/core/lib/hash/crc32c.h"
// #if !defined(IS_SLIM_BUILD)
// #include "tensorflow/core/lib/io/zlib_compression_options.h"
// #include "tensorflow/core/lib/io/zlib_outputbuffer.h"
// #endif // IS_SLIM_BUILD
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/types.h"
@Namespace("tensorflow::io") public static class RecordWriterOptions extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public RecordWriterOptions() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RecordWriterOptions(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RecordWriterOptions(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public RecordWriterOptions position(long position) {
return (RecordWriterOptions)super.position(position);
}
/** enum tensorflow::io::RecordWriterOptions::CompressionType */
public static final int NONE = 0, ZLIB_COMPRESSION = 1;
public native @Cast("tensorflow::io::RecordWriterOptions::CompressionType") int compression_type(); public native RecordWriterOptions compression_type(int compression_type);
public static native @ByVal RecordWriterOptions CreateRecordWriterOptions(
@StdString BytePointer compression_type);
public static native @ByVal RecordWriterOptions CreateRecordWriterOptions(
@StdString String compression_type);
// Options specific to zlib compression.
// #if !defined(IS_SLIM_BUILD)
public native @ByRef ZlibCompressionOptions zlib_options(); public native RecordWriterOptions zlib_options(ZlibCompressionOptions zlib_options);
// #endif // IS_SLIM_BUILD
}
@Namespace("tensorflow::io") @NoOffset public static class RecordWriter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RecordWriter(Pointer p) { super(p); }
// Format of a single record:
// uint64 length
// uint32 masked crc of length
// byte data[length]
// uint32 masked crc of data
@MemberGetter public static native @Cast("const size_t") long kHeaderSize();
public static final long kHeaderSize = kHeaderSize();
@MemberGetter public static native @Cast("const size_t") long kFooterSize();
public static final long kFooterSize = kFooterSize();
// Create a writer that will append data to "*dest".
// "*dest" must be initially empty.
// "*dest" must remain live while this Writer is in use.
public RecordWriter(WritableFile dest,
@Const @ByRef(nullValue = "tensorflow::io::RecordWriterOptions()") RecordWriterOptions options) { super((Pointer)null); allocate(dest, options); }
private native void allocate(WritableFile dest,
@Const @ByRef(nullValue = "tensorflow::io::RecordWriterOptions()") RecordWriterOptions options);
public RecordWriter(WritableFile dest) { super((Pointer)null); allocate(dest); }
private native void allocate(WritableFile dest);
// Calls Close() and logs if an error occurs.
//
// TODO(jhseu): Require that callers explicitly call Close() and remove the
// implicit Close() call in the destructor.
public native @ByVal Status WriteRecord(@StringPiece BytePointer slice);
public native @ByVal Status WriteRecord(@StringPiece String slice);
// Flushes any buffered data held by underlying containers of the
// RecordWriter to the WritableFile. Does *not* flush the
// WritableFile.
public native @ByVal Status Flush();
// Writes all output to the file. Does *not* close the WritableFile.
//
// After calling Close(), any further calls to `WriteRecord()` or `Flush()`
// are invalid.
public native @ByVal Status Close();
// Utility method to populate TFRecord headers. Populates record-header in
// "header[0,kHeaderSize-1]". The record-header is based on data[0, n-1].
public static native void PopulateHeader(@Cast("char*") BytePointer header, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateHeader(@Cast("char*") ByteBuffer header, String data, @Cast("size_t") long n);
public static native void PopulateHeader(@Cast("char*") byte[] header, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateHeader(@Cast("char*") BytePointer header, String data, @Cast("size_t") long n);
public static native void PopulateHeader(@Cast("char*") ByteBuffer header, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateHeader(@Cast("char*") byte[] header, String data, @Cast("size_t") long n);
// Utility method to populate TFRecord footers. Populates record-footer in
// "footer[0,kFooterSize-1]". The record-footer is based on data[0, n-1].
public static native void PopulateFooter(@Cast("char*") BytePointer footer, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateFooter(@Cast("char*") ByteBuffer footer, String data, @Cast("size_t") long n);
public static native void PopulateFooter(@Cast("char*") byte[] footer, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateFooter(@Cast("char*") BytePointer footer, String data, @Cast("size_t") long n);
public static native void PopulateFooter(@Cast("char*") ByteBuffer footer, @Cast("const char*") BytePointer data, @Cast("size_t") long n);
public static native void PopulateFooter(@Cast("char*") byte[] footer, String data, @Cast("size_t") long n);
}
// namespace io
// namespace tensorflow
// #endif // TENSORFLOW_CORE_LIB_IO_RECORD_WRITER_H_
// Parsed from tensorflow/core/platform/protobuf.h
/* Copyright 2015 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_CORE_PLATFORM_PROTOBUF_H_
// #define TENSORFLOW_CORE_PLATFORM_PROTOBUF_H_
// #include "tensorflow/core/platform/platform.h"
// #include "tensorflow/core/platform/types.h"
// Import whatever namespace protobuf comes from into the
// ::tensorflow::protobuf namespace.
//
// TensorFlow code should use the ::tensorflow::protobuf namespace to
// refer to all protobuf APIs.
// #if defined(PLATFORM_GOOGLE) && !defined(USE_DEFAULT_PROTOBUF)
// #include "tensorflow/core/platform/google/protobuf.h"
// #else
// #include "tensorflow/core/platform/default/protobuf.h"
// #endif
// Parses a protocol buffer contained in a string in the binary wire format.
// Returns true on success. Note: Unlike protobuf's builtin ParseFromString,
// this function has no size restrictions on the total size of the encoded
// protocol buffer.
@Namespace("tensorflow") public static native @Cast("bool") boolean ParseProtoUnlimited(@Cast("tensorflow::protobuf::MessageLite*") MessageLite proto,
@StdString BytePointer serialized);
@Namespace("tensorflow") public static native @Cast("bool") boolean ParseProtoUnlimited(@Cast("tensorflow::protobuf::MessageLite*") MessageLite proto,
@StdString String serialized);
@Namespace("tensorflow") public static native @Cast("bool") boolean ParseProtoUnlimited(@Cast("tensorflow::protobuf::MessageLite*") MessageLite proto, @Const Pointer serialized,
@Cast("size_t") long size);
// Returns the string value for the value of a string or bytes protobuf field.
@Namespace("tensorflow") public static native @StdString BytePointer ProtobufStringToString(@StdString BytePointer s);
@Namespace("tensorflow") public static native @StdString String ProtobufStringToString(@StdString String s);
// Set to . Swapping is allowed, as does not need to be
// preserved.
@Namespace("tensorflow") public static native void SetProtobufStringSwapAllowed(@StdString @Cast({"char*", "std::string*"}) BytePointer src, @StdString @Cast({"char*", "std::string*"}) BytePointer dest);
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_PROTOBUF_H_
// Parsed from tensorflow/core/platform/file_system.h
/* Copyright 2015 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_CORE_PLATFORM_FILE_SYSTEM_H_
// #define TENSORFLOW_CORE_PLATFORM_FILE_SYSTEM_H_
// #include
// #include
// #include
// #include
// #include
// #include "tensorflow/core/lib/core/errors.h"
// #include "tensorflow/core/lib/core/status.h"
// #include "tensorflow/core/lib/core/stringpiece.h"
// #include "tensorflow/core/platform/cord.h"
// #include "tensorflow/core/platform/file_statistics.h"
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/platform.h"
// #include "tensorflow/core/platform/types.h"
// #ifdef PLATFORM_WINDOWS
// #undef DeleteFile
// #endif
/** A generic interface for accessing a file system. Implementations
* of custom filesystem adapters must implement this interface,
* RandomAccessFile, WritableFile, and ReadOnlyMemoryRegion classes. */
@Namespace("tensorflow") public static class FileSystem extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FileSystem(Pointer p) { super(p); }
/** \brief Creates a brand new random access read-only file with the
* specified name.
*
* On success, stores a pointer to the new file in
* *result and returns OK. On failure stores NULL in *result and
* returns non-OK. If the file does not exist, returns a non-OK
* status.
*
* The returned file may be concurrently accessed by multiple threads.
*
* The ownership of the returned RandomAccessFile is passed to the caller
* and the object should be deleted when is not used. */
///
///
///
public native @ByVal Status NewRandomAccessFile(
@StdString BytePointer fname, @UniquePtr RandomAccessFile result);
public native @ByVal Status NewRandomAccessFile(
@StdString String fname, @UniquePtr RandomAccessFile result);
/** \brief Creates an object that writes to a new file with the specified
* name.
*
* Deletes any existing file with the same name and creates a
* new file. On success, stores a pointer to the new file in
* *result and returns OK. On failure stores NULL in *result and
* returns non-OK.
*
* The returned file will only be accessed by one thread at a time.
*
* The ownership of the returned WritableFile is passed to the caller
* and the object should be deleted when is not used. */
///
///
///
public native @ByVal Status NewWritableFile(@StdString BytePointer fname,
@UniquePtr WritableFile result);
public native @ByVal Status NewWritableFile(@StdString String fname,
@UniquePtr WritableFile result);
/** \brief Creates an object that either appends to an existing file, or
* writes to a new file (if the file does not exist to begin with).
*
* On success, stores a pointer to the new file in *result and
* returns OK. On failure stores NULL in *result and returns
* non-OK.
*
* The returned file will only be accessed by one thread at a time.
*
* The ownership of the returned WritableFile is passed to the caller
* and the object should be deleted when is not used. */
///
///
///
public native @ByVal Status NewAppendableFile(@StdString BytePointer fname,
@UniquePtr WritableFile result);
public native @ByVal Status NewAppendableFile(@StdString String fname,
@UniquePtr WritableFile result);
/** \brief Creates a readonly region of memory with the file context.
*
* On success, it returns a pointer to read-only memory region
* from the content of file fname. The ownership of the region is passed to
* the caller. On failure stores nullptr in *result and returns non-OK.
*
* The returned memory region can be accessed from many threads in parallel.
*
* The ownership of the returned ReadOnlyMemoryRegion is passed to the caller
* and the object should be deleted when is not used. */
public native @ByVal Status NewReadOnlyMemoryRegionFromFile(
@StdString BytePointer fname, @UniquePtr ReadOnlyMemoryRegion result);
public native @ByVal Status NewReadOnlyMemoryRegionFromFile(
@StdString String fname, @UniquePtr ReadOnlyMemoryRegion result);
/** Returns OK if the named path exists and NOT_FOUND otherwise. */
public native @ByVal Status FileExists(@StdString BytePointer fname);
public native @ByVal Status FileExists(@StdString String fname);
/** Returns true if all the listed files exist, false otherwise.
* if status is not null, populate the vector with a detailed status
* for each file. */
///
public native @Cast("bool") boolean FilesExist(@Const @ByRef StringVector files,
@StdVector Status status);
/** \brief Returns the immediate children in the given directory.
*
* The returned paths are relative to 'dir'. */
///
///
///
public native @ByVal Status GetChildren(@StdString BytePointer dir,
StringVector result);
public native @ByVal Status GetChildren(@StdString String dir,
StringVector result);
/** \brief Given a pattern, stores in *results the set of paths that matches
* that pattern. *results is cleared.
*
* pattern must match all of a name, not just a substring.
*
* pattern: { term }
* term:
* '*': matches any sequence of non-'/' characters
* '?': matches a single non-'/' character
* '[' [ '^' ] { match-list } ']':
* matches any single character (not) on the list
* c: matches character c (c != '*', '?', '\\', '[')
* '\\' c: matches character c
* character-range:
* c: matches character c (c != '\\', '-', ']')
* '\\' c: matches character c
* lo '-' hi: matches character c for lo <= c <= hi
*
* Typical return codes:
* * OK - no errors
* * UNIMPLEMENTED - Some underlying functions (like GetChildren) are not
* implemented */
public native @ByVal Status GetMatchingPaths(@StdString BytePointer pattern,
StringVector results);
public native @ByVal Status GetMatchingPaths(@StdString String pattern,
StringVector results);
/** \brief Obtains statistics for the given path. */
public native @ByVal Status Stat(@StdString BytePointer fname, FileStatistics stat);
public native @ByVal Status Stat(@StdString String fname, FileStatistics stat);
/** \brief Deletes the named file. */
public native @ByVal Status DeleteFile(@StdString BytePointer fname);
public native @ByVal Status DeleteFile(@StdString String fname);
/** \brief Creates the specified directory.
* Typical return codes:
* * OK - successfully created the directory.
* * ALREADY_EXISTS - directory with name dirname already exists.
* * PERMISSION_DENIED - dirname is not writable. */
public native @ByVal Status CreateDir(@StdString BytePointer dirname);
public native @ByVal Status CreateDir(@StdString String dirname);
/** \brief Creates the specified directory and all the necessary
* subdirectories.
* Typical return codes:
* * OK - successfully created the directory and sub directories, even if
* they were already created.
* * PERMISSION_DENIED - dirname or some subdirectory is not writable. */
public native @ByVal Status RecursivelyCreateDir(@StdString BytePointer dirname);
public native @ByVal Status RecursivelyCreateDir(@StdString String dirname);
/** \brief Deletes the specified directory. */
public native @ByVal Status DeleteDir(@StdString BytePointer dirname);
public native @ByVal Status DeleteDir(@StdString String dirname);
/** \brief Deletes the specified directory and all subdirectories and files
* underneath it. undeleted_files and undeleted_dirs stores the number of
* files and directories that weren't deleted (unspecified if the return
* status is not OK).
* REQUIRES: undeleted_files, undeleted_dirs to be not null.
* Typical return codes:
* * OK - dirname exists and we were able to delete everything underneath.
* * NOT_FOUND - dirname doesn't exist
* * PERMISSION_DENIED - dirname or some descendant is not writable
* * UNIMPLEMENTED - Some underlying functions (like Delete) are not
* implemented */
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname,
@Cast("tensorflow::int64*") LongPointer undeleted_files,
@Cast("tensorflow::int64*") LongPointer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname,
@Cast("tensorflow::int64*") LongBuffer undeleted_files,
@Cast("tensorflow::int64*") LongBuffer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname,
@Cast("tensorflow::int64*") long[] undeleted_files,
@Cast("tensorflow::int64*") long... undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname,
@Cast("tensorflow::int64*") LongPointer undeleted_files,
@Cast("tensorflow::int64*") LongPointer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname,
@Cast("tensorflow::int64*") LongBuffer undeleted_files,
@Cast("tensorflow::int64*") LongBuffer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname,
@Cast("tensorflow::int64*") long[] undeleted_files,
@Cast("tensorflow::int64*") long... undeleted_dirs);
/** \brief Stores the size of {@code fname} in {@code *file_size}. */
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") LongPointer file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") LongBuffer file_size);
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") long... file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") LongPointer file_size);
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") LongBuffer file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") long... file_size);
/** \brief Overwrites the target if it exists. */
public native @ByVal Status RenameFile(@StdString BytePointer src, @StdString BytePointer target);
public native @ByVal Status RenameFile(@StdString String src, @StdString String target);
/** \brief Copy the src to target. */
///
public native @ByVal Status CopyFile(@StdString BytePointer src, @StdString BytePointer target);
public native @ByVal Status CopyFile(@StdString String src, @StdString String target);
/** \brief Translate an URI to a filename for the FileSystem implementation.
*
* The implementation in this class cleans up the path, removing
* duplicate /'s, resolving .. and . (more details in
* tensorflow::lib::io::CleanPath). */
///
public native @StdString BytePointer TranslateName(@StdString BytePointer name);
public native @StdString String TranslateName(@StdString String name);
/** \brief Returns whether the given path is a directory or not.
*
* Typical return codes (not guaranteed exhaustive):
* * OK - The path exists and is a directory.
* * FAILED_PRECONDITION - The path exists and is not a directory.
* * NOT_FOUND - The path entry does not exist.
* * PERMISSION_DENIED - Insufficient permissions.
* * UNIMPLEMENTED - The file factory doesn't support directories. */
public native @ByVal Status IsDirectory(@StdString BytePointer fname);
public native @ByVal Status IsDirectory(@StdString String fname);
/** \brief Flushes any cached filesystem objects from memory. */
public native void FlushCaches();
}
/** A file abstraction for randomly reading the contents of a file. */
@Namespace("tensorflow") public static class RandomAccessFile extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RandomAccessFile(Pointer p) { super(p); }
/** \brief Reads up to {@code n} bytes from the file starting at {@code offset}.
*
* {@code scratch[0..n-1]} may be written by this routine. Sets {@code *result}
* to the data that was read (including if fewer than {@code n} bytes were
* successfully read). May set {@code *result} to point at data in
* {@code scratch[0..n-1]}, so {@code scratch[0..n-1]} must be live when
* {@code *result} is used.
*
* On OK returned status: {@code n} bytes have been stored in {@code *result}.
* On non-OK returned status: {@code [0..n]} bytes have been stored in {@code *result}.
*
* Returns {@code OUT_OF_RANGE} if fewer than n bytes were stored in {@code *result}
* because of EOF.
*
* Safe for concurrent use by multiple threads. */
public native @ByVal Status Read(@Cast("tensorflow::uint64") long offset, @Cast("size_t") long n, @StringPiece @Cast({"char*", "StringPiece*"}) BytePointer result,
@Cast("char*") BytePointer scratch);
public native @ByVal Status Read(@Cast("tensorflow::uint64") long offset, @Cast("size_t") long n, @StringPiece @Cast({"char*", "StringPiece*"}) BytePointer result,
@Cast("char*") ByteBuffer scratch);
public native @ByVal Status Read(@Cast("tensorflow::uint64") long offset, @Cast("size_t") long n, @StringPiece @Cast({"char*", "StringPiece*"}) BytePointer result,
@Cast("char*") byte[] scratch);
}
/** \brief A file abstraction for sequential writing.
*
* The implementation must provide buffering since callers may append
* small fragments at a time to the file. */
@Namespace("tensorflow") public static class WritableFile extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WritableFile(Pointer p) { super(p); }
/** \brief Append 'data' to the file. */
///
///
public native @ByVal Status Append(@StringPiece BytePointer data);
public native @ByVal Status Append(@StringPiece String data);
// TODO(ebrevdo): Remove this ifdef when absl is updated.
// #if defined(PLATFORM_GOOGLE)
// #endif
/** \brief Close the file.
*
* Flush() and de-allocate resources associated with this file
*
* Typical return codes (not guaranteed to be exhaustive):
* * OK
* * Other codes, as returned from Flush() */
///
///
public native @ByVal Status Close();
/** \brief Flushes the file and optionally syncs contents to filesystem.
*
* This should flush any local buffers whose contents have not been
* delivered to the filesystem.
*
* If the process terminates after a successful flush, the contents
* may still be persisted, since the underlying filesystem may
* eventually flush the contents. If the OS or machine crashes
* after a successful flush, the contents may or may not be
* persisted, depending on the implementation. */
///
public native @ByVal Status Flush();
/** \brief Syncs contents of file to filesystem.
*
* This waits for confirmation from the filesystem that the contents
* of the file have been persisted to the filesystem; if the OS
* or machine crashes after a successful Sync, the contents should
* be properly saved. */
public native @ByVal Status Sync();
}
/** \brief A readonly memmapped file abstraction.
*
* The implementation must guarantee that all memory is accessible when the
* object exists, independently from the Env that created it. */
@Namespace("tensorflow") public static class ReadOnlyMemoryRegion extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ReadOnlyMemoryRegion(Pointer p) { super(p); }
/** \brief Returns a pointer to the memory region. */
public native @Const Pointer data();
/** \brief Returns the length of the memory region in bytes. */
public native @Cast("tensorflow::uint64") long length();
}
/** \brief A registry for file system implementations.
*
* Filenames are specified as an URI, which is of the form
* [scheme://].
* File system implementations are registered using the REGISTER_FILE_SYSTEM
* macro, providing the 'scheme' as the key. */
@Namespace("tensorflow") public static class FileSystemRegistry extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FileSystemRegistry(Pointer p) { super(p); }
public native @ByVal Status Register(@StdString BytePointer scheme, @ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
public native @ByVal Status Register(@StdString String scheme, @ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
public native FileSystem Lookup(@StdString BytePointer scheme);
public native FileSystem Lookup(@StdString String scheme);
public native @ByVal Status GetRegisteredFileSystemSchemes(
StringVector schemes);
}
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_FILE_SYSTEM_H_
// Parsed from tensorflow/core/platform/file_statistics.h
/* Copyright 2016 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_CORE_PLATFORM_FILE_STATISTICS_H_
// #define TENSORFLOW_CORE_PLATFORM_FILE_STATISTICS_H_
// #include "tensorflow/core/platform/types.h"
@Namespace("tensorflow") @NoOffset public static class FileStatistics extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FileStatistics(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public FileStatistics(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public FileStatistics position(long position) {
return (FileStatistics)super.position(position);
}
// The length of the file or -1 if finding file length is not supported.
public native @Cast("tensorflow::int64") long length(); public native FileStatistics length(long length);
// The last modified time in nanoseconds.
public native @Cast("tensorflow::int64") long mtime_nsec(); public native FileStatistics mtime_nsec(long mtime_nsec);
// True if the file is a directory, otherwise false.
public native @Cast("bool") boolean is_directory(); public native FileStatistics is_directory(boolean is_directory);
public FileStatistics() { super((Pointer)null); allocate(); }
private native void allocate();
public FileStatistics(@Cast("tensorflow::int64") long length, @Cast("tensorflow::int64") long mtime_nsec, @Cast("bool") boolean is_directory) { super((Pointer)null); allocate(length, mtime_nsec, is_directory); }
private native void allocate(@Cast("tensorflow::int64") long length, @Cast("tensorflow::int64") long mtime_nsec, @Cast("bool") boolean is_directory);
}
// namespace tensorflow
// #endif // TENSORFLOW_CORE_PLATFORM_FILE_STATISTICS_H_
// Parsed from tensorflow/core/platform/env.h
/* Copyright 2015 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_CORE_PLATFORM_ENV_H_
// #define TENSORFLOW_CORE_PLATFORM_ENV_H_
// #include
// #include
// #include
// #include
// #include
// #include "tensorflow/core/lib/core/errors.h"
// #include "tensorflow/core/lib/core/status.h"
// #include "tensorflow/core/lib/core/stringpiece.h"
// #include "tensorflow/core/platform/env_time.h"
// #include "tensorflow/core/platform/file_system.h"
// #include "tensorflow/core/platform/macros.h"
// #include "tensorflow/core/platform/mutex.h"
// #include "tensorflow/core/platform/protobuf.h"
// #include "tensorflow/core/platform/types.h"
/** \brief An interface used by the tensorflow implementation to
* access operating system functionality like the filesystem etc.
*
* Callers may wish to provide a custom Env object to get fine grain
* control.
*
* All Env implementations are safe for concurrent access from
* multiple threads without any external synchronization. */
@Namespace("tensorflow") @NoOffset public static class Env extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Env(Pointer p) { super(p); }
/** \brief Returns a default environment suitable for the current operating
* system.
*
* Sophisticated users may wish to provide their own Env
* implementation instead of relying on this default environment.
*
* The result of Default() belongs to this library and must never be deleted. */
public static native Env Default();
/** \brief Returns the FileSystem object to handle operations on the file
* specified by 'fname'. The FileSystem object is used as the implementation
* for the file system related (non-virtual) functions that follow.
* Returned FileSystem object is still owned by the Env object and will */
// (might) be destroyed when the environment is destroyed.
public native @ByVal Status GetFileSystemForFile(@StdString BytePointer fname, @Cast("tensorflow::FileSystem**") PointerPointer result);
public native @ByVal Status GetFileSystemForFile(@StdString BytePointer fname, @ByPtrPtr FileSystem result);
public native @ByVal Status GetFileSystemForFile(@StdString String fname, @ByPtrPtr FileSystem result);
/** \brief Returns the file system schemes registered for this Env. */
public native @ByVal Status GetRegisteredFileSystemSchemes(StringVector schemes);
/** \brief Register a file system for a scheme. */
public native @ByVal Status RegisterFileSystem(@StdString BytePointer scheme,
@ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
public native @ByVal Status RegisterFileSystem(@StdString String scheme,
@ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
/** \brief Flush filesystem caches for all registered filesystems. */
///
///
public native @ByVal Status FlushFileSystemCaches();
/** \brief Creates a brand new random access read-only file with the
* specified name.
* On success, stores a pointer to the new file in
* *result and returns OK. On failure stores NULL in *result and
* returns non-OK. If the file does not exist, returns a non-OK
* status.
*
* The returned file may be concurrently accessed by multiple threads.
*
* The ownership of the returned RandomAccessFile is passed to the caller
* and the object should be deleted when is not used. The file object
* shouldn't live longer than the Env object. */
///
///
///
public native @ByVal Status NewRandomAccessFile(@StdString BytePointer fname,
@UniquePtr RandomAccessFile result);
public native @ByVal Status NewRandomAccessFile(@StdString String fname,
@UniquePtr RandomAccessFile result);
/** \brief Creates an object that writes to a new file with the specified
* name.
*
* Deletes any existing file with the same name and creates a
* new file. On success, stores a pointer to the new file in
* *result and returns OK. On failure stores NULL in *result and
* returns non-OK.
*
* The returned file will only be accessed by one thread at a time.
*
* The ownership of the returned WritableFile is passed to the caller
* and the object should be deleted when is not used. The file object
* shouldn't live longer than the Env object. */
///
///
///
public native @ByVal Status NewWritableFile(@StdString BytePointer fname,
@UniquePtr WritableFile result);
public native @ByVal Status NewWritableFile(@StdString String fname,
@UniquePtr WritableFile result);
/** \brief Creates an object that either appends to an existing file, or
* writes to a new file (if the file does not exist to begin with).
*
* On success, stores a pointer to the new file in *result and
* returns OK. On failure stores NULL in *result and returns
* non-OK.
*
* The returned file will only be accessed by one thread at a time.
*
* The ownership of the returned WritableFile is passed to the caller
* and the object should be deleted when is not used. The file object
* shouldn't live longer than the Env object. */
///
///
///
public native @ByVal Status NewAppendableFile(@StdString BytePointer fname,
@UniquePtr WritableFile result);
public native @ByVal Status NewAppendableFile(@StdString String fname,
@UniquePtr WritableFile result);
/** \brief Creates a readonly region of memory with the file context.
*
* On success, it returns a pointer to read-only memory region
* from the content of file fname. The ownership of the region is passed to
* the caller. On failure stores nullptr in *result and returns non-OK.
*
* The returned memory region can be accessed from many threads in parallel.
*
* The ownership of the returned ReadOnlyMemoryRegion is passed to the caller
* and the object should be deleted when is not used. The memory region
* object shouldn't live longer than the Env object. */
public native @ByVal Status NewReadOnlyMemoryRegionFromFile(
@StdString BytePointer fname, @UniquePtr ReadOnlyMemoryRegion result);
public native @ByVal Status NewReadOnlyMemoryRegionFromFile(
@StdString String fname, @UniquePtr ReadOnlyMemoryRegion result);
/** Returns OK if the named path exists and NOT_FOUND otherwise. */
public native @ByVal Status FileExists(@StdString BytePointer fname);
public native @ByVal Status FileExists(@StdString String fname);
/** Returns true if all the listed files exist, false otherwise.
* if status is not null, populate the vector with a detailed status
* for each file. */
///
public native @Cast("bool") boolean FilesExist(@Const @ByRef StringVector files,
@StdVector Status status);
/** \brief Stores in *result the names of the children of the specified
* directory. The names are relative to "dir".
*
* Original contents of *results are dropped. */
public native @ByVal Status GetChildren(@StdString BytePointer dir, StringVector result);
public native @ByVal Status GetChildren(@StdString String dir, StringVector result);
/** \brief Returns true if the path matches the given pattern. The wildcards
* allowed in pattern are described in FileSystem::GetMatchingPaths. */
///
public native @Cast("bool") boolean MatchPath(@StdString BytePointer path, @StdString BytePointer pattern);
public native @Cast("bool") boolean MatchPath(@StdString String path, @StdString String pattern);
/** \brief Given a pattern, stores in *results the set of paths that matches
* that pattern. *results is cleared.
*
* More details about {@code pattern} in FileSystem::GetMatchingPaths. */
public native @ByVal Status GetMatchingPaths(@StdString BytePointer pattern,
StringVector results);
public native @ByVal Status GetMatchingPaths(@StdString String pattern,
StringVector results);
/** Deletes the named file. */
public native @ByVal Status DeleteFile(@StdString BytePointer fname);
public native @ByVal Status DeleteFile(@StdString String fname);
/** \brief Deletes the specified directory and all subdirectories and files
* underneath it. undeleted_files and undeleted_dirs stores the number of
* files and directories that weren't deleted (unspecified if the return
* status is not OK).
* REQUIRES: undeleted_files, undeleted_dirs to be not null.
* Typical return codes
* * OK - dirname exists and we were able to delete everything underneath.
* * NOT_FOUND - dirname doesn't exist
* * PERMISSION_DENIED - dirname or some descendant is not writable
* * UNIMPLEMENTED - Some underlying functions (like Delete) are not
* implemented */
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname, @Cast("tensorflow::int64*") LongPointer undeleted_files,
@Cast("tensorflow::int64*") LongPointer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname, @Cast("tensorflow::int64*") LongBuffer undeleted_files,
@Cast("tensorflow::int64*") LongBuffer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname, @Cast("tensorflow::int64*") long[] undeleted_files,
@Cast("tensorflow::int64*") long... undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname, @Cast("tensorflow::int64*") LongPointer undeleted_files,
@Cast("tensorflow::int64*") LongPointer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString BytePointer dirname, @Cast("tensorflow::int64*") LongBuffer undeleted_files,
@Cast("tensorflow::int64*") LongBuffer undeleted_dirs);
public native @ByVal Status DeleteRecursively(@StdString String dirname, @Cast("tensorflow::int64*") long[] undeleted_files,
@Cast("tensorflow::int64*") long... undeleted_dirs);
/** \brief Creates the specified directory and all the necessary
* subdirectories. Typical return codes.
* * OK - successfully created the directory and sub directories, even if
* they were already created.
* * PERMISSION_DENIED - dirname or some subdirectory is not writable. */
public native @ByVal Status RecursivelyCreateDir(@StdString BytePointer dirname);
public native @ByVal Status RecursivelyCreateDir(@StdString String dirname);
/** \brief Creates the specified directory. Typical return codes
* * OK - successfully created the directory.
* * ALREADY_EXISTS - directory already exists.
* * PERMISSION_DENIED - dirname is not writable. */
public native @ByVal Status CreateDir(@StdString BytePointer dirname);
public native @ByVal Status CreateDir(@StdString String dirname);
/** Deletes the specified directory. */
public native @ByVal Status DeleteDir(@StdString BytePointer dirname);
public native @ByVal Status DeleteDir(@StdString String dirname);
/** Obtains statistics for the given path. */
public native @ByVal Status Stat(@StdString BytePointer fname, FileStatistics stat);
public native @ByVal Status Stat(@StdString String fname, FileStatistics stat);
/** \brief Returns whether the given path is a directory or not.
* Typical return codes (not guaranteed exhaustive):
* * OK - The path exists and is a directory.
* * FAILED_PRECONDITION - The path exists and is not a directory.
* * NOT_FOUND - The path entry does not exist.
* * PERMISSION_DENIED - Insufficient permissions.
* * UNIMPLEMENTED - The file factory doesn't support directories. */
public native @ByVal Status IsDirectory(@StdString BytePointer fname);
public native @ByVal Status IsDirectory(@StdString String fname);
/** Stores the size of {@code fname} in {@code *file_size}. */
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") LongPointer file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") LongBuffer file_size);
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") long... file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") LongPointer file_size);
public native @ByVal Status GetFileSize(@StdString BytePointer fname, @Cast("tensorflow::uint64*") LongBuffer file_size);
public native @ByVal Status GetFileSize(@StdString String fname, @Cast("tensorflow::uint64*") long... file_size);
/** \brief Renames file src to target. If target already exists, it will be
* replaced. */
public native @ByVal Status RenameFile(@StdString BytePointer src, @StdString BytePointer target);
public native @ByVal Status RenameFile(@StdString String src, @StdString String target);
/** \brief Copy the src to target. */
public native @ByVal Status CopyFile(@StdString BytePointer src, @StdString BytePointer target);
public native @ByVal Status CopyFile(@StdString String src, @StdString String target);
/** \brief Returns the absolute path of the current executable. It resolves
* symlinks if there is any. */
public native @StdString BytePointer GetExecutablePath();
/** Creates a local unique temporary file name. Returns true if success. */
public native @Cast("bool") boolean LocalTempFilename(@StdString @Cast({"char*", "std::string*"}) BytePointer filename);
/** Creates a local unique file name that starts with |prefix| and ends with
* |suffix|. Returns true if success. */
public native @Cast("bool") boolean CreateUniqueFileName(@StdString @Cast({"char*", "std::string*"}) BytePointer prefix, @StdString BytePointer suffix);
public native @Cast("bool") boolean CreateUniqueFileName(@StdString @Cast({"char*", "std::string*"}) BytePointer prefix, @StdString String suffix);
// TODO(jeff,sanjay): Add back thread/thread-pool support if needed.
// TODO(jeff,sanjay): if needed, tighten spec so relative to epoch, or
// provide a routine to get the absolute time.
/** \brief Returns the number of nano-seconds since the Unix epoch. */
public native @Cast("tensorflow::uint64") long NowNanos();
/** \brief Returns the number of micro-seconds since the Unix epoch. */
public native @Cast("tensorflow::uint64") long NowMicros();
/** \brief Returns the number of seconds since the Unix epoch. */
public native @Cast("tensorflow::uint64") long NowSeconds();
/** Sleeps/delays the thread for the prescribed number of micro-seconds. */
///
public native void SleepForMicroseconds(@Cast("tensorflow::int64") long micros);
/** \brief Returns a new thread that is running fn() and is identified
* (for debugging/performance-analysis) by "name".
*
* Caller takes ownership of the result and must delete it eventually
* (the deletion will block until fn() stops running). */
public native Thread StartThread(@Const @ByRef ThreadOptions thread_options,
@StdString BytePointer name,
@ByVal Fn fn);
public native Thread StartThread(@Const @ByRef ThreadOptions thread_options,
@StdString String name,
@ByVal Fn fn);
// \brief Schedules the given closure on a thread-pool.
//
// NOTE(mrry): This closure may block.
public native void SchedClosure(@ByVal Fn closure);
// \brief Schedules the given closure on a thread-pool after the given number
// of microseconds.
//
// NOTE(mrry): This closure must not block.
public native void SchedClosureAfter(@Cast("tensorflow::int64") long micros,
@ByVal Fn closure);
// \brief Load a dynamic library.
//
// Pass "library_filename" to a platform-specific mechanism for dynamically
// loading a library. The rules for determining the exact location of the
// library are platform-specific and are not documented here.
//
// On success, returns a handle to the library in "*handle" and returns
// OK from the function.
// Otherwise returns nullptr in "*handle" and an error status from the
// function.
public native @ByVal Status LoadLibrary(@Cast("const char*") BytePointer library_filename, @Cast("void**") PointerPointer handle);
public native @ByVal Status LoadLibrary(@Cast("const char*") BytePointer library_filename, @Cast("void**") @ByPtrPtr Pointer handle);
public native @ByVal Status LoadLibrary(String library_filename, @Cast("void**") @ByPtrPtr Pointer handle);
// \brief Get a pointer to a symbol from a dynamic library.
//
// "handle" should be a pointer returned from a previous call to LoadLibrary.
// On success, store a pointer to the located symbol in "*symbol" and return
// OK from the function. Otherwise, returns nullptr in "*symbol" and an error
// status from the function.
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, @Cast("const char*") BytePointer symbol_name,
@Cast("void**") PointerPointer symbol);
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, @Cast("const char*") BytePointer symbol_name,
@Cast("void**") @ByPtrPtr Pointer symbol);
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, String symbol_name,
@Cast("void**") @ByPtrPtr Pointer symbol);
// \brief build the name of dynamic library.
//
// "name" should be name of the library.
// "version" should be the version of the library or NULL
// returns the name that LoadLibrary() can use
public native @StdString BytePointer FormatLibraryFileName(@StdString BytePointer name,
@StdString BytePointer version);
public native @StdString String FormatLibraryFileName(@StdString String name,
@StdString String version);
// Returns a possible list of local temporary directories.
public native void GetLocalTempDirectories(StringVector list);
}
/** \brief An implementation of Env that forwards all calls to another Env.
*
* May be useful to clients who wish to override just part of the
* functionality of another Env. */
@Namespace("tensorflow") @NoOffset public static class EnvWrapper extends Env {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public EnvWrapper(Pointer p) { super(p); }
/** Initializes an EnvWrapper that delegates all calls to *t */
public EnvWrapper(Env t) { super((Pointer)null); allocate(t); }
private native void allocate(Env t);
/** Returns the target to which this Env forwards all calls */
public native Env target();
public native @ByVal Status GetFileSystemForFile(@StdString BytePointer fname,
@Cast("tensorflow::FileSystem**") PointerPointer result);
public native @ByVal Status GetFileSystemForFile(@StdString BytePointer fname,
@ByPtrPtr FileSystem result);
public native @ByVal Status GetFileSystemForFile(@StdString String fname,
@ByPtrPtr FileSystem result);
public native @ByVal Status GetRegisteredFileSystemSchemes(StringVector schemes);
public native @ByVal Status RegisterFileSystem(@StdString BytePointer scheme,
@ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
public native @ByVal Status RegisterFileSystem(@StdString String scheme,
@ByVal @Cast("tensorflow::FileSystemRegistry::Factory*") Pointer factory);
public native @Cast("bool") boolean MatchPath(@StdString BytePointer path, @StdString BytePointer pattern);
public native @Cast("bool") boolean MatchPath(@StdString String path, @StdString String pattern);
public native @Cast("tensorflow::uint64") long NowMicros();
public native void SleepForMicroseconds(@Cast("tensorflow::int64") long micros);
public native Thread StartThread(@Const @ByRef ThreadOptions thread_options, @StdString BytePointer name,
@ByVal Fn fn);
public native Thread StartThread(@Const @ByRef ThreadOptions thread_options, @StdString String name,
@ByVal Fn fn);
public native void SchedClosure(@ByVal Fn closure);
public native void SchedClosureAfter(@Cast("tensorflow::int64") long micros, @ByVal Fn closure);
public native @ByVal Status LoadLibrary(@Cast("const char*") BytePointer library_filename, @Cast("void**") PointerPointer handle);
public native @ByVal Status LoadLibrary(@Cast("const char*") BytePointer library_filename, @Cast("void**") @ByPtrPtr Pointer handle);
public native @ByVal Status LoadLibrary(String library_filename, @Cast("void**") @ByPtrPtr Pointer handle);
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, @Cast("const char*") BytePointer symbol_name,
@Cast("void**") PointerPointer symbol);
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, @Cast("const char*") BytePointer symbol_name,
@Cast("void**") @ByPtrPtr Pointer symbol);
public native @ByVal Status GetSymbolFromLibrary(Pointer handle, String symbol_name,
@Cast("void**") @ByPtrPtr Pointer symbol);
public native @StdString BytePointer FormatLibraryFileName(@StdString BytePointer name,
@StdString BytePointer version);
public native @StdString String FormatLibraryFileName(@StdString String name,
@StdString String version);
}
/** Represents a thread used to run a Tensorflow function. */
@Namespace("tensorflow") public static class Thread extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Thread(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Thread(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Thread position(long position) {
return (Thread)super.position(position);
}
public Thread() { super((Pointer)null); allocate(); }
private native void allocate();
/** Blocks until the thread of control stops running. */
}
/** \brief Options to configure a Thread.
*
* Note that the options are all hints, and the
* underlying implementation may choose to ignore it. */
@Namespace("tensorflow") public static class ThreadOptions extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public ThreadOptions() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ThreadOptions(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ThreadOptions(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public ThreadOptions position(long position) {
return (ThreadOptions)super.position(position);
}
/** Thread stack size to use (in bytes). */
public native @Cast("size_t") long stack_size(); public native ThreadOptions stack_size(long stack_size); // 0: use system default value
/** Guard area size to use near thread stacks to use (in bytes) */
public native @Cast("size_t") long guard_size(); public native ThreadOptions guard_size(long guard_size); // 0: use system default value
}
/** A utility routine: copy contents of {@code src} in file system {@code src_fs}
* to {@code target} in file system {@code target_fs}. */
@Namespace("tensorflow") public static native @ByVal Status FileSystemCopyFile(FileSystem src_fs, @StdString BytePointer src,
FileSystem target_fs, @StdString BytePointer target);
@Namespace("tensorflow") public static native @ByVal Status FileSystemCopyFile(FileSystem src_fs, @StdString String src,
FileSystem target_fs, @StdString String target);
/** A utility routine: reads contents of named file into {@code *data} */
@Namespace("tensorflow") public static native @ByVal Status ReadFileToString(Env env, @StdString BytePointer fname, @StdString @Cast({"char*", "std::string*"}) BytePointer data);
@Namespace("tensorflow") public static native @ByVal Status ReadFileToString(Env env, @StdString String fname, @StdString @Cast({"char*", "std::string*"}) BytePointer data);
/** A utility routine: write contents of {@code data} to file named {@code fname}
* (overwriting existing contents, if any). */
@Namespace("tensorflow") public static native @ByVal Status WriteStringToFile(Env env, @StdString BytePointer fname,
@StringPiece BytePointer data);
@Namespace("tensorflow") public static native @ByVal Status WriteStringToFile(Env env, @StdString String fname,
@StringPiece String data);
/** Write binary representation of "proto" to the named file. */
@Namespace("tensorflow") public static native @ByVal Status WriteBinaryProto(Env env, @StdString BytePointer fname,
@Cast("const tensorflow::protobuf::MessageLite*") @ByRef MessageLite proto);
@Namespace("tensorflow") public static native @ByVal Status WriteBinaryProto(Env env, @StdString String fname,
@Cast("const tensorflow::protobuf::MessageLite*") @ByRef MessageLite proto);
/** Reads contents of named file and parse as binary encoded proto data
* and store into {@code *proto}. */
@Namespace("tensorflow") public static native @ByVal Status ReadBinaryProto(Env env, @StdString BytePointer fname,
@Cast("tensorflow::protobuf::MessageLite*") MessageLite proto);
@Namespace("tensorflow") public static native @ByVal Status ReadBinaryProto(Env env, @StdString String fname,
@Cast("tensorflow::protobuf::MessageLite*") MessageLite proto);
/** Write the text representation of "proto" to the named file. */
@Namespace("tensorflow") public static native @ByVal Status WriteTextProto(Env env, @StdString BytePointer fname,
@Cast("const tensorflow::protobuf::Message*") @ByRef MessageLite proto);
@Namespace("tensorflow") public static native @ByVal Status WriteTextProto(Env env, @StdString String fname,
@Cast("const tensorflow::protobuf::Message*") @ByRef MessageLite proto);
/** Read contents of named file and parse as text encoded proto data
* and store into {@code *proto}. */
@Namespace("tensorflow") public static native @ByVal Status ReadTextProto(Env env, @StdString BytePointer fname,
@Cast("tensorflow::protobuf::Message*") MessageLite proto);
@Namespace("tensorflow") public static native @ByVal Status ReadTextProto(Env env, @StdString String fname,
@Cast("tensorflow::protobuf::Message*") MessageLite proto);
// START_SKIP_DOXYGEN
// namespace register_file_system
// END_SKIP_DOXYGEN
// namespace tensorflow
// Register a FileSystem implementation for a scheme. Files with names that have
// "scheme://" prefixes are routed to use this implementation.
// #define REGISTER_FILE_SYSTEM_ENV(env, scheme, factory)
// REGISTER_FILE_SYSTEM_UNIQ_HELPER(__COUNTER__, env, scheme, factory)
// #define REGISTER_FILE_SYSTEM_UNIQ_HELPER(ctr, env, scheme, factory)
// REGISTER_FILE_SYSTEM_UNIQ(ctr, env, scheme, factory)
// #define REGISTER_FILE_SYSTEM_UNIQ(ctr, env, scheme, factory)
// static ::tensorflow::register_file_system::Register
// register_ff##ctr TF_ATTRIBUTE_UNUSED =
// ::tensorflow::register_file_system::Register(env, scheme)
// #define REGISTER_FILE_SYSTEM(scheme, factory)
// REGISTER_FILE_SYSTEM_ENV(::tensorflow::Env::Default(), scheme, factory);
// #endif // TENSORFLOW_CORE_PLATFORM_ENV_H_
// Parsed from tensorflow/core/example/feature.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/example/feature.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// #include
// #include
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto
@Namespace("tensorflow") @Opaque public static class FeatureLists_FeatureListEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public FeatureLists_FeatureListEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FeatureLists_FeatureListEntry_DoNotUse(Pointer p) { super(p); }
}
@Namespace("tensorflow") @Opaque public static class Features_FeatureEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public Features_FeatureEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Features_FeatureEntry_DoNotUse(Pointer p) { super(p); }
}
// namespace tensorflow
// namespace protobuf
// namespace google
// ===================================================================
@Namespace("tensorflow") @NoOffset public static class BytesList extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BytesList(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public BytesList(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public BytesList position(long position) {
return (BytesList)super.position(position);
}
public BytesList() { super((Pointer)null); allocate(); }
private native void allocate();
public BytesList(@Const @ByRef BytesList from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef BytesList from);
public native @ByRef @Name("operator =") BytesList put(@Const @ByRef BytesList from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef BytesList default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const BytesList internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(BytesList other);
public native void Swap(BytesList other);
// implements Message ----------------------------------------------
public native BytesList New();
public native BytesList New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef BytesList from);
public native void MergeFrom(@Const @ByRef BytesList from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated bytes value = 1;
public native int value_size();
public native void clear_value();
@MemberGetter public static native int kValueFieldNumber();
public static final int kValueFieldNumber = kValueFieldNumber();
public native @StdString BytePointer value(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_value(int index);
public native void set_value(int index, @StdString BytePointer value);
public native void set_value(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_value(int index, @Const Pointer value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_value();
public native void add_value(@StdString BytePointer value);
public native void add_value(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_value(@Const Pointer value, @Cast("size_t") long size);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class FloatList extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatList(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public FloatList(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public FloatList position(long position) {
return (FloatList)super.position(position);
}
public FloatList() { super((Pointer)null); allocate(); }
private native void allocate();
public FloatList(@Const @ByRef FloatList from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef FloatList from);
public native @ByRef @Name("operator =") FloatList put(@Const @ByRef FloatList from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef FloatList default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const FloatList internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(FloatList other);
public native void Swap(FloatList other);
// implements Message ----------------------------------------------
public native FloatList New();
public native FloatList New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef FloatList from);
public native void MergeFrom(@Const @ByRef FloatList from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated float value = 1 [packed = true];
public native int value_size();
public native void clear_value();
@MemberGetter public static native int kValueFieldNumber();
public static final int kValueFieldNumber = kValueFieldNumber();
public native float value(int index);
public native void set_value(int index, float value);
public native void add_value(float value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class Int64List extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Int64List(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Int64List(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Int64List position(long position) {
return (Int64List)super.position(position);
}
public Int64List() { super((Pointer)null); allocate(); }
private native void allocate();
public Int64List(@Const @ByRef Int64List from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef Int64List from);
public native @ByRef @Name("operator =") Int64List put(@Const @ByRef Int64List from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef Int64List default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const Int64List internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(Int64List other);
public native void Swap(Int64List other);
// implements Message ----------------------------------------------
public native Int64List New();
public native Int64List New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef Int64List from);
public native void MergeFrom(@Const @ByRef Int64List from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated int64 value = 1 [packed = true];
public native int value_size();
public native void clear_value();
@MemberGetter public static native int kValueFieldNumber();
public static final int kValueFieldNumber = kValueFieldNumber();
public native @Cast("google::protobuf::int64") long value(int index);
public native void set_value(int index, @Cast("google::protobuf::int64") long value);
public native void add_value(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class Feature extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Feature(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Feature(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Feature position(long position) {
return (Feature)super.position(position);
}
public Feature() { super((Pointer)null); allocate(); }
private native void allocate();
public Feature(@Const @ByRef Feature from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef Feature from);
public native @ByRef @Name("operator =") Feature put(@Const @ByRef Feature from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef Feature default_instance();
/** enum tensorflow::Feature::KindCase */
public static final int
kBytesList = 1,
kFloatList = 2,
kInt64List = 3,
KIND_NOT_SET = 0;
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const Feature internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(Feature other);
public native void Swap(Feature other);
// implements Message ----------------------------------------------
public native Feature New();
public native Feature New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef Feature from);
public native void MergeFrom(@Const @ByRef Feature from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .tensorflow.BytesList bytes_list = 1;
public native @Cast("bool") boolean has_bytes_list();
public native void clear_bytes_list();
@MemberGetter public static native int kBytesListFieldNumber();
public static final int kBytesListFieldNumber = kBytesListFieldNumber();
public native @Const @ByRef BytesList bytes_list();
public native BytesList release_bytes_list();
public native BytesList mutable_bytes_list();
public native void set_allocated_bytes_list(BytesList bytes_list);
public native void unsafe_arena_set_allocated_bytes_list(
BytesList bytes_list);
public native BytesList unsafe_arena_release_bytes_list();
// .tensorflow.FloatList float_list = 2;
public native @Cast("bool") boolean has_float_list();
public native void clear_float_list();
@MemberGetter public static native int kFloatListFieldNumber();
public static final int kFloatListFieldNumber = kFloatListFieldNumber();
public native @Const @ByRef FloatList float_list();
public native FloatList release_float_list();
public native FloatList mutable_float_list();
public native void set_allocated_float_list(FloatList float_list);
public native void unsafe_arena_set_allocated_float_list(
FloatList float_list);
public native FloatList unsafe_arena_release_float_list();
// .tensorflow.Int64List int64_list = 3;
public native @Cast("bool") boolean has_int64_list();
public native void clear_int64_list();
@MemberGetter public static native int kInt64ListFieldNumber();
public static final int kInt64ListFieldNumber = kInt64ListFieldNumber();
public native @Const @ByRef Int64List int64_list();
public native Int64List release_int64_list();
public native Int64List mutable_int64_list();
public native void set_allocated_int64_list(Int64List int64_list);
public native void unsafe_arena_set_allocated_int64_list(
Int64List int64_list);
public native Int64List unsafe_arena_release_int64_list();
public native void clear_kind();
public native @Cast("tensorflow::Feature::KindCase") int kind_case();
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class Features extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Features(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Features(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Features position(long position) {
return (Features)super.position(position);
}
public Features() { super((Pointer)null); allocate(); }
private native void allocate();
public Features(@Const @ByRef Features from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef Features from);
public native @ByRef @Name("operator =") Features put(@Const @ByRef Features from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef Features default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const Features internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(Features other);
public native void Swap(Features other);
// implements Message ----------------------------------------------
public native Features New();
public native Features New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef Features from);
public native void MergeFrom(@Const @ByRef Features from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map feature = 1;
public native int feature_size();
public native void clear_feature();
@MemberGetter public static native int kFeatureFieldNumber();
public static final int kFeatureFieldNumber = kFeatureFieldNumber();
public native @Const @ByRef StringFeatureMap feature();
public native StringFeatureMap mutable_feature();
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class FeatureList extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FeatureList(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public FeatureList(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public FeatureList position(long position) {
return (FeatureList)super.position(position);
}
public FeatureList() { super((Pointer)null); allocate(); }
private native void allocate();
public FeatureList(@Const @ByRef FeatureList from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef FeatureList from);
public native @ByRef @Name("operator =") FeatureList put(@Const @ByRef FeatureList from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef FeatureList default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const FeatureList internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(FeatureList other);
public native void Swap(FeatureList other);
// implements Message ----------------------------------------------
public native FeatureList New();
public native FeatureList New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef FeatureList from);
public native void MergeFrom(@Const @ByRef FeatureList from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.Feature feature = 1;
public native int feature_size();
public native void clear_feature();
@MemberGetter public static native int kFeatureFieldNumber();
public static final int kFeatureFieldNumber = kFeatureFieldNumber();
public native Feature mutable_feature(int index);
public native @Const @ByRef Feature feature(int index);
public native Feature add_feature();
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class FeatureLists extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FeatureLists(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public FeatureLists(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public FeatureLists position(long position) {
return (FeatureLists)super.position(position);
}
public FeatureLists() { super((Pointer)null); allocate(); }
private native void allocate();
public FeatureLists(@Const @ByRef FeatureLists from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef FeatureLists from);
public native @ByRef @Name("operator =") FeatureLists put(@Const @ByRef FeatureLists from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef FeatureLists default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const FeatureLists internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(FeatureLists other);
public native void Swap(FeatureLists other);
// implements Message ----------------------------------------------
public native FeatureLists New();
public native FeatureLists New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef FeatureLists from);
public native void MergeFrom(@Const @ByRef FeatureLists from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map feature_list = 1;
public native int feature_list_size();
public native void clear_feature_list();
@MemberGetter public static native int kFeatureListFieldNumber();
public static final int kFeatureListFieldNumber = kFeatureListFieldNumber();
public native @Const @ByRef StringFeatureListMap feature_list();
public native StringFeatureListMap mutable_feature_list();
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// BytesList
// repeated bytes value = 1;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// FloatList
// repeated float value = 1 [packed = true];
// -------------------------------------------------------------------
// Int64List
// repeated int64 value = 1 [packed = true];
// -------------------------------------------------------------------
// Feature
// .tensorflow.BytesList bytes_list = 1;
// .tensorflow.FloatList float_list = 2;
// .tensorflow.Int64List int64_list = 3;
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// Features
// map feature = 1;
// -------------------------------------------------------------------
// FeatureList
// repeated .tensorflow.Feature feature = 1;
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// FeatureLists
// map feature_list = 1;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto
// Parsed from tensorflow/core/example/example.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/example/example.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// #include "tensorflow/core/example/feature.pb.h"
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto
// namespace tensorflow
// namespace protobuf
// namespace google
// ===================================================================
@Namespace("tensorflow") @NoOffset public static class Example extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Example(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Example(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Example position(long position) {
return (Example)super.position(position);
}
public Example() { super((Pointer)null); allocate(); }
private native void allocate();
public Example(@Const @ByRef Example from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef Example from);
public native @ByRef @Name("operator =") Example put(@Const @ByRef Example from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef Example default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const Example internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(Example other);
public native void Swap(Example other);
// implements Message ----------------------------------------------
public native Example New();
public native Example New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef Example from);
public native void MergeFrom(@Const @ByRef Example from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .tensorflow.Features features = 1;
public native @Cast("bool") boolean has_features();
public native void clear_features();
@MemberGetter public static native int kFeaturesFieldNumber();
public static final int kFeaturesFieldNumber = kFeaturesFieldNumber();
public native @Const @ByRef Features features();
public native Features release_features();
public native Features mutable_features();
public native void set_allocated_features(Features features);
public native void unsafe_arena_set_allocated_features(
Features features);
public native Features unsafe_arena_release_features();
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class SequenceExample extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SequenceExample(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public SequenceExample(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public SequenceExample position(long position) {
return (SequenceExample)super.position(position);
}
public SequenceExample() { super((Pointer)null); allocate(); }
private native void allocate();
public SequenceExample(@Const @ByRef SequenceExample from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef SequenceExample from);
public native @ByRef @Name("operator =") SequenceExample put(@Const @ByRef SequenceExample from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SequenceExample default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const SequenceExample internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(SequenceExample other);
public native void Swap(SequenceExample other);
// implements Message ----------------------------------------------
public native SequenceExample New();
public native SequenceExample New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef SequenceExample from);
public native void MergeFrom(@Const @ByRef SequenceExample from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .tensorflow.Features context = 1;
public native @Cast("bool") boolean has_context();
public native void clear_context();
@MemberGetter public static native int kContextFieldNumber();
public static final int kContextFieldNumber = kContextFieldNumber();
public native @Const @ByRef Features context();
public native Features release_context();
public native Features mutable_context();
public native void set_allocated_context(Features context);
public native void unsafe_arena_set_allocated_context(
Features context);
public native Features unsafe_arena_release_context();
// .tensorflow.FeatureLists feature_lists = 2;
public native @Cast("bool") boolean has_feature_lists();
public native void clear_feature_lists();
@MemberGetter public static native int kFeatureListsFieldNumber();
public static final int kFeatureListsFieldNumber = kFeatureListsFieldNumber();
public native @Const @ByRef FeatureLists feature_lists();
public native FeatureLists release_feature_lists();
public native FeatureLists mutable_feature_lists();
public native void set_allocated_feature_lists(FeatureLists feature_lists);
public native void unsafe_arena_set_allocated_feature_lists(
FeatureLists feature_lists);
public native FeatureLists unsafe_arena_release_feature_lists();
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// Example
// .tensorflow.Features features = 1;
// -------------------------------------------------------------------
// SequenceExample
// .tensorflow.Features context = 1;
// .tensorflow.FeatureLists feature_lists = 2;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto
// Parsed from tensorflow/core/protobuf/debug.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/debug.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto
// namespace tensorflow
// namespace protobuf
// namespace google
// ===================================================================
@Namespace("tensorflow") @NoOffset public static class DebugTensorWatch extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DebugTensorWatch(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public DebugTensorWatch(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public DebugTensorWatch position(long position) {
return (DebugTensorWatch)super.position(position);
}
public DebugTensorWatch() { super((Pointer)null); allocate(); }
private native void allocate();
public DebugTensorWatch(@Const @ByRef DebugTensorWatch from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef DebugTensorWatch from);
public native @ByRef @Name("operator =") DebugTensorWatch put(@Const @ByRef DebugTensorWatch from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DebugTensorWatch default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const DebugTensorWatch internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(DebugTensorWatch other);
public native void Swap(DebugTensorWatch other);
// implements Message ----------------------------------------------
public native DebugTensorWatch New();
public native DebugTensorWatch New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef DebugTensorWatch from);
public native void MergeFrom(@Const @ByRef DebugTensorWatch from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string debug_ops = 3;
public native int debug_ops_size();
public native void clear_debug_ops();
@MemberGetter public static native int kDebugOpsFieldNumber();
public static final int kDebugOpsFieldNumber = kDebugOpsFieldNumber();
public native @StdString BytePointer debug_ops(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_debug_ops(int index);
public native void set_debug_ops(int index, @StdString BytePointer value);
public native void set_debug_ops(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_debug_ops(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_debug_ops(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_debug_ops();
public native void add_debug_ops(@StdString BytePointer value);
public native void add_debug_ops(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_debug_ops(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_debug_ops(String value, @Cast("size_t") long size);
// repeated string debug_urls = 4;
public native int debug_urls_size();
public native void clear_debug_urls();
@MemberGetter public static native int kDebugUrlsFieldNumber();
public static final int kDebugUrlsFieldNumber = kDebugUrlsFieldNumber();
public native @StdString BytePointer debug_urls(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_debug_urls(int index);
public native void set_debug_urls(int index, @StdString BytePointer value);
public native void set_debug_urls(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_debug_urls(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_debug_urls(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_debug_urls();
public native void add_debug_urls(@StdString BytePointer value);
public native void add_debug_urls(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_debug_urls(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_debug_urls(String value, @Cast("size_t") long size);
// string node_name = 1;
public native void clear_node_name();
@MemberGetter public static native int kNodeNameFieldNumber();
public static final int kNodeNameFieldNumber = kNodeNameFieldNumber();
public native @StdString BytePointer node_name();
public native void set_node_name(@StdString BytePointer value);
public native void set_node_name(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_node_name(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_node_name(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_node_name();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_node_name();
public native void set_allocated_node_name(@StdString @Cast({"char*", "std::string*"}) BytePointer node_name);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_node_name();
public native @Deprecated void unsafe_arena_set_allocated_node_name(
@StdString @Cast({"char*", "std::string*"}) BytePointer node_name);
// int32 output_slot = 2;
public native void clear_output_slot();
@MemberGetter public static native int kOutputSlotFieldNumber();
public static final int kOutputSlotFieldNumber = kOutputSlotFieldNumber();
public native @Cast("google::protobuf::int32") int output_slot();
public native void set_output_slot(@Cast("google::protobuf::int32") int value);
// bool tolerate_debug_op_creation_failures = 5;
public native void clear_tolerate_debug_op_creation_failures();
@MemberGetter public static native int kTolerateDebugOpCreationFailuresFieldNumber();
public static final int kTolerateDebugOpCreationFailuresFieldNumber = kTolerateDebugOpCreationFailuresFieldNumber();
public native @Cast("bool") boolean tolerate_debug_op_creation_failures();
public native void set_tolerate_debug_op_creation_failures(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class DebugOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DebugOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public DebugOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public DebugOptions position(long position) {
return (DebugOptions)super.position(position);
}
public DebugOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public DebugOptions(@Const @ByRef DebugOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef DebugOptions from);
public native @ByRef @Name("operator =") DebugOptions put(@Const @ByRef DebugOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DebugOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const DebugOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(DebugOptions other);
public native void Swap(DebugOptions other);
// implements Message ----------------------------------------------
public native DebugOptions New();
public native DebugOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef DebugOptions from);
public native void MergeFrom(@Const @ByRef DebugOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
public native int debug_tensor_watch_opts_size();
public native void clear_debug_tensor_watch_opts();
@MemberGetter public static native int kDebugTensorWatchOptsFieldNumber();
public static final int kDebugTensorWatchOptsFieldNumber = kDebugTensorWatchOptsFieldNumber();
public native DebugTensorWatch mutable_debug_tensor_watch_opts(int index);
public native @Const @ByRef DebugTensorWatch debug_tensor_watch_opts(int index);
public native DebugTensorWatch add_debug_tensor_watch_opts();
// bool reset_disk_byte_usage = 11;
public native void clear_reset_disk_byte_usage();
@MemberGetter public static native int kResetDiskByteUsageFieldNumber();
public static final int kResetDiskByteUsageFieldNumber = kResetDiskByteUsageFieldNumber();
public native @Cast("bool") boolean reset_disk_byte_usage();
public native void set_reset_disk_byte_usage(@Cast("bool") boolean value);
// int64 global_step = 10;
public native void clear_global_step();
@MemberGetter public static native int kGlobalStepFieldNumber();
public static final int kGlobalStepFieldNumber = kGlobalStepFieldNumber();
public native @Cast("google::protobuf::int64") long global_step();
public native void set_global_step(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class DebuggedSourceFile extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DebuggedSourceFile(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public DebuggedSourceFile(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public DebuggedSourceFile position(long position) {
return (DebuggedSourceFile)super.position(position);
}
public DebuggedSourceFile() { super((Pointer)null); allocate(); }
private native void allocate();
public DebuggedSourceFile(@Const @ByRef DebuggedSourceFile from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef DebuggedSourceFile from);
public native @ByRef @Name("operator =") DebuggedSourceFile put(@Const @ByRef DebuggedSourceFile from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DebuggedSourceFile default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const DebuggedSourceFile internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(DebuggedSourceFile other);
public native void Swap(DebuggedSourceFile other);
// implements Message ----------------------------------------------
public native DebuggedSourceFile New();
public native DebuggedSourceFile New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef DebuggedSourceFile from);
public native void MergeFrom(@Const @ByRef DebuggedSourceFile from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string lines = 5;
public native int lines_size();
public native void clear_lines();
@MemberGetter public static native int kLinesFieldNumber();
public static final int kLinesFieldNumber = kLinesFieldNumber();
public native @StdString BytePointer lines(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_lines(int index);
public native void set_lines(int index, @StdString BytePointer value);
public native void set_lines(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_lines(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_lines(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_lines();
public native void add_lines(@StdString BytePointer value);
public native void add_lines(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_lines(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_lines(String value, @Cast("size_t") long size);
// string host = 1;
public native void clear_host();
@MemberGetter public static native int kHostFieldNumber();
public static final int kHostFieldNumber = kHostFieldNumber();
public native @StdString BytePointer host();
public native void set_host(@StdString BytePointer value);
public native void set_host(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_host(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_host(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_host();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_host();
public native void set_allocated_host(@StdString @Cast({"char*", "std::string*"}) BytePointer host);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_host();
public native @Deprecated void unsafe_arena_set_allocated_host(
@StdString @Cast({"char*", "std::string*"}) BytePointer host);
// string file_path = 2;
public native void clear_file_path();
@MemberGetter public static native int kFilePathFieldNumber();
public static final int kFilePathFieldNumber = kFilePathFieldNumber();
public native @StdString BytePointer file_path();
public native void set_file_path(@StdString BytePointer value);
public native void set_file_path(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_file_path(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_file_path(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_file_path();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_file_path();
public native void set_allocated_file_path(@StdString @Cast({"char*", "std::string*"}) BytePointer file_path);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_file_path();
public native @Deprecated void unsafe_arena_set_allocated_file_path(
@StdString @Cast({"char*", "std::string*"}) BytePointer file_path);
// int64 last_modified = 3;
public native void clear_last_modified();
@MemberGetter public static native int kLastModifiedFieldNumber();
public static final int kLastModifiedFieldNumber = kLastModifiedFieldNumber();
public native @Cast("google::protobuf::int64") long last_modified();
public native void set_last_modified(@Cast("google::protobuf::int64") long value);
// int64 bytes = 4;
public native void clear_bytes();
@MemberGetter public static native int kBytesFieldNumber();
public static final int kBytesFieldNumber = kBytesFieldNumber();
public native @Cast("google::protobuf::int64") long bytes();
public native void set_bytes(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class DebuggedSourceFiles extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DebuggedSourceFiles(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public DebuggedSourceFiles(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public DebuggedSourceFiles position(long position) {
return (DebuggedSourceFiles)super.position(position);
}
public DebuggedSourceFiles() { super((Pointer)null); allocate(); }
private native void allocate();
public DebuggedSourceFiles(@Const @ByRef DebuggedSourceFiles from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef DebuggedSourceFiles from);
public native @ByRef @Name("operator =") DebuggedSourceFiles put(@Const @ByRef DebuggedSourceFiles from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DebuggedSourceFiles default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const DebuggedSourceFiles internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(DebuggedSourceFiles other);
public native void Swap(DebuggedSourceFiles other);
// implements Message ----------------------------------------------
public native DebuggedSourceFiles New();
public native DebuggedSourceFiles New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef DebuggedSourceFiles from);
public native void MergeFrom(@Const @ByRef DebuggedSourceFiles from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.DebuggedSourceFile source_files = 1;
public native int source_files_size();
public native void clear_source_files();
@MemberGetter public static native int kSourceFilesFieldNumber();
public static final int kSourceFilesFieldNumber = kSourceFilesFieldNumber();
public native DebuggedSourceFile mutable_source_files(int index);
public native @Const @ByRef DebuggedSourceFile source_files(int index);
public native DebuggedSourceFile add_source_files();
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// DebugTensorWatch
// string node_name = 1;
// #if LANG_CXX11
// #endif
// int32 output_slot = 2;
// repeated string debug_ops = 3;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// repeated string debug_urls = 4;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// bool tolerate_debug_op_creation_failures = 5;
// -------------------------------------------------------------------
// DebugOptions
// repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
// int64 global_step = 10;
// bool reset_disk_byte_usage = 11;
// -------------------------------------------------------------------
// DebuggedSourceFile
// string host = 1;
// #if LANG_CXX11
// #endif
// string file_path = 2;
// #if LANG_CXX11
// #endif
// int64 last_modified = 3;
// int64 bytes = 4;
// repeated string lines = 5;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// DebuggedSourceFiles
// repeated .tensorflow.DebuggedSourceFile source_files = 1;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdebug_2eproto
// Parsed from tensorflow/core/protobuf/cluster.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/cluster.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// #include
// #include
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
@Namespace("tensorflow") @Opaque public static class JobDef_TasksEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public JobDef_TasksEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public JobDef_TasksEntry_DoNotUse(Pointer p) { super(p); }
}
// namespace tensorflow
// namespace protobuf
// namespace google
// ===================================================================
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class JobDef extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public JobDef(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public JobDef(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public JobDef position(long position) {
return (JobDef)super.position(position);
}
public JobDef() { super((Pointer)null); allocate(); }
private native void allocate();
public JobDef(@Const @ByRef JobDef from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef JobDef from);
public native @ByRef @Name("operator =") JobDef put(@Const @ByRef JobDef from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef JobDef default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const JobDef internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(JobDef other);
public native void Swap(JobDef other);
// implements Message ----------------------------------------------
public native JobDef New();
public native JobDef New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef JobDef from);
public native void MergeFrom(@Const @ByRef JobDef from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map tasks = 2;
public native int tasks_size();
public native void clear_tasks();
@MemberGetter public static native int kTasksFieldNumber();
public static final int kTasksFieldNumber = kTasksFieldNumber();
public native @Const @ByRef IntStringMap tasks();
public native IntStringMap mutable_tasks();
// string name = 1;
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public static final int kNameFieldNumber = kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_name(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_name(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_name();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_name();
public native void set_allocated_name(@StdString @Cast({"char*", "std::string*"}) BytePointer name);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_name();
public native @Deprecated void unsafe_arena_set_allocated_name(
@StdString @Cast({"char*", "std::string*"}) BytePointer name);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class ClusterDef extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ClusterDef(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ClusterDef(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ClusterDef position(long position) {
return (ClusterDef)super.position(position);
}
public ClusterDef() { super((Pointer)null); allocate(); }
private native void allocate();
public ClusterDef(@Const @ByRef ClusterDef from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef ClusterDef from);
public native @ByRef @Name("operator =") ClusterDef put(@Const @ByRef ClusterDef from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ClusterDef default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const ClusterDef internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(ClusterDef other);
public native void Swap(ClusterDef other);
// implements Message ----------------------------------------------
public native ClusterDef New();
public native ClusterDef New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef ClusterDef from);
public native void MergeFrom(@Const @ByRef ClusterDef from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.JobDef job = 1;
public native int job_size();
public native void clear_job();
@MemberGetter public static native int kJobFieldNumber();
public static final int kJobFieldNumber = kJobFieldNumber();
public native JobDef mutable_job(int index);
public native @Const @ByRef JobDef job(int index);
public native JobDef add_job();
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// -------------------------------------------------------------------
// JobDef
// string name = 1;
// #if LANG_CXX11
// #endif
// map tasks = 2;
// -------------------------------------------------------------------
// ClusterDef
// repeated .tensorflow.JobDef job = 1;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
// Parsed from tensorflow/core/protobuf/rewriter_config.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/rewriter_config.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2frewriter_5fconfig_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2frewriter_5fconfig_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// #include
// #include
// #include
// #include "tensorflow/core/framework/attr_value.pb.h"
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fprotobuf_2frewriter_5fconfig_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fprotobuf_2frewriter_5fconfig_2eproto
@Namespace("tensorflow") @Opaque public static class RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_DoNotUse(Pointer p) { super(p); }
}
// namespace tensorflow
// namespace protobuf
// namespace google
/** enum tensorflow::RewriterConfig_Toggle */
public static final int
RewriterConfig_Toggle_DEFAULT = 0,
RewriterConfig_Toggle_ON = 1,
RewriterConfig_Toggle_OFF = 2,
RewriterConfig_Toggle_AGGRESSIVE = 3,
RewriterConfig_Toggle_RewriterConfig_Toggle_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
RewriterConfig_Toggle_RewriterConfig_Toggle_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_Toggle") int RewriterConfig_Toggle_Toggle_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_Toggle") int RewriterConfig_Toggle_Toggle_MAX();
@Namespace("tensorflow") @MemberGetter public static native int RewriterConfig_Toggle_Toggle_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer RewriterConfig_Toggle_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer RewriterConfig_Toggle_Name(@Cast("tensorflow::RewriterConfig_Toggle") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_Toggle*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_Toggle*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_Toggle*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_Toggle*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_Toggle*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_Toggle_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_Toggle*") int... value);
/** enum tensorflow::RewriterConfig_NumIterationsType */
public static final int
RewriterConfig_NumIterationsType_DEFAULT_NUM_ITERS = 0,
RewriterConfig_NumIterationsType_ONE = 1,
RewriterConfig_NumIterationsType_TWO = 2,
RewriterConfig_NumIterationsType_RewriterConfig_NumIterationsType_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
RewriterConfig_NumIterationsType_RewriterConfig_NumIterationsType_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_NumIterationsType") int RewriterConfig_NumIterationsType_NumIterationsType_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_NumIterationsType") int RewriterConfig_NumIterationsType_NumIterationsType_MAX();
@Namespace("tensorflow") @MemberGetter public static native int RewriterConfig_NumIterationsType_NumIterationsType_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer RewriterConfig_NumIterationsType_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer RewriterConfig_NumIterationsType_Name(@Cast("tensorflow::RewriterConfig_NumIterationsType") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_NumIterationsType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_NumIterationsType*") int... value);
/** enum tensorflow::RewriterConfig_MemOptType */
public static final int
RewriterConfig_MemOptType_DEFAULT_MEM_OPT = 0,
RewriterConfig_MemOptType_NO_MEM_OPT = 1,
RewriterConfig_MemOptType_MANUAL = 2,
RewriterConfig_MemOptType_SWAPPING_HEURISTICS = 4,
RewriterConfig_MemOptType_RECOMPUTATION_HEURISTICS = 5,
RewriterConfig_MemOptType_SCHEDULING_HEURISTICS = 6,
RewriterConfig_MemOptType_HEURISTICS = 3,
RewriterConfig_MemOptType_RewriterConfig_MemOptType_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
RewriterConfig_MemOptType_RewriterConfig_MemOptType_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_MemOptType") int RewriterConfig_MemOptType_MemOptType_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RewriterConfig_MemOptType") int RewriterConfig_MemOptType_MemOptType_MAX();
@Namespace("tensorflow") @MemberGetter public static native int RewriterConfig_MemOptType_MemOptType_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer RewriterConfig_MemOptType_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer RewriterConfig_MemOptType_Name(@Cast("tensorflow::RewriterConfig_MemOptType") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_MemOptType*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_MemOptType*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_MemOptType*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_MemOptType*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString BytePointer name, @Cast("tensorflow::RewriterConfig_MemOptType*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RewriterConfig_MemOptType_Parse(
@StdString String name, @Cast("tensorflow::RewriterConfig_MemOptType*") int... value);
// ===================================================================
@Namespace("tensorflow") @NoOffset public static class AutoParallelOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public AutoParallelOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public AutoParallelOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public AutoParallelOptions position(long position) {
return (AutoParallelOptions)super.position(position);
}
public AutoParallelOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public AutoParallelOptions(@Const @ByRef AutoParallelOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef AutoParallelOptions from);
public native @ByRef @Name("operator =") AutoParallelOptions put(@Const @ByRef AutoParallelOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef AutoParallelOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const AutoParallelOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(AutoParallelOptions other);
public native void Swap(AutoParallelOptions other);
// implements Message ----------------------------------------------
public native AutoParallelOptions New();
public native AutoParallelOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef AutoParallelOptions from);
public native void MergeFrom(@Const @ByRef AutoParallelOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// bool enable = 1;
public native void clear_enable();
@MemberGetter public static native int kEnableFieldNumber();
public static final int kEnableFieldNumber = kEnableFieldNumber();
public native @Cast("bool") boolean enable();
public native void set_enable(@Cast("bool") boolean value);
// int32 num_replicas = 2;
public native void clear_num_replicas();
@MemberGetter public static native int kNumReplicasFieldNumber();
public static final int kNumReplicasFieldNumber = kNumReplicasFieldNumber();
public native @Cast("google::protobuf::int32") int num_replicas();
public native void set_num_replicas(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class ScopedAllocatorOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ScopedAllocatorOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ScopedAllocatorOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ScopedAllocatorOptions position(long position) {
return (ScopedAllocatorOptions)super.position(position);
}
public ScopedAllocatorOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public ScopedAllocatorOptions(@Const @ByRef ScopedAllocatorOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef ScopedAllocatorOptions from);
public native @ByRef @Name("operator =") ScopedAllocatorOptions put(@Const @ByRef ScopedAllocatorOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ScopedAllocatorOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const ScopedAllocatorOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(ScopedAllocatorOptions other);
public native void Swap(ScopedAllocatorOptions other);
// implements Message ----------------------------------------------
public native ScopedAllocatorOptions New();
public native ScopedAllocatorOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef ScopedAllocatorOptions from);
public native void MergeFrom(@Const @ByRef ScopedAllocatorOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string enable_op = 1;
public native int enable_op_size();
public native void clear_enable_op();
@MemberGetter public static native int kEnableOpFieldNumber();
public static final int kEnableOpFieldNumber = kEnableOpFieldNumber();
public native @StdString BytePointer enable_op(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_enable_op(int index);
public native void set_enable_op(int index, @StdString BytePointer value);
public native void set_enable_op(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_enable_op(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_enable_op(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_enable_op();
public native void add_enable_op(@StdString BytePointer value);
public native void add_enable_op(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_enable_op(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_enable_op(String value, @Cast("size_t") long size);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RewriterConfig_CustomGraphOptimizer extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RewriterConfig_CustomGraphOptimizer(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RewriterConfig_CustomGraphOptimizer(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RewriterConfig_CustomGraphOptimizer position(long position) {
return (RewriterConfig_CustomGraphOptimizer)super.position(position);
}
public RewriterConfig_CustomGraphOptimizer() { super((Pointer)null); allocate(); }
private native void allocate();
public RewriterConfig_CustomGraphOptimizer(@Const @ByRef RewriterConfig_CustomGraphOptimizer from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RewriterConfig_CustomGraphOptimizer from);
public native @ByRef @Name("operator =") RewriterConfig_CustomGraphOptimizer put(@Const @ByRef RewriterConfig_CustomGraphOptimizer from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RewriterConfig_CustomGraphOptimizer default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RewriterConfig_CustomGraphOptimizer internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RewriterConfig_CustomGraphOptimizer other);
public native void Swap(RewriterConfig_CustomGraphOptimizer other);
// implements Message ----------------------------------------------
public native RewriterConfig_CustomGraphOptimizer New();
public native RewriterConfig_CustomGraphOptimizer New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RewriterConfig_CustomGraphOptimizer from);
public native void MergeFrom(@Const @ByRef RewriterConfig_CustomGraphOptimizer from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map parameter_map = 2;
public native int parameter_map_size();
public native void clear_parameter_map();
@MemberGetter public static native int kParameterMapFieldNumber();
public static final int kParameterMapFieldNumber = kParameterMapFieldNumber();
public native @Const @ByRef StringAttrValueMap parameter_map();
public native StringAttrValueMap mutable_parameter_map();
// string name = 1;
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public static final int kNameFieldNumber = kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_name(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_name(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_name();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_name();
public native void set_allocated_name(@StdString @Cast({"char*", "std::string*"}) BytePointer name);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_name();
public native @Deprecated void unsafe_arena_set_allocated_name(
@StdString @Cast({"char*", "std::string*"}) BytePointer name);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RewriterConfig extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RewriterConfig(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RewriterConfig(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RewriterConfig position(long position) {
return (RewriterConfig)super.position(position);
}
public RewriterConfig() { super((Pointer)null); allocate(); }
private native void allocate();
public RewriterConfig(@Const @ByRef RewriterConfig from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RewriterConfig from);
public native @ByRef @Name("operator =") RewriterConfig put(@Const @ByRef RewriterConfig from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RewriterConfig default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RewriterConfig internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RewriterConfig other);
public native void Swap(RewriterConfig other);
// implements Message ----------------------------------------------
public native RewriterConfig New();
public native RewriterConfig New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RewriterConfig from);
public native void MergeFrom(@Const @ByRef RewriterConfig from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int DEFAULT();
public static final int DEFAULT = DEFAULT();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int ON();
public static final int ON = ON();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int OFF();
public static final int OFF = OFF();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int AGGRESSIVE();
public static final int AGGRESSIVE = AGGRESSIVE();
public static native @Cast("bool") boolean Toggle_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int Toggle_MIN();
public static final int Toggle_MIN = Toggle_MIN();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::Toggle") int Toggle_MAX();
public static final int Toggle_MAX = Toggle_MAX();
@MemberGetter public static native int Toggle_ARRAYSIZE();
public static final int Toggle_ARRAYSIZE = Toggle_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Toggle_descriptor();
public static native @StdString BytePointer Toggle_Name(@Cast("tensorflow::RewriterConfig::Toggle") int value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::Toggle*") IntPointer value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::Toggle*") IntBuffer value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::Toggle*") int... value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::Toggle*") IntPointer value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::Toggle*") IntBuffer value);
public static native @Cast("bool") boolean Toggle_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::Toggle*") int... value);
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::NumIterationsType") int DEFAULT_NUM_ITERS();
public static final int DEFAULT_NUM_ITERS = DEFAULT_NUM_ITERS();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::NumIterationsType") int ONE();
public static final int ONE = ONE();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::NumIterationsType") int TWO();
public static final int TWO = TWO();
public static native @Cast("bool") boolean NumIterationsType_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::NumIterationsType") int NumIterationsType_MIN();
public static final int NumIterationsType_MIN = NumIterationsType_MIN();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::NumIterationsType") int NumIterationsType_MAX();
public static final int NumIterationsType_MAX = NumIterationsType_MAX();
@MemberGetter public static native int NumIterationsType_ARRAYSIZE();
public static final int NumIterationsType_ARRAYSIZE = NumIterationsType_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer NumIterationsType_descriptor();
public static native @StdString BytePointer NumIterationsType_Name(@Cast("tensorflow::RewriterConfig::NumIterationsType") int value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") IntPointer value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") IntBuffer value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") int... value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") IntPointer value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") IntBuffer value);
public static native @Cast("bool") boolean NumIterationsType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::NumIterationsType*") int... value);
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int DEFAULT_MEM_OPT();
public static final int DEFAULT_MEM_OPT = DEFAULT_MEM_OPT();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int NO_MEM_OPT();
public static final int NO_MEM_OPT = NO_MEM_OPT();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int MANUAL();
public static final int MANUAL = MANUAL();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int SWAPPING_HEURISTICS();
public static final int SWAPPING_HEURISTICS = SWAPPING_HEURISTICS();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int RECOMPUTATION_HEURISTICS();
public static final int RECOMPUTATION_HEURISTICS = RECOMPUTATION_HEURISTICS();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int SCHEDULING_HEURISTICS();
public static final int SCHEDULING_HEURISTICS = SCHEDULING_HEURISTICS();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int HEURISTICS();
public static final int HEURISTICS = HEURISTICS();
public static native @Cast("bool") boolean MemOptType_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int MemOptType_MIN();
public static final int MemOptType_MIN = MemOptType_MIN();
@MemberGetter public static native @Cast("const tensorflow::RewriterConfig::MemOptType") int MemOptType_MAX();
public static final int MemOptType_MAX = MemOptType_MAX();
@MemberGetter public static native int MemOptType_ARRAYSIZE();
public static final int MemOptType_ARRAYSIZE = MemOptType_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer MemOptType_descriptor();
public static native @StdString BytePointer MemOptType_Name(@Cast("tensorflow::RewriterConfig::MemOptType") int value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::MemOptType*") IntPointer value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::MemOptType*") IntBuffer value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::MemOptType*") int... value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::MemOptType*") IntPointer value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString BytePointer name,
@Cast("tensorflow::RewriterConfig::MemOptType*") IntBuffer value);
public static native @Cast("bool") boolean MemOptType_Parse(@StdString String name,
@Cast("tensorflow::RewriterConfig::MemOptType*") int... value);
// accessors -------------------------------------------------------
// repeated string optimizers = 100;
public native int optimizers_size();
public native void clear_optimizers();
@MemberGetter public static native int kOptimizersFieldNumber();
public static final int kOptimizersFieldNumber = kOptimizersFieldNumber();
public native @StdString BytePointer optimizers(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_optimizers(int index);
public native void set_optimizers(int index, @StdString BytePointer value);
public native void set_optimizers(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_optimizers(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_optimizers(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_optimizers();
public native void add_optimizers(@StdString BytePointer value);
public native void add_optimizers(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_optimizers(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_optimizers(String value, @Cast("size_t") long size);
// repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
public native int custom_optimizers_size();
public native void clear_custom_optimizers();
@MemberGetter public static native int kCustomOptimizersFieldNumber();
public static final int kCustomOptimizersFieldNumber = kCustomOptimizersFieldNumber();
public native RewriterConfig_CustomGraphOptimizer mutable_custom_optimizers(int index);
public native @Const @ByRef RewriterConfig_CustomGraphOptimizer custom_optimizers(int index);
public native RewriterConfig_CustomGraphOptimizer add_custom_optimizers();
// string memory_optimizer_target_node_name_scope = 6;
public native void clear_memory_optimizer_target_node_name_scope();
@MemberGetter public static native int kMemoryOptimizerTargetNodeNameScopeFieldNumber();
public static final int kMemoryOptimizerTargetNodeNameScopeFieldNumber = kMemoryOptimizerTargetNodeNameScopeFieldNumber();
public native @StdString BytePointer memory_optimizer_target_node_name_scope();
public native void set_memory_optimizer_target_node_name_scope(@StdString BytePointer value);
public native void set_memory_optimizer_target_node_name_scope(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_memory_optimizer_target_node_name_scope(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_memory_optimizer_target_node_name_scope(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_memory_optimizer_target_node_name_scope();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_memory_optimizer_target_node_name_scope();
public native void set_allocated_memory_optimizer_target_node_name_scope(@StdString @Cast({"char*", "std::string*"}) BytePointer memory_optimizer_target_node_name_scope);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_memory_optimizer_target_node_name_scope();
public native @Deprecated void unsafe_arena_set_allocated_memory_optimizer_target_node_name_scope(
@StdString @Cast({"char*", "std::string*"}) BytePointer memory_optimizer_target_node_name_scope);
// .tensorflow.AutoParallelOptions auto_parallel = 5;
public native @Cast("bool") boolean has_auto_parallel();
public native void clear_auto_parallel();
@MemberGetter public static native int kAutoParallelFieldNumber();
public static final int kAutoParallelFieldNumber = kAutoParallelFieldNumber();
public native @Const @ByRef AutoParallelOptions auto_parallel();
public native AutoParallelOptions release_auto_parallel();
public native AutoParallelOptions mutable_auto_parallel();
public native void set_allocated_auto_parallel(AutoParallelOptions auto_parallel);
public native void unsafe_arena_set_allocated_auto_parallel(
AutoParallelOptions auto_parallel);
public native AutoParallelOptions unsafe_arena_release_auto_parallel();
// .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
public native @Cast("bool") boolean has_scoped_allocator_opts();
public native void clear_scoped_allocator_opts();
@MemberGetter public static native int kScopedAllocatorOptsFieldNumber();
public static final int kScopedAllocatorOptsFieldNumber = kScopedAllocatorOptsFieldNumber();
public native @Const @ByRef ScopedAllocatorOptions scoped_allocator_opts();
public native ScopedAllocatorOptions release_scoped_allocator_opts();
public native ScopedAllocatorOptions mutable_scoped_allocator_opts();
public native void set_allocated_scoped_allocator_opts(ScopedAllocatorOptions scoped_allocator_opts);
public native void unsafe_arena_set_allocated_scoped_allocator_opts(
ScopedAllocatorOptions scoped_allocator_opts);
public native ScopedAllocatorOptions unsafe_arena_release_scoped_allocator_opts();
// .tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
public native void clear_layout_optimizer();
@MemberGetter public static native int kLayoutOptimizerFieldNumber();
public static final int kLayoutOptimizerFieldNumber = kLayoutOptimizerFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int layout_optimizer();
public native void set_layout_optimizer(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle constant_folding = 3;
public native void clear_constant_folding();
@MemberGetter public static native int kConstantFoldingFieldNumber();
public static final int kConstantFoldingFieldNumber = kConstantFoldingFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int constant_folding();
public native void set_constant_folding(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
public native void clear_memory_optimization();
@MemberGetter public static native int kMemoryOptimizationFieldNumber();
public static final int kMemoryOptimizationFieldNumber = kMemoryOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_MemOptType") int memory_optimization();
public native void set_memory_optimization(@Cast("tensorflow::RewriterConfig_MemOptType") int value);
// .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
public native void clear_arithmetic_optimization();
@MemberGetter public static native int kArithmeticOptimizationFieldNumber();
public static final int kArithmeticOptimizationFieldNumber = kArithmeticOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int arithmetic_optimization();
public native void set_arithmetic_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
public native void clear_dependency_optimization();
@MemberGetter public static native int kDependencyOptimizationFieldNumber();
public static final int kDependencyOptimizationFieldNumber = kDependencyOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int dependency_optimization();
public native void set_dependency_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle loop_optimization = 9;
public native void clear_loop_optimization();
@MemberGetter public static native int kLoopOptimizationFieldNumber();
public static final int kLoopOptimizationFieldNumber = kLoopOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int loop_optimization();
public native void set_loop_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle function_optimization = 10;
public native void clear_function_optimization();
@MemberGetter public static native int kFunctionOptimizationFieldNumber();
public static final int kFunctionOptimizationFieldNumber = kFunctionOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int function_optimization();
public native void set_function_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// bool disable_model_pruning = 2;
public native void clear_disable_model_pruning();
@MemberGetter public static native int kDisableModelPruningFieldNumber();
public static final int kDisableModelPruningFieldNumber = kDisableModelPruningFieldNumber();
public native @Cast("bool") boolean disable_model_pruning();
public native void set_disable_model_pruning(@Cast("bool") boolean value);
// bool disable_meta_optimizer = 19;
public native void clear_disable_meta_optimizer();
@MemberGetter public static native int kDisableMetaOptimizerFieldNumber();
public static final int kDisableMetaOptimizerFieldNumber = kDisableMetaOptimizerFieldNumber();
public native @Cast("bool") boolean disable_meta_optimizer();
public native void set_disable_meta_optimizer(@Cast("bool") boolean value);
// .tensorflow.RewriterConfig.Toggle debug_stripper = 11;
public native void clear_debug_stripper();
@MemberGetter public static native int kDebugStripperFieldNumber();
public static final int kDebugStripperFieldNumber = kDebugStripperFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int debug_stripper();
public native void set_debug_stripper(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
public native void clear_meta_optimizer_iterations();
@MemberGetter public static native int kMetaOptimizerIterationsFieldNumber();
public static final int kMetaOptimizerIterationsFieldNumber = kMetaOptimizerIterationsFieldNumber();
public native @Cast("tensorflow::RewriterConfig_NumIterationsType") int meta_optimizer_iterations();
public native void set_meta_optimizer_iterations(@Cast("tensorflow::RewriterConfig_NumIterationsType") int value);
// .tensorflow.RewriterConfig.Toggle shape_optimization = 13;
public native void clear_shape_optimization();
@MemberGetter public static native int kShapeOptimizationFieldNumber();
public static final int kShapeOptimizationFieldNumber = kShapeOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int shape_optimization();
public native void set_shape_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle remapping = 14;
public native void clear_remapping();
@MemberGetter public static native int kRemappingFieldNumber();
public static final int kRemappingFieldNumber = kRemappingFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int remapping();
public native void set_remapping(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
public native void clear_scoped_allocator_optimization();
@MemberGetter public static native int kScopedAllocatorOptimizationFieldNumber();
public static final int kScopedAllocatorOptimizationFieldNumber = kScopedAllocatorOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int scoped_allocator_optimization();
public native void set_scoped_allocator_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
// int32 min_graph_nodes = 17;
public native void clear_min_graph_nodes();
@MemberGetter public static native int kMinGraphNodesFieldNumber();
public static final int kMinGraphNodesFieldNumber = kMinGraphNodesFieldNumber();
public native @Cast("google::protobuf::int32") int min_graph_nodes();
public native void set_min_graph_nodes(@Cast("google::protobuf::int32") int value);
// .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
public native void clear_pin_to_host_optimization();
@MemberGetter public static native int kPinToHostOptimizationFieldNumber();
public static final int kPinToHostOptimizationFieldNumber = kPinToHostOptimizationFieldNumber();
public native @Cast("tensorflow::RewriterConfig_Toggle") int pin_to_host_optimization();
public native void set_pin_to_host_optimization(@Cast("tensorflow::RewriterConfig_Toggle") int value);
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// AutoParallelOptions
// bool enable = 1;
// int32 num_replicas = 2;
// -------------------------------------------------------------------
// ScopedAllocatorOptions
// repeated string enable_op = 1;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// RewriterConfig_CustomGraphOptimizer
// string name = 1;
// #if LANG_CXX11
// #endif
// map parameter_map = 2;
// -------------------------------------------------------------------
// RewriterConfig
// .tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
// .tensorflow.RewriterConfig.Toggle constant_folding = 3;
// .tensorflow.RewriterConfig.Toggle shape_optimization = 13;
// .tensorflow.RewriterConfig.Toggle remapping = 14;
// .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
// .tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
// .tensorflow.RewriterConfig.Toggle loop_optimization = 9;
// .tensorflow.RewriterConfig.Toggle function_optimization = 10;
// .tensorflow.RewriterConfig.Toggle debug_stripper = 11;
// bool disable_model_pruning = 2;
// .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
// .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
// bool disable_meta_optimizer = 19;
// .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
// int32 min_graph_nodes = 17;
// .tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
// string memory_optimizer_target_node_name_scope = 6;
// #if LANG_CXX11
// #endif
// .tensorflow.AutoParallelOptions auto_parallel = 5;
// .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
// repeated string optimizers = 100;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// namespace protobuf
// namespace google
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2frewriter_5fconfig_2eproto
// Parsed from tensorflow/core/protobuf/config.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/config.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include // IWYU pragma: export
// #include
// #include
// #include
// #include
// #include "tensorflow/core/framework/cost_graph.pb.h"
// #include "tensorflow/core/framework/graph.pb.h"
// #include "tensorflow/core/framework/step_stats.pb.h"
// #include "tensorflow/core/protobuf/debug.pb.h"
// #include "tensorflow/core/protobuf/cluster.pb.h"
// #include "tensorflow/core/protobuf/rewriter_config.pb.h"
// @@protoc_insertion_point(includes)
// #define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto
// Internal implementation detail -- do not use these members.
// namespace protobuf_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto
@Namespace("tensorflow") @Opaque public static class CallableOptions_FeedDevicesEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public CallableOptions_FeedDevicesEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CallableOptions_FeedDevicesEntry_DoNotUse(Pointer p) { super(p); }
}
@Namespace("tensorflow") @Opaque public static class CallableOptions_FetchDevicesEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public CallableOptions_FetchDevicesEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CallableOptions_FetchDevicesEntry_DoNotUse(Pointer p) { super(p); }
}
@Namespace("tensorflow") @Opaque public static class ConfigProto_DeviceCountEntry_DoNotUse extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public ConfigProto_DeviceCountEntry_DoNotUse() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConfigProto_DeviceCountEntry_DoNotUse(Pointer p) { super(p); }
}
// namespace tensorflow
// namespace protobuf
// namespace google
/** enum tensorflow::OptimizerOptions_Level */
public static final int
OptimizerOptions_Level_L1 = 0,
OptimizerOptions_Level_L0 = -1,
OptimizerOptions_Level_OptimizerOptions_Level_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
OptimizerOptions_Level_OptimizerOptions_Level_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::OptimizerOptions_Level") int OptimizerOptions_Level_Level_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::OptimizerOptions_Level") int OptimizerOptions_Level_Level_MAX();
@Namespace("tensorflow") @MemberGetter public static native int OptimizerOptions_Level_Level_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer OptimizerOptions_Level_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer OptimizerOptions_Level_Name(@Cast("tensorflow::OptimizerOptions_Level") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_Level*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_Level*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_Level*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_Level*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_Level*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_Level_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_Level*") int... value);
/** enum tensorflow::OptimizerOptions_GlobalJitLevel */
public static final int
OptimizerOptions_GlobalJitLevel_DEFAULT = 0,
OptimizerOptions_GlobalJitLevel_OFF = -1,
OptimizerOptions_GlobalJitLevel_ON_1 = 1,
OptimizerOptions_GlobalJitLevel_ON_2 = 2,
OptimizerOptions_GlobalJitLevel_OptimizerOptions_GlobalJitLevel_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
OptimizerOptions_GlobalJitLevel_OptimizerOptions_GlobalJitLevel_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::OptimizerOptions_GlobalJitLevel") int OptimizerOptions_GlobalJitLevel_GlobalJitLevel_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::OptimizerOptions_GlobalJitLevel") int OptimizerOptions_GlobalJitLevel_GlobalJitLevel_MAX();
@Namespace("tensorflow") @MemberGetter public static native int OptimizerOptions_GlobalJitLevel_GlobalJitLevel_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer OptimizerOptions_GlobalJitLevel_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer OptimizerOptions_GlobalJitLevel_Name(@Cast("tensorflow::OptimizerOptions_GlobalJitLevel") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean OptimizerOptions_GlobalJitLevel_Parse(
@StdString String name, @Cast("tensorflow::OptimizerOptions_GlobalJitLevel*") int... value);
/** enum tensorflow::RunOptions_TraceLevel */
public static final int
RunOptions_TraceLevel_NO_TRACE = 0,
RunOptions_TraceLevel_SOFTWARE_TRACE = 1,
RunOptions_TraceLevel_HARDWARE_TRACE = 2,
RunOptions_TraceLevel_FULL_TRACE = 3,
RunOptions_TraceLevel_RunOptions_TraceLevel_INT_MIN_SENTINEL_DO_NOT_USE_ = kint32min,
RunOptions_TraceLevel_RunOptions_TraceLevel_INT_MAX_SENTINEL_DO_NOT_USE_ = kint32max;
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_IsValid(int value);
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RunOptions_TraceLevel") int RunOptions_TraceLevel_TraceLevel_MIN();
@Namespace("tensorflow") @MemberGetter public static native @Cast("const tensorflow::RunOptions_TraceLevel") int RunOptions_TraceLevel_TraceLevel_MAX();
@Namespace("tensorflow") @MemberGetter public static native int RunOptions_TraceLevel_TraceLevel_ARRAYSIZE();
@Namespace("tensorflow") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer RunOptions_TraceLevel_descriptor();
@Namespace("tensorflow") public static native @StdString BytePointer RunOptions_TraceLevel_Name(@Cast("tensorflow::RunOptions_TraceLevel") int value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::RunOptions_TraceLevel*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString String name, @Cast("tensorflow::RunOptions_TraceLevel*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::RunOptions_TraceLevel*") int... value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString String name, @Cast("tensorflow::RunOptions_TraceLevel*") IntPointer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString BytePointer name, @Cast("tensorflow::RunOptions_TraceLevel*") IntBuffer value);
@Namespace("tensorflow") public static native @Cast("bool") boolean RunOptions_TraceLevel_Parse(
@StdString String name, @Cast("tensorflow::RunOptions_TraceLevel*") int... value);
// ===================================================================
@Namespace("tensorflow") @NoOffset public static class GPUOptions_Experimental_VirtualDevices extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public GPUOptions_Experimental_VirtualDevices(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public GPUOptions_Experimental_VirtualDevices(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public GPUOptions_Experimental_VirtualDevices position(long position) {
return (GPUOptions_Experimental_VirtualDevices)super.position(position);
}
public GPUOptions_Experimental_VirtualDevices() { super((Pointer)null); allocate(); }
private native void allocate();
public GPUOptions_Experimental_VirtualDevices(@Const @ByRef GPUOptions_Experimental_VirtualDevices from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef GPUOptions_Experimental_VirtualDevices from);
public native @ByRef @Name("operator =") GPUOptions_Experimental_VirtualDevices put(@Const @ByRef GPUOptions_Experimental_VirtualDevices from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef GPUOptions_Experimental_VirtualDevices default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const GPUOptions_Experimental_VirtualDevices internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(GPUOptions_Experimental_VirtualDevices other);
public native void Swap(GPUOptions_Experimental_VirtualDevices other);
// implements Message ----------------------------------------------
public native GPUOptions_Experimental_VirtualDevices New();
public native GPUOptions_Experimental_VirtualDevices New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef GPUOptions_Experimental_VirtualDevices from);
public native void MergeFrom(@Const @ByRef GPUOptions_Experimental_VirtualDevices from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated float memory_limit_mb = 1;
public native int memory_limit_mb_size();
public native void clear_memory_limit_mb();
@MemberGetter public static native int kMemoryLimitMbFieldNumber();
public static final int kMemoryLimitMbFieldNumber = kMemoryLimitMbFieldNumber();
public native float memory_limit_mb(int index);
public native void set_memory_limit_mb(int index, float value);
public native void add_memory_limit_mb(float value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class GPUOptions_Experimental extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public GPUOptions_Experimental(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public GPUOptions_Experimental(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public GPUOptions_Experimental position(long position) {
return (GPUOptions_Experimental)super.position(position);
}
public GPUOptions_Experimental() { super((Pointer)null); allocate(); }
private native void allocate();
public GPUOptions_Experimental(@Const @ByRef GPUOptions_Experimental from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef GPUOptions_Experimental from);
public native @ByRef @Name("operator =") GPUOptions_Experimental put(@Const @ByRef GPUOptions_Experimental from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef GPUOptions_Experimental default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const GPUOptions_Experimental internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(GPUOptions_Experimental other);
public native void Swap(GPUOptions_Experimental other);
// implements Message ----------------------------------------------
public native GPUOptions_Experimental New();
public native GPUOptions_Experimental New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef GPUOptions_Experimental from);
public native void MergeFrom(@Const @ByRef GPUOptions_Experimental from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
public native int virtual_devices_size();
public native void clear_virtual_devices();
@MemberGetter public static native int kVirtualDevicesFieldNumber();
public static final int kVirtualDevicesFieldNumber = kVirtualDevicesFieldNumber();
public native GPUOptions_Experimental_VirtualDevices mutable_virtual_devices(int index);
public native @Const @ByRef GPUOptions_Experimental_VirtualDevices virtual_devices(int index);
public native GPUOptions_Experimental_VirtualDevices add_virtual_devices();
// bool use_unified_memory = 2;
public native void clear_use_unified_memory();
@MemberGetter public static native int kUseUnifiedMemoryFieldNumber();
public static final int kUseUnifiedMemoryFieldNumber = kUseUnifiedMemoryFieldNumber();
public native @Cast("bool") boolean use_unified_memory();
public native void set_use_unified_memory(@Cast("bool") boolean value);
// int32 num_dev_to_dev_copy_streams = 3;
public native void clear_num_dev_to_dev_copy_streams();
@MemberGetter public static native int kNumDevToDevCopyStreamsFieldNumber();
public static final int kNumDevToDevCopyStreamsFieldNumber = kNumDevToDevCopyStreamsFieldNumber();
public native @Cast("google::protobuf::int32") int num_dev_to_dev_copy_streams();
public native void set_num_dev_to_dev_copy_streams(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class GPUOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public GPUOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public GPUOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public GPUOptions position(long position) {
return (GPUOptions)super.position(position);
}
public GPUOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public GPUOptions(@Const @ByRef GPUOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef GPUOptions from);
public native @ByRef @Name("operator =") GPUOptions put(@Const @ByRef GPUOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef GPUOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const GPUOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(GPUOptions other);
public native void Swap(GPUOptions other);
// implements Message ----------------------------------------------
public native GPUOptions New();
public native GPUOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef GPUOptions from);
public native void MergeFrom(@Const @ByRef GPUOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string allocator_type = 2;
public native void clear_allocator_type();
@MemberGetter public static native int kAllocatorTypeFieldNumber();
public static final int kAllocatorTypeFieldNumber = kAllocatorTypeFieldNumber();
public native @StdString BytePointer allocator_type();
public native void set_allocator_type(@StdString BytePointer value);
public native void set_allocator_type(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_allocator_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_allocator_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_allocator_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_allocator_type();
public native void set_allocated_allocator_type(@StdString @Cast({"char*", "std::string*"}) BytePointer allocator_type);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_allocator_type();
public native @Deprecated void unsafe_arena_set_allocated_allocator_type(
@StdString @Cast({"char*", "std::string*"}) BytePointer allocator_type);
// string visible_device_list = 5;
public native void clear_visible_device_list();
@MemberGetter public static native int kVisibleDeviceListFieldNumber();
public static final int kVisibleDeviceListFieldNumber = kVisibleDeviceListFieldNumber();
public native @StdString BytePointer visible_device_list();
public native void set_visible_device_list(@StdString BytePointer value);
public native void set_visible_device_list(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_visible_device_list(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_visible_device_list(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_visible_device_list();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_visible_device_list();
public native void set_allocated_visible_device_list(@StdString @Cast({"char*", "std::string*"}) BytePointer visible_device_list);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_visible_device_list();
public native @Deprecated void unsafe_arena_set_allocated_visible_device_list(
@StdString @Cast({"char*", "std::string*"}) BytePointer visible_device_list);
// .tensorflow.GPUOptions.Experimental experimental = 9;
public native @Cast("bool") boolean has_experimental();
public native void clear_experimental();
@MemberGetter public static native int kExperimentalFieldNumber();
public static final int kExperimentalFieldNumber = kExperimentalFieldNumber();
public native @Const @ByRef GPUOptions_Experimental experimental();
public native GPUOptions_Experimental release_experimental();
public native GPUOptions_Experimental mutable_experimental();
public native void set_allocated_experimental(GPUOptions_Experimental experimental);
public native void unsafe_arena_set_allocated_experimental(
GPUOptions_Experimental experimental);
public native GPUOptions_Experimental unsafe_arena_release_experimental();
// double per_process_gpu_memory_fraction = 1;
public native void clear_per_process_gpu_memory_fraction();
@MemberGetter public static native int kPerProcessGpuMemoryFractionFieldNumber();
public static final int kPerProcessGpuMemoryFractionFieldNumber = kPerProcessGpuMemoryFractionFieldNumber();
public native double per_process_gpu_memory_fraction();
public native void set_per_process_gpu_memory_fraction(double value);
// int64 deferred_deletion_bytes = 3;
public native void clear_deferred_deletion_bytes();
@MemberGetter public static native int kDeferredDeletionBytesFieldNumber();
public static final int kDeferredDeletionBytesFieldNumber = kDeferredDeletionBytesFieldNumber();
public native @Cast("google::protobuf::int64") long deferred_deletion_bytes();
public native void set_deferred_deletion_bytes(@Cast("google::protobuf::int64") long value);
// int32 polling_active_delay_usecs = 6;
public native void clear_polling_active_delay_usecs();
@MemberGetter public static native int kPollingActiveDelayUsecsFieldNumber();
public static final int kPollingActiveDelayUsecsFieldNumber = kPollingActiveDelayUsecsFieldNumber();
public native @Cast("google::protobuf::int32") int polling_active_delay_usecs();
public native void set_polling_active_delay_usecs(@Cast("google::protobuf::int32") int value);
// bool allow_growth = 4;
public native void clear_allow_growth();
@MemberGetter public static native int kAllowGrowthFieldNumber();
public static final int kAllowGrowthFieldNumber = kAllowGrowthFieldNumber();
public native @Cast("bool") boolean allow_growth();
public native void set_allow_growth(@Cast("bool") boolean value);
// bool force_gpu_compatible = 8;
public native void clear_force_gpu_compatible();
@MemberGetter public static native int kForceGpuCompatibleFieldNumber();
public static final int kForceGpuCompatibleFieldNumber = kForceGpuCompatibleFieldNumber();
public native @Cast("bool") boolean force_gpu_compatible();
public native void set_force_gpu_compatible(@Cast("bool") boolean value);
// int32 polling_inactive_delay_msecs = 7;
public native void clear_polling_inactive_delay_msecs();
@MemberGetter public static native int kPollingInactiveDelayMsecsFieldNumber();
public static final int kPollingInactiveDelayMsecsFieldNumber = kPollingInactiveDelayMsecsFieldNumber();
public native @Cast("google::protobuf::int32") int polling_inactive_delay_msecs();
public native void set_polling_inactive_delay_msecs(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class OptimizerOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public OptimizerOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public OptimizerOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public OptimizerOptions position(long position) {
return (OptimizerOptions)super.position(position);
}
public OptimizerOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public OptimizerOptions(@Const @ByRef OptimizerOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef OptimizerOptions from);
public native @ByRef @Name("operator =") OptimizerOptions put(@Const @ByRef OptimizerOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef OptimizerOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const OptimizerOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(OptimizerOptions other);
public native void Swap(OptimizerOptions other);
// implements Message ----------------------------------------------
public native OptimizerOptions New();
public native OptimizerOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef OptimizerOptions from);
public native void MergeFrom(@Const @ByRef OptimizerOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::Level") int L1();
public static final int L1 = L1();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::Level") int L0();
public static final int L0 = L0();
public static native @Cast("bool") boolean Level_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::Level") int Level_MIN();
public static final int Level_MIN = Level_MIN();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::Level") int Level_MAX();
public static final int Level_MAX = Level_MAX();
@MemberGetter public static native int Level_ARRAYSIZE();
public static final int Level_ARRAYSIZE = Level_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Level_descriptor();
public static native @StdString BytePointer Level_Name(@Cast("tensorflow::OptimizerOptions::Level") int value);
public static native @Cast("bool") boolean Level_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::Level*") IntPointer value);
public static native @Cast("bool") boolean Level_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::Level*") IntBuffer value);
public static native @Cast("bool") boolean Level_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::Level*") int... value);
public static native @Cast("bool") boolean Level_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::Level*") IntPointer value);
public static native @Cast("bool") boolean Level_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::Level*") IntBuffer value);
public static native @Cast("bool") boolean Level_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::Level*") int... value);
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int DEFAULT();
public static final int DEFAULT = DEFAULT();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int OFF();
public static final int OFF = OFF();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int ON_1();
public static final int ON_1 = ON_1();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int ON_2();
public static final int ON_2 = ON_2();
public static native @Cast("bool") boolean GlobalJitLevel_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int GlobalJitLevel_MIN();
public static final int GlobalJitLevel_MIN = GlobalJitLevel_MIN();
@MemberGetter public static native @Cast("const tensorflow::OptimizerOptions::GlobalJitLevel") int GlobalJitLevel_MAX();
public static final int GlobalJitLevel_MAX = GlobalJitLevel_MAX();
@MemberGetter public static native int GlobalJitLevel_ARRAYSIZE();
public static final int GlobalJitLevel_ARRAYSIZE = GlobalJitLevel_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer GlobalJitLevel_descriptor();
public static native @StdString BytePointer GlobalJitLevel_Name(@Cast("tensorflow::OptimizerOptions::GlobalJitLevel") int value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") IntPointer value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") IntBuffer value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") int... value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") IntPointer value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") IntBuffer value);
public static native @Cast("bool") boolean GlobalJitLevel_Parse(@StdString String name,
@Cast("tensorflow::OptimizerOptions::GlobalJitLevel*") int... value);
// accessors -------------------------------------------------------
// bool do_common_subexpression_elimination = 1;
public native void clear_do_common_subexpression_elimination();
@MemberGetter public static native int kDoCommonSubexpressionEliminationFieldNumber();
public static final int kDoCommonSubexpressionEliminationFieldNumber = kDoCommonSubexpressionEliminationFieldNumber();
public native @Cast("bool") boolean do_common_subexpression_elimination();
public native void set_do_common_subexpression_elimination(@Cast("bool") boolean value);
// bool do_constant_folding = 2;
public native void clear_do_constant_folding();
@MemberGetter public static native int kDoConstantFoldingFieldNumber();
public static final int kDoConstantFoldingFieldNumber = kDoConstantFoldingFieldNumber();
public native @Cast("bool") boolean do_constant_folding();
public native void set_do_constant_folding(@Cast("bool") boolean value);
// bool do_function_inlining = 4;
public native void clear_do_function_inlining();
@MemberGetter public static native int kDoFunctionInliningFieldNumber();
public static final int kDoFunctionInliningFieldNumber = kDoFunctionInliningFieldNumber();
public native @Cast("bool") boolean do_function_inlining();
public native void set_do_function_inlining(@Cast("bool") boolean value);
// .tensorflow.OptimizerOptions.Level opt_level = 3;
public native void clear_opt_level();
@MemberGetter public static native int kOptLevelFieldNumber();
public static final int kOptLevelFieldNumber = kOptLevelFieldNumber();
public native @Cast("tensorflow::OptimizerOptions_Level") int opt_level();
public native void set_opt_level(@Cast("tensorflow::OptimizerOptions_Level") int value);
// int64 max_folded_constant_in_bytes = 6;
public native void clear_max_folded_constant_in_bytes();
@MemberGetter public static native int kMaxFoldedConstantInBytesFieldNumber();
public static final int kMaxFoldedConstantInBytesFieldNumber = kMaxFoldedConstantInBytesFieldNumber();
public native @Cast("google::protobuf::int64") long max_folded_constant_in_bytes();
public native void set_max_folded_constant_in_bytes(@Cast("google::protobuf::int64") long value);
// .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
public native void clear_global_jit_level();
@MemberGetter public static native int kGlobalJitLevelFieldNumber();
public static final int kGlobalJitLevelFieldNumber = kGlobalJitLevelFieldNumber();
public native @Cast("tensorflow::OptimizerOptions_GlobalJitLevel") int global_jit_level();
public native void set_global_jit_level(@Cast("tensorflow::OptimizerOptions_GlobalJitLevel") int value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class GraphOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public GraphOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public GraphOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public GraphOptions position(long position) {
return (GraphOptions)super.position(position);
}
public GraphOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public GraphOptions(@Const @ByRef GraphOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef GraphOptions from);
public native @ByRef @Name("operator =") GraphOptions put(@Const @ByRef GraphOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef GraphOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const GraphOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(GraphOptions other);
public native void Swap(GraphOptions other);
// implements Message ----------------------------------------------
public native GraphOptions New();
public native GraphOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef GraphOptions from);
public native void MergeFrom(@Const @ByRef GraphOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// .tensorflow.OptimizerOptions optimizer_options = 3;
public native @Cast("bool") boolean has_optimizer_options();
public native void clear_optimizer_options();
@MemberGetter public static native int kOptimizerOptionsFieldNumber();
public static final int kOptimizerOptionsFieldNumber = kOptimizerOptionsFieldNumber();
public native @Const @ByRef OptimizerOptions optimizer_options();
public native OptimizerOptions release_optimizer_options();
public native OptimizerOptions mutable_optimizer_options();
public native void set_allocated_optimizer_options(OptimizerOptions optimizer_options);
public native void unsafe_arena_set_allocated_optimizer_options(
OptimizerOptions optimizer_options);
public native OptimizerOptions unsafe_arena_release_optimizer_options();
// .tensorflow.RewriterConfig rewrite_options = 10;
public native @Cast("bool") boolean has_rewrite_options();
public native void clear_rewrite_options();
@MemberGetter public static native int kRewriteOptionsFieldNumber();
public static final int kRewriteOptionsFieldNumber = kRewriteOptionsFieldNumber();
public native @Const @ByRef RewriterConfig rewrite_options();
public native RewriterConfig release_rewrite_options();
public native RewriterConfig mutable_rewrite_options();
public native void set_allocated_rewrite_options(RewriterConfig rewrite_options);
public native void unsafe_arena_set_allocated_rewrite_options(
RewriterConfig rewrite_options);
public native RewriterConfig unsafe_arena_release_rewrite_options();
// int64 build_cost_model = 4;
public native void clear_build_cost_model();
@MemberGetter public static native int kBuildCostModelFieldNumber();
public static final int kBuildCostModelFieldNumber = kBuildCostModelFieldNumber();
public native @Cast("google::protobuf::int64") long build_cost_model();
public native void set_build_cost_model(@Cast("google::protobuf::int64") long value);
// bool enable_recv_scheduling = 2;
public native void clear_enable_recv_scheduling();
@MemberGetter public static native int kEnableRecvSchedulingFieldNumber();
public static final int kEnableRecvSchedulingFieldNumber = kEnableRecvSchedulingFieldNumber();
public native @Cast("bool") boolean enable_recv_scheduling();
public native void set_enable_recv_scheduling(@Cast("bool") boolean value);
// bool infer_shapes = 5;
public native void clear_infer_shapes();
@MemberGetter public static native int kInferShapesFieldNumber();
public static final int kInferShapesFieldNumber = kInferShapesFieldNumber();
public native @Cast("bool") boolean infer_shapes();
public native void set_infer_shapes(@Cast("bool") boolean value);
// bool place_pruned_graph = 6;
public native void clear_place_pruned_graph();
@MemberGetter public static native int kPlacePrunedGraphFieldNumber();
public static final int kPlacePrunedGraphFieldNumber = kPlacePrunedGraphFieldNumber();
public native @Cast("bool") boolean place_pruned_graph();
public native void set_place_pruned_graph(@Cast("bool") boolean value);
// bool enable_bfloat16_sendrecv = 7;
public native void clear_enable_bfloat16_sendrecv();
@MemberGetter public static native int kEnableBfloat16SendrecvFieldNumber();
public static final int kEnableBfloat16SendrecvFieldNumber = kEnableBfloat16SendrecvFieldNumber();
public native @Cast("bool") boolean enable_bfloat16_sendrecv();
public native void set_enable_bfloat16_sendrecv(@Cast("bool") boolean value);
// int32 timeline_step = 8;
public native void clear_timeline_step();
@MemberGetter public static native int kTimelineStepFieldNumber();
public static final int kTimelineStepFieldNumber = kTimelineStepFieldNumber();
public native @Cast("google::protobuf::int32") int timeline_step();
public native void set_timeline_step(@Cast("google::protobuf::int32") int value);
// int64 build_cost_model_after = 9;
public native void clear_build_cost_model_after();
@MemberGetter public static native int kBuildCostModelAfterFieldNumber();
public static final int kBuildCostModelAfterFieldNumber = kBuildCostModelAfterFieldNumber();
public native @Cast("google::protobuf::int64") long build_cost_model_after();
public native void set_build_cost_model_after(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class ThreadPoolOptionProto extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ThreadPoolOptionProto(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ThreadPoolOptionProto(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ThreadPoolOptionProto position(long position) {
return (ThreadPoolOptionProto)super.position(position);
}
public ThreadPoolOptionProto() { super((Pointer)null); allocate(); }
private native void allocate();
public ThreadPoolOptionProto(@Const @ByRef ThreadPoolOptionProto from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef ThreadPoolOptionProto from);
public native @ByRef @Name("operator =") ThreadPoolOptionProto put(@Const @ByRef ThreadPoolOptionProto from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ThreadPoolOptionProto default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const ThreadPoolOptionProto internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(ThreadPoolOptionProto other);
public native void Swap(ThreadPoolOptionProto other);
// implements Message ----------------------------------------------
public native ThreadPoolOptionProto New();
public native ThreadPoolOptionProto New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef ThreadPoolOptionProto from);
public native void MergeFrom(@Const @ByRef ThreadPoolOptionProto from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string global_name = 2;
public native void clear_global_name();
@MemberGetter public static native int kGlobalNameFieldNumber();
public static final int kGlobalNameFieldNumber = kGlobalNameFieldNumber();
public native @StdString BytePointer global_name();
public native void set_global_name(@StdString BytePointer value);
public native void set_global_name(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_global_name(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_global_name(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_global_name();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_global_name();
public native void set_allocated_global_name(@StdString @Cast({"char*", "std::string*"}) BytePointer global_name);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_global_name();
public native @Deprecated void unsafe_arena_set_allocated_global_name(
@StdString @Cast({"char*", "std::string*"}) BytePointer global_name);
// int32 num_threads = 1;
public native void clear_num_threads();
@MemberGetter public static native int kNumThreadsFieldNumber();
public static final int kNumThreadsFieldNumber = kNumThreadsFieldNumber();
public native @Cast("google::protobuf::int32") int num_threads();
public native void set_num_threads(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RPCOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RPCOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RPCOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RPCOptions position(long position) {
return (RPCOptions)super.position(position);
}
public RPCOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public RPCOptions(@Const @ByRef RPCOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RPCOptions from);
public native @ByRef @Name("operator =") RPCOptions put(@Const @ByRef RPCOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RPCOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RPCOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RPCOptions other);
public native void Swap(RPCOptions other);
// implements Message ----------------------------------------------
public native RPCOptions New();
public native RPCOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RPCOptions from);
public native void MergeFrom(@Const @ByRef RPCOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// bool use_rpc_for_inprocess_master = 1;
public native void clear_use_rpc_for_inprocess_master();
@MemberGetter public static native int kUseRpcForInprocessMasterFieldNumber();
public static final int kUseRpcForInprocessMasterFieldNumber = kUseRpcForInprocessMasterFieldNumber();
public native @Cast("bool") boolean use_rpc_for_inprocess_master();
public native void set_use_rpc_for_inprocess_master(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class ConfigProto_Experimental extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConfigProto_Experimental(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ConfigProto_Experimental(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ConfigProto_Experimental position(long position) {
return (ConfigProto_Experimental)super.position(position);
}
public ConfigProto_Experimental() { super((Pointer)null); allocate(); }
private native void allocate();
public ConfigProto_Experimental(@Const @ByRef ConfigProto_Experimental from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef ConfigProto_Experimental from);
public native @ByRef @Name("operator =") ConfigProto_Experimental put(@Const @ByRef ConfigProto_Experimental from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ConfigProto_Experimental default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const ConfigProto_Experimental internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(ConfigProto_Experimental other);
public native void Swap(ConfigProto_Experimental other);
// implements Message ----------------------------------------------
public native ConfigProto_Experimental New();
public native ConfigProto_Experimental New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef ConfigProto_Experimental from);
public native void MergeFrom(@Const @ByRef ConfigProto_Experimental from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string collective_group_leader = 1;
public native void clear_collective_group_leader();
@MemberGetter public static native int kCollectiveGroupLeaderFieldNumber();
public static final int kCollectiveGroupLeaderFieldNumber = kCollectiveGroupLeaderFieldNumber();
public native @StdString BytePointer collective_group_leader();
public native void set_collective_group_leader(@StdString BytePointer value);
public native void set_collective_group_leader(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_collective_group_leader(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_collective_group_leader(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_collective_group_leader();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_collective_group_leader();
public native void set_allocated_collective_group_leader(@StdString @Cast({"char*", "std::string*"}) BytePointer collective_group_leader);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_collective_group_leader();
public native @Deprecated void unsafe_arena_set_allocated_collective_group_leader(
@StdString @Cast({"char*", "std::string*"}) BytePointer collective_group_leader);
// string executor_type = 3;
public native void clear_executor_type();
@MemberGetter public static native int kExecutorTypeFieldNumber();
public static final int kExecutorTypeFieldNumber = kExecutorTypeFieldNumber();
public native @StdString BytePointer executor_type();
public native void set_executor_type(@StdString BytePointer value);
public native void set_executor_type(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_executor_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_executor_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_executor_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_executor_type();
public native void set_allocated_executor_type(@StdString @Cast({"char*", "std::string*"}) BytePointer executor_type);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_executor_type();
public native @Deprecated void unsafe_arena_set_allocated_executor_type(
@StdString @Cast({"char*", "std::string*"}) BytePointer executor_type);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class ConfigProto extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConfigProto(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ConfigProto(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ConfigProto position(long position) {
return (ConfigProto)super.position(position);
}
public ConfigProto() { super((Pointer)null); allocate(); }
private native void allocate();
public ConfigProto(@Const @ByRef ConfigProto from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef ConfigProto from);
public native @ByRef @Name("operator =") ConfigProto put(@Const @ByRef ConfigProto from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ConfigProto default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const ConfigProto internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(ConfigProto other);
public native void Swap(ConfigProto other);
// implements Message ----------------------------------------------
public native ConfigProto New();
public native ConfigProto New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef ConfigProto from);
public native void MergeFrom(@Const @ByRef ConfigProto from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// map device_count = 1;
public native int device_count_size();
public native void clear_device_count();
@MemberGetter public static native int kDeviceCountFieldNumber();
public static final int kDeviceCountFieldNumber = kDeviceCountFieldNumber();
public native @Const @ByRef StringIntMap device_count();
public native StringIntMap mutable_device_count();
// repeated string device_filters = 4;
public native int device_filters_size();
public native void clear_device_filters();
@MemberGetter public static native int kDeviceFiltersFieldNumber();
public static final int kDeviceFiltersFieldNumber = kDeviceFiltersFieldNumber();
public native @StdString BytePointer device_filters(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_device_filters(int index);
public native void set_device_filters(int index, @StdString BytePointer value);
public native void set_device_filters(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_device_filters(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_device_filters(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_device_filters();
public native void add_device_filters(@StdString BytePointer value);
public native void add_device_filters(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_device_filters(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_device_filters(String value, @Cast("size_t") long size);
// repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
public native int session_inter_op_thread_pool_size();
public native void clear_session_inter_op_thread_pool();
@MemberGetter public static native int kSessionInterOpThreadPoolFieldNumber();
public static final int kSessionInterOpThreadPoolFieldNumber = kSessionInterOpThreadPoolFieldNumber();
public native ThreadPoolOptionProto mutable_session_inter_op_thread_pool(int index);
public native @Const @ByRef ThreadPoolOptionProto session_inter_op_thread_pool(int index);
public native ThreadPoolOptionProto add_session_inter_op_thread_pool();
// .tensorflow.GPUOptions gpu_options = 6;
public native @Cast("bool") boolean has_gpu_options();
public native void clear_gpu_options();
@MemberGetter public static native int kGpuOptionsFieldNumber();
public static final int kGpuOptionsFieldNumber = kGpuOptionsFieldNumber();
public native @Const @ByRef GPUOptions gpu_options();
public native GPUOptions release_gpu_options();
public native GPUOptions mutable_gpu_options();
public native void set_allocated_gpu_options(GPUOptions gpu_options);
public native void unsafe_arena_set_allocated_gpu_options(
GPUOptions gpu_options);
public native GPUOptions unsafe_arena_release_gpu_options();
// .tensorflow.GraphOptions graph_options = 10;
public native @Cast("bool") boolean has_graph_options();
public native void clear_graph_options();
@MemberGetter public static native int kGraphOptionsFieldNumber();
public static final int kGraphOptionsFieldNumber = kGraphOptionsFieldNumber();
public native @Const @ByRef GraphOptions graph_options();
public native GraphOptions release_graph_options();
public native GraphOptions mutable_graph_options();
public native void set_allocated_graph_options(GraphOptions graph_options);
public native void unsafe_arena_set_allocated_graph_options(
GraphOptions graph_options);
public native GraphOptions unsafe_arena_release_graph_options();
// .tensorflow.RPCOptions rpc_options = 13;
public native @Cast("bool") boolean has_rpc_options();
public native void clear_rpc_options();
@MemberGetter public static native int kRpcOptionsFieldNumber();
public static final int kRpcOptionsFieldNumber = kRpcOptionsFieldNumber();
public native @Const @ByRef RPCOptions rpc_options();
public native RPCOptions release_rpc_options();
public native RPCOptions mutable_rpc_options();
public native void set_allocated_rpc_options(RPCOptions rpc_options);
public native void unsafe_arena_set_allocated_rpc_options(
RPCOptions rpc_options);
public native RPCOptions unsafe_arena_release_rpc_options();
// .tensorflow.ClusterDef cluster_def = 14;
public native @Cast("bool") boolean has_cluster_def();
public native void clear_cluster_def();
@MemberGetter public static native int kClusterDefFieldNumber();
public static final int kClusterDefFieldNumber = kClusterDefFieldNumber();
public native @Const @ByRef ClusterDef cluster_def();
public native ClusterDef release_cluster_def();
public native ClusterDef mutable_cluster_def();
public native void set_allocated_cluster_def(ClusterDef cluster_def);
public native void unsafe_arena_set_allocated_cluster_def(
ClusterDef cluster_def);
public native ClusterDef unsafe_arena_release_cluster_def();
// .tensorflow.ConfigProto.Experimental experimental = 16;
public native @Cast("bool") boolean has_experimental();
public native void clear_experimental();
@MemberGetter public static native int kExperimentalFieldNumber();
public static final int kExperimentalFieldNumber = kExperimentalFieldNumber();
public native @Const @ByRef ConfigProto_Experimental experimental();
public native ConfigProto_Experimental release_experimental();
public native ConfigProto_Experimental mutable_experimental();
public native void set_allocated_experimental(ConfigProto_Experimental experimental);
public native void unsafe_arena_set_allocated_experimental(
ConfigProto_Experimental experimental);
public native ConfigProto_Experimental unsafe_arena_release_experimental();
// int32 intra_op_parallelism_threads = 2;
public native void clear_intra_op_parallelism_threads();
@MemberGetter public static native int kIntraOpParallelismThreadsFieldNumber();
public static final int kIntraOpParallelismThreadsFieldNumber = kIntraOpParallelismThreadsFieldNumber();
public native @Cast("google::protobuf::int32") int intra_op_parallelism_threads();
public native void set_intra_op_parallelism_threads(@Cast("google::protobuf::int32") int value);
// int32 placement_period = 3;
public native void clear_placement_period();
@MemberGetter public static native int kPlacementPeriodFieldNumber();
public static final int kPlacementPeriodFieldNumber = kPlacementPeriodFieldNumber();
public native @Cast("google::protobuf::int32") int placement_period();
public native void set_placement_period(@Cast("google::protobuf::int32") int value);
// int32 inter_op_parallelism_threads = 5;
public native void clear_inter_op_parallelism_threads();
@MemberGetter public static native int kInterOpParallelismThreadsFieldNumber();
public static final int kInterOpParallelismThreadsFieldNumber = kInterOpParallelismThreadsFieldNumber();
public native @Cast("google::protobuf::int32") int inter_op_parallelism_threads();
public native void set_inter_op_parallelism_threads(@Cast("google::protobuf::int32") int value);
// bool use_per_session_threads = 9;
public native void clear_use_per_session_threads();
@MemberGetter public static native int kUsePerSessionThreadsFieldNumber();
public static final int kUsePerSessionThreadsFieldNumber = kUsePerSessionThreadsFieldNumber();
public native @Cast("bool") boolean use_per_session_threads();
public native void set_use_per_session_threads(@Cast("bool") boolean value);
// bool allow_soft_placement = 7;
public native void clear_allow_soft_placement();
@MemberGetter public static native int kAllowSoftPlacementFieldNumber();
public static final int kAllowSoftPlacementFieldNumber = kAllowSoftPlacementFieldNumber();
public native @Cast("bool") boolean allow_soft_placement();
public native void set_allow_soft_placement(@Cast("bool") boolean value);
// bool log_device_placement = 8;
public native void clear_log_device_placement();
@MemberGetter public static native int kLogDevicePlacementFieldNumber();
public static final int kLogDevicePlacementFieldNumber = kLogDevicePlacementFieldNumber();
public native @Cast("bool") boolean log_device_placement();
public native void set_log_device_placement(@Cast("bool") boolean value);
// bool isolate_session_state = 15;
public native void clear_isolate_session_state();
@MemberGetter public static native int kIsolateSessionStateFieldNumber();
public static final int kIsolateSessionStateFieldNumber = kIsolateSessionStateFieldNumber();
public native @Cast("bool") boolean isolate_session_state();
public native void set_isolate_session_state(@Cast("bool") boolean value);
// int64 operation_timeout_in_ms = 11;
public native void clear_operation_timeout_in_ms();
@MemberGetter public static native int kOperationTimeoutInMsFieldNumber();
public static final int kOperationTimeoutInMsFieldNumber = kOperationTimeoutInMsFieldNumber();
public native @Cast("google::protobuf::int64") long operation_timeout_in_ms();
public native void set_operation_timeout_in_ms(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RunOptions_Experimental extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RunOptions_Experimental(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RunOptions_Experimental(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RunOptions_Experimental position(long position) {
return (RunOptions_Experimental)super.position(position);
}
public RunOptions_Experimental() { super((Pointer)null); allocate(); }
private native void allocate();
public RunOptions_Experimental(@Const @ByRef RunOptions_Experimental from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RunOptions_Experimental from);
public native @ByRef @Name("operator =") RunOptions_Experimental put(@Const @ByRef RunOptions_Experimental from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RunOptions_Experimental default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RunOptions_Experimental internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RunOptions_Experimental other);
public native void Swap(RunOptions_Experimental other);
// implements Message ----------------------------------------------
public native RunOptions_Experimental New();
public native RunOptions_Experimental New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RunOptions_Experimental from);
public native void MergeFrom(@Const @ByRef RunOptions_Experimental from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// int64 collective_graph_key = 1;
public native void clear_collective_graph_key();
@MemberGetter public static native int kCollectiveGraphKeyFieldNumber();
public static final int kCollectiveGraphKeyFieldNumber = kCollectiveGraphKeyFieldNumber();
public native @Cast("google::protobuf::int64") long collective_graph_key();
public native void set_collective_graph_key(@Cast("google::protobuf::int64") long value);
// bool use_run_handler_pool = 2;
public native void clear_use_run_handler_pool();
@MemberGetter public static native int kUseRunHandlerPoolFieldNumber();
public static final int kUseRunHandlerPoolFieldNumber = kUseRunHandlerPoolFieldNumber();
public native @Cast("bool") boolean use_run_handler_pool();
public native void set_use_run_handler_pool(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RunOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RunOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RunOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RunOptions position(long position) {
return (RunOptions)super.position(position);
}
public RunOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public RunOptions(@Const @ByRef RunOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RunOptions from);
public native @ByRef @Name("operator =") RunOptions put(@Const @ByRef RunOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RunOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RunOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RunOptions other);
public native void Swap(RunOptions other);
// implements Message ----------------------------------------------
public native RunOptions New();
public native RunOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RunOptions from);
public native void MergeFrom(@Const @ByRef RunOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int NO_TRACE();
public static final int NO_TRACE = NO_TRACE();
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int SOFTWARE_TRACE();
public static final int SOFTWARE_TRACE = SOFTWARE_TRACE();
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int HARDWARE_TRACE();
public static final int HARDWARE_TRACE = HARDWARE_TRACE();
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int FULL_TRACE();
public static final int FULL_TRACE = FULL_TRACE();
public static native @Cast("bool") boolean TraceLevel_IsValid(int value);
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int TraceLevel_MIN();
public static final int TraceLevel_MIN = TraceLevel_MIN();
@MemberGetter public static native @Cast("const tensorflow::RunOptions::TraceLevel") int TraceLevel_MAX();
public static final int TraceLevel_MAX = TraceLevel_MAX();
@MemberGetter public static native int TraceLevel_ARRAYSIZE();
public static final int TraceLevel_ARRAYSIZE = TraceLevel_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer TraceLevel_descriptor();
public static native @StdString BytePointer TraceLevel_Name(@Cast("tensorflow::RunOptions::TraceLevel") int value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::RunOptions::TraceLevel*") IntPointer value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString String name,
@Cast("tensorflow::RunOptions::TraceLevel*") IntBuffer value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::RunOptions::TraceLevel*") int... value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString String name,
@Cast("tensorflow::RunOptions::TraceLevel*") IntPointer value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString BytePointer name,
@Cast("tensorflow::RunOptions::TraceLevel*") IntBuffer value);
public static native @Cast("bool") boolean TraceLevel_Parse(@StdString String name,
@Cast("tensorflow::RunOptions::TraceLevel*") int... value);
// accessors -------------------------------------------------------
// .tensorflow.DebugOptions debug_options = 6;
public native @Cast("bool") boolean has_debug_options();
public native void clear_debug_options();
@MemberGetter public static native int kDebugOptionsFieldNumber();
public static final int kDebugOptionsFieldNumber = kDebugOptionsFieldNumber();
public native @Const @ByRef DebugOptions debug_options();
public native DebugOptions release_debug_options();
public native DebugOptions mutable_debug_options();
public native void set_allocated_debug_options(DebugOptions debug_options);
public native void unsafe_arena_set_allocated_debug_options(
DebugOptions debug_options);
public native DebugOptions unsafe_arena_release_debug_options();
// .tensorflow.RunOptions.Experimental experimental = 8;
public native @Cast("bool") boolean has_experimental();
public native void clear_experimental();
@MemberGetter public static native int kExperimentalFieldNumber();
public static final int kExperimentalFieldNumber = kExperimentalFieldNumber();
public native @Const @ByRef RunOptions_Experimental experimental();
public native RunOptions_Experimental release_experimental();
public native RunOptions_Experimental mutable_experimental();
public native void set_allocated_experimental(RunOptions_Experimental experimental);
public native void unsafe_arena_set_allocated_experimental(
RunOptions_Experimental experimental);
public native RunOptions_Experimental unsafe_arena_release_experimental();
// int64 timeout_in_ms = 2;
public native void clear_timeout_in_ms();
@MemberGetter public static native int kTimeoutInMsFieldNumber();
public static final int kTimeoutInMsFieldNumber = kTimeoutInMsFieldNumber();
public native @Cast("google::protobuf::int64") long timeout_in_ms();
public native void set_timeout_in_ms(@Cast("google::protobuf::int64") long value);
// .tensorflow.RunOptions.TraceLevel trace_level = 1;
public native void clear_trace_level();
@MemberGetter public static native int kTraceLevelFieldNumber();
public static final int kTraceLevelFieldNumber = kTraceLevelFieldNumber();
public native @Cast("tensorflow::RunOptions_TraceLevel") int trace_level();
public native void set_trace_level(@Cast("tensorflow::RunOptions_TraceLevel") int value);
// int32 inter_op_thread_pool = 3;
public native void clear_inter_op_thread_pool();
@MemberGetter public static native int kInterOpThreadPoolFieldNumber();
public static final int kInterOpThreadPoolFieldNumber = kInterOpThreadPoolFieldNumber();
public native @Cast("google::protobuf::int32") int inter_op_thread_pool();
public native void set_inter_op_thread_pool(@Cast("google::protobuf::int32") int value);
// bool output_partition_graphs = 5;
public native void clear_output_partition_graphs();
@MemberGetter public static native int kOutputPartitionGraphsFieldNumber();
public static final int kOutputPartitionGraphsFieldNumber = kOutputPartitionGraphsFieldNumber();
public native @Cast("bool") boolean output_partition_graphs();
public native void set_output_partition_graphs(@Cast("bool") boolean value);
// bool report_tensor_allocations_upon_oom = 7;
public native void clear_report_tensor_allocations_upon_oom();
@MemberGetter public static native int kReportTensorAllocationsUponOomFieldNumber();
public static final int kReportTensorAllocationsUponOomFieldNumber = kReportTensorAllocationsUponOomFieldNumber();
public native @Cast("bool") boolean report_tensor_allocations_upon_oom();
public native void set_report_tensor_allocations_upon_oom(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class RunMetadata extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RunMetadata(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public RunMetadata(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public RunMetadata position(long position) {
return (RunMetadata)super.position(position);
}
public RunMetadata() { super((Pointer)null); allocate(); }
private native void allocate();
public RunMetadata(@Const @ByRef RunMetadata from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef RunMetadata from);
public native @ByRef @Name("operator =") RunMetadata put(@Const @ByRef RunMetadata from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef RunMetadata default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const RunMetadata internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(RunMetadata other);
public native void Swap(RunMetadata other);
// implements Message ----------------------------------------------
public native RunMetadata New();
public native RunMetadata New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef RunMetadata from);
public native void MergeFrom(@Const @ByRef RunMetadata from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .tensorflow.GraphDef partition_graphs = 3;
public native int partition_graphs_size();
public native void clear_partition_graphs();
@MemberGetter public static native int kPartitionGraphsFieldNumber();
public static final int kPartitionGraphsFieldNumber = kPartitionGraphsFieldNumber();
public native GraphDef mutable_partition_graphs(int index);
public native @Const @ByRef GraphDef partition_graphs(int index);
public native GraphDef add_partition_graphs();
// .tensorflow.StepStats step_stats = 1;
public native @Cast("bool") boolean has_step_stats();
public native void clear_step_stats();
@MemberGetter public static native int kStepStatsFieldNumber();
public static final int kStepStatsFieldNumber = kStepStatsFieldNumber();
public native @Const @ByRef StepStats step_stats();
public native StepStats release_step_stats();
public native StepStats mutable_step_stats();
public native void set_allocated_step_stats(StepStats step_stats);
public native void unsafe_arena_set_allocated_step_stats(
StepStats step_stats);
public native StepStats unsafe_arena_release_step_stats();
// .tensorflow.CostGraphDef cost_graph = 2;
public native @Cast("bool") boolean has_cost_graph();
public native void clear_cost_graph();
@MemberGetter public static native int kCostGraphFieldNumber();
public static final int kCostGraphFieldNumber = kCostGraphFieldNumber();
public native @Const @ByRef CostGraphDef cost_graph();
public native CostGraphDef release_cost_graph();
public native CostGraphDef mutable_cost_graph();
public native void set_allocated_cost_graph(CostGraphDef cost_graph);
public native void unsafe_arena_set_allocated_cost_graph(
CostGraphDef cost_graph);
public native CostGraphDef unsafe_arena_release_cost_graph();
}
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class TensorConnection extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TensorConnection(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public TensorConnection(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public TensorConnection position(long position) {
return (TensorConnection)super.position(position);
}
public TensorConnection() { super((Pointer)null); allocate(); }
private native void allocate();
public TensorConnection(@Const @ByRef TensorConnection from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef TensorConnection from);
public native @ByRef @Name("operator =") TensorConnection put(@Const @ByRef TensorConnection from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef TensorConnection default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const TensorConnection internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(TensorConnection other);
public native void Swap(TensorConnection other);
// implements Message ----------------------------------------------
public native TensorConnection New();
public native TensorConnection New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef TensorConnection from);
public native void MergeFrom(@Const @ByRef TensorConnection from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// string from_tensor = 1;
public native void clear_from_tensor();
@MemberGetter public static native int kFromTensorFieldNumber();
public static final int kFromTensorFieldNumber = kFromTensorFieldNumber();
public native @StdString BytePointer from_tensor();
public native void set_from_tensor(@StdString BytePointer value);
public native void set_from_tensor(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_from_tensor(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_from_tensor(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_from_tensor();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_from_tensor();
public native void set_allocated_from_tensor(@StdString @Cast({"char*", "std::string*"}) BytePointer from_tensor);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_from_tensor();
public native @Deprecated void unsafe_arena_set_allocated_from_tensor(
@StdString @Cast({"char*", "std::string*"}) BytePointer from_tensor);
// string to_tensor = 2;
public native void clear_to_tensor();
@MemberGetter public static native int kToTensorFieldNumber();
public static final int kToTensorFieldNumber = kToTensorFieldNumber();
public native @StdString BytePointer to_tensor();
public native void set_to_tensor(@StdString BytePointer value);
public native void set_to_tensor(@StdString String value);
// #if LANG_CXX11
// #endif
public native void set_to_tensor(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_to_tensor(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_to_tensor();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_to_tensor();
public native void set_allocated_to_tensor(@StdString @Cast({"char*", "std::string*"}) BytePointer to_tensor);
public native @Deprecated @StdString @Cast({"char*", "std::string*"}) BytePointer unsafe_arena_release_to_tensor();
public native @Deprecated void unsafe_arena_set_allocated_to_tensor(
@StdString @Cast({"char*", "std::string*"}) BytePointer to_tensor);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@Namespace("tensorflow") @NoOffset public static class CallableOptions extends MessageLite {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CallableOptions(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public CallableOptions(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public CallableOptions position(long position) {
return (CallableOptions)super.position(position);
}
public CallableOptions() { super((Pointer)null); allocate(); }
private native void allocate();
public CallableOptions(@Const @ByRef CallableOptions from) { super((Pointer)null); allocate(from); }
private native void allocate(@Const @ByRef CallableOptions from);
public native @ByRef @Name("operator =") CallableOptions put(@Const @ByRef CallableOptions from);
// #if LANG_CXX11
// #endif
public native Arena GetArena();
public native Pointer GetMaybeArenaPointer();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef CallableOptions default_instance();
public static native void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
public static native @Const CallableOptions internal_default_instance();
@MemberGetter public static native int kIndexInFileMessages();
public static final int kIndexInFileMessages = kIndexInFileMessages();
public native void UnsafeArenaSwap(CallableOptions other);
public native void Swap(CallableOptions other);
// implements Message ----------------------------------------------
public native CallableOptions New();
public native CallableOptions New(Arena arena);
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
public native void CopyFrom(@Const @ByRef CallableOptions from);
public native void MergeFrom(@Const @ByRef CallableOptions from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native @Cast("size_t") long ByteSizeLong();
public native @Cast("bool") boolean MergePartialFromCodedStream(
CodedInputStream input);
public native void SerializeWithCachedSizes(
CodedOutputStream output);
public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") BytePointer target);
public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") ByteBuffer target);
public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
@Cast("bool") boolean deterministic, @Cast("google::protobuf::uint8*") byte[] target);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string feed = 1;
public native int feed_size();
public native void clear_feed();
@MemberGetter public static native int kFeedFieldNumber();
public static final int kFeedFieldNumber = kFeedFieldNumber();
public native @StdString BytePointer feed(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_feed(int index);
public native void set_feed(int index, @StdString BytePointer value);
public native void set_feed(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_feed(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_feed(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_feed();
public native void add_feed(@StdString BytePointer value);
public native void add_feed(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_feed(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_feed(String value, @Cast("size_t") long size);
// repeated string fetch = 2;
public native int fetch_size();
public native void clear_fetch();
@MemberGetter public static native int kFetchFieldNumber();
public static final int kFetchFieldNumber = kFetchFieldNumber();
public native @StdString BytePointer fetch(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_fetch(int index);
public native void set_fetch(int index, @StdString BytePointer value);
public native void set_fetch(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_fetch(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_fetch(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_fetch();
public native void add_fetch(@StdString BytePointer value);
public native void add_fetch(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_fetch(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_fetch(String value, @Cast("size_t") long size);
// repeated string target = 3;
public native int target_size();
public native void clear_target();
@MemberGetter public static native int kTargetFieldNumber();
public static final int kTargetFieldNumber = kTargetFieldNumber();
public native @StdString BytePointer target(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_target(int index);
public native void set_target(int index, @StdString BytePointer value);
public native void set_target(int index, @StdString String value);
// #if LANG_CXX11
// #endif
public native void set_target(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_target(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_target();
public native void add_target(@StdString BytePointer value);
public native void add_target(@StdString String value);
// #if LANG_CXX11
// #endif
public native void add_target(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_target(String value, @Cast("size_t") long size);
// repeated .tensorflow.TensorConnection tensor_connection = 5;
public native int tensor_connection_size();
public native void clear_tensor_connection();
@MemberGetter public static native int kTensorConnectionFieldNumber();
public static final int kTensorConnectionFieldNumber = kTensorConnectionFieldNumber();
public native TensorConnection mutable_tensor_connection(int index);
public native @Const @ByRef TensorConnection tensor_connection(int index);
public native TensorConnection add_tensor_connection();
// map feed_devices = 6;
public native int feed_devices_size();
public native void clear_feed_devices();
@MemberGetter public static native int kFeedDevicesFieldNumber();
public static final int kFeedDevicesFieldNumber = kFeedDevicesFieldNumber();
public native @Const @ByRef StringStringMap feed_devices();
public native StringStringMap mutable_feed_devices();
// map fetch_devices = 7;
public native int fetch_devices_size();
public native void clear_fetch_devices();
@MemberGetter public static native int kFetchDevicesFieldNumber();
public static final int kFetchDevicesFieldNumber = kFetchDevicesFieldNumber();
public native @Const @ByRef StringStringMap fetch_devices();
public native StringStringMap mutable_fetch_devices();
// .tensorflow.RunOptions run_options = 4;
public native @Cast("bool") boolean has_run_options();
public native void clear_run_options();
@MemberGetter public static native int kRunOptionsFieldNumber();
public static final int kRunOptionsFieldNumber = kRunOptionsFieldNumber();
public native @Const @ByRef RunOptions run_options();
public native RunOptions release_run_options();
public native RunOptions mutable_run_options();
public native void set_allocated_run_options(RunOptions run_options);
public native void unsafe_arena_set_allocated_run_options(
RunOptions run_options);
public native RunOptions unsafe_arena_release_run_options();
// bool fetch_skip_sync = 8;
public native void clear_fetch_skip_sync();
@MemberGetter public static native int kFetchSkipSyncFieldNumber();
public static final int kFetchSkipSyncFieldNumber = kFetchSkipSyncFieldNumber();
public native @Cast("bool") boolean fetch_skip_sync();
public native void set_fetch_skip_sync(@Cast("bool") boolean value);
}
// ===================================================================
// ===================================================================
// #ifdef __GNUC__
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wstrict-aliasing"
// #endif // __GNUC__
// GPUOptions_Experimental_VirtualDevices
// repeated float memory_limit_mb = 1;
// -------------------------------------------------------------------
// GPUOptions_Experimental
// repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
// bool use_unified_memory = 2;
// int32 num_dev_to_dev_copy_streams = 3;
// -------------------------------------------------------------------
// GPUOptions
// double per_process_gpu_memory_fraction = 1;
// bool allow_growth = 4;
// string allocator_type = 2;
// #if LANG_CXX11
// #endif
// int64 deferred_deletion_bytes = 3;
// string visible_device_list = 5;
// #if LANG_CXX11
// #endif
// int32 polling_active_delay_usecs = 6;
// int32 polling_inactive_delay_msecs = 7;
// bool force_gpu_compatible = 8;
// .tensorflow.GPUOptions.Experimental experimental = 9;
// -------------------------------------------------------------------
// OptimizerOptions
// bool do_common_subexpression_elimination = 1;
// bool do_constant_folding = 2;
// int64 max_folded_constant_in_bytes = 6;
// bool do_function_inlining = 4;
// .tensorflow.OptimizerOptions.Level opt_level = 3;
// .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
// -------------------------------------------------------------------
// GraphOptions
// bool enable_recv_scheduling = 2;
// .tensorflow.OptimizerOptions optimizer_options = 3;
// int64 build_cost_model = 4;
// int64 build_cost_model_after = 9;
// bool infer_shapes = 5;
// bool place_pruned_graph = 6;
// bool enable_bfloat16_sendrecv = 7;
// int32 timeline_step = 8;
// .tensorflow.RewriterConfig rewrite_options = 10;
// -------------------------------------------------------------------
// ThreadPoolOptionProto
// int32 num_threads = 1;
// string global_name = 2;
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// RPCOptions
// bool use_rpc_for_inprocess_master = 1;
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// ConfigProto_Experimental
// string collective_group_leader = 1;
// #if LANG_CXX11
// #endif
// string executor_type = 3;
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// ConfigProto
// map device_count = 1;
// int32 intra_op_parallelism_threads = 2;
// int32 inter_op_parallelism_threads = 5;
// bool use_per_session_threads = 9;
// repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
// int32 placement_period = 3;
// repeated string device_filters = 4;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// .tensorflow.GPUOptions gpu_options = 6;
// bool allow_soft_placement = 7;
// bool log_device_placement = 8;
// .tensorflow.GraphOptions graph_options = 10;
// int64 operation_timeout_in_ms = 11;
// .tensorflow.RPCOptions rpc_options = 13;
// .tensorflow.ClusterDef cluster_def = 14;
// bool isolate_session_state = 15;
// .tensorflow.ConfigProto.Experimental experimental = 16;
// -------------------------------------------------------------------
// RunOptions_Experimental
// int64 collective_graph_key = 1;
// bool use_run_handler_pool = 2;
// -------------------------------------------------------------------
// RunOptions
// .tensorflow.RunOptions.TraceLevel trace_level = 1;
// int64 timeout_in_ms = 2;
// int32 inter_op_thread_pool = 3;
// bool output_partition_graphs = 5;
// .tensorflow.DebugOptions debug_options = 6;
// bool report_tensor_allocations_upon_oom = 7;
// .tensorflow.RunOptions.Experimental experimental = 8;
// -------------------------------------------------------------------
// RunMetadata
// .tensorflow.StepStats step_stats = 1;
// .tensorflow.CostGraphDef cost_graph = 2;
// repeated .tensorflow.GraphDef partition_graphs = 3;
// -------------------------------------------------------------------
// TensorConnection
// string from_tensor = 1;
// #if LANG_CXX11
// #endif
// string to_tensor = 2;
// #if LANG_CXX11
// #endif
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// CallableOptions
// repeated string feed = 1;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// repeated string fetch = 2;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// repeated string target = 3;
// #if LANG_CXX11
// #endif
// #if LANG_CXX11
// #endif
// .tensorflow.RunOptions run_options = 4;
// repeated .tensorflow.TensorConnection tensor_connection = 5;
// map feed_devices = 6;
// map fetch_devices = 7;
// bool fetch_skip_sync = 8;
// #ifdef __GNUC__
// #pragma GCC diagnostic pop
// #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
// namespace tensorflow
// namespace protobuf
// namespace google
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fconfig_2eproto
// Parsed from tensorflow/core/framework/cost_graph.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/cost_graph.proto
// #ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
// #define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 3006000
// #error This file was generated by a newer version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please update
// #error your headers.
// #endif
// #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
// #error This file was generated by an older version of protoc which is
// #error incompatible with your Protocol Buffer headers. Please
// #error regenerate this file with a newer version of protoc.
// #endif
// #include
// #include
// #include
// #include
// #include
// #include
// #include