Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.bytedeco.javacpp.caffe Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.1
package org.bytedeco.javacpp;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.opencv_core.*;
import static org.bytedeco.javacpp.opencv_imgproc.*;
import static org.bytedeco.javacpp.opencv_imgcodecs.*;
import static org.bytedeco.javacpp.opencv_videoio.*;
import static org.bytedeco.javacpp.opencv_highgui.*;
public class caffe extends org.bytedeco.javacpp.presets.caffe {
static { Loader.load(); }
@Name("std::map::Creator>") public static class FloatRegistry extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatRegistry(Pointer p) { super(p); }
public FloatRegistry() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef FloatRegistry put(@ByRef FloatRegistry x);
public native long size();
@Index public native FloatLayerRegistry.Creator get(@StdString BytePointer i);
public native FloatRegistry put(@StdString BytePointer i, FloatLayerRegistry.Creator 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 FloatLayerRegistry.Creator second();
}
}
@Name("std::map::Creator>") public static class DoubleRegistry extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleRegistry(Pointer p) { super(p); }
public DoubleRegistry() { allocate(); }
private native void allocate();
public native @Name("operator=") @ByRef DoubleRegistry put(@ByRef DoubleRegistry x);
public native long size();
@Index public native DoubleLayerRegistry.Creator get(@StdString BytePointer i);
public native DoubleRegistry put(@StdString BytePointer i, DoubleLayerRegistry.Creator 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 DoubleLayerRegistry.Creator second();
}
}
@Name("std::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 native long size();
@Index public native 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 int second();
}
}
@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 ... 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 native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @StdString BytePointer get(@Cast("size_t") long i);
public native StringVector put(@Cast("size_t") long i, BytePointer 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;
}
}
@Name("std::vector > >") public static class FloatBlobSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatBlobSharedVector(Pointer p) { super(p); }
public FloatBlobSharedVector(FloatBlob ... array) { this(array.length); put(array); }
public FloatBlobSharedVector() { allocate(); }
public FloatBlobSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef FloatBlobSharedVector put(@ByRef FloatBlobSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @SharedPtr FloatBlob get(@Cast("size_t") long i);
public native FloatBlobSharedVector put(@Cast("size_t") long i, FloatBlob value);
public FloatBlobSharedVector put(FloatBlob ... 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 DoubleBlobSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleBlobSharedVector(Pointer p) { super(p); }
public DoubleBlobSharedVector(DoubleBlob ... array) { this(array.length); put(array); }
public DoubleBlobSharedVector() { allocate(); }
public DoubleBlobSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DoubleBlobSharedVector put(@ByRef DoubleBlobSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @SharedPtr DoubleBlob get(@Cast("size_t") long i);
public native DoubleBlobSharedVector put(@Cast("size_t") long i, DoubleBlob value);
public DoubleBlobSharedVector put(DoubleBlob ... 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 FloatLayerSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatLayerSharedVector(Pointer p) { super(p); }
public FloatLayerSharedVector(FloatLayer ... array) { this(array.length); put(array); }
public FloatLayerSharedVector() { allocate(); }
public FloatLayerSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef FloatLayerSharedVector put(@ByRef FloatLayerSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @Cast({"", "boost::shared_ptr >"}) @SharedPtr FloatLayer get(@Cast("size_t") long i);
public native FloatLayerSharedVector put(@Cast("size_t") long i, FloatLayer value);
public FloatLayerSharedVector put(FloatLayer ... 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 DoubleLayerSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleLayerSharedVector(Pointer p) { super(p); }
public DoubleLayerSharedVector(DoubleLayer ... array) { this(array.length); put(array); }
public DoubleLayerSharedVector() { allocate(); }
public DoubleLayerSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DoubleLayerSharedVector put(@ByRef DoubleLayerSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @Cast({"", "boost::shared_ptr >"}) @SharedPtr DoubleLayer get(@Cast("size_t") long i);
public native DoubleLayerSharedVector put(@Cast("size_t") long i, DoubleLayer value);
public DoubleLayerSharedVector put(DoubleLayer ... 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 FloatNetSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatNetSharedVector(Pointer p) { super(p); }
public FloatNetSharedVector(FloatNet ... array) { this(array.length); put(array); }
public FloatNetSharedVector() { allocate(); }
public FloatNetSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef FloatNetSharedVector put(@ByRef FloatNetSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @SharedPtr FloatNet get(@Cast("size_t") long i);
public native FloatNetSharedVector put(@Cast("size_t") long i, FloatNet value);
public FloatNetSharedVector put(FloatNet ... 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 DoubleNetSharedVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleNetSharedVector(Pointer p) { super(p); }
public DoubleNetSharedVector(DoubleNet ... array) { this(array.length); put(array); }
public DoubleNetSharedVector() { allocate(); }
public DoubleNetSharedVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DoubleNetSharedVector put(@ByRef DoubleNetSharedVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @SharedPtr DoubleNet get(@Cast("size_t") long i);
public native DoubleNetSharedVector put(@Cast("size_t") long i, DoubleNet value);
public DoubleNetSharedVector put(DoubleNet ... 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 FloatBlobVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatBlobVector(Pointer p) { super(p); }
public FloatBlobVector(FloatBlob ... array) { this(array.length); put(array); }
public FloatBlobVector() { allocate(); }
public FloatBlobVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef FloatBlobVector put(@ByRef FloatBlobVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native FloatBlob get(@Cast("size_t") long i);
public native FloatBlobVector put(@Cast("size_t") long i, FloatBlob value);
public FloatBlobVector put(FloatBlob ... 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 DoubleBlobVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleBlobVector(Pointer p) { super(p); }
public DoubleBlobVector(DoubleBlob ... array) { this(array.length); put(array); }
public DoubleBlobVector() { allocate(); }
public DoubleBlobVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DoubleBlobVector put(@ByRef DoubleBlobVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native DoubleBlob get(@Cast("size_t") long i);
public native DoubleBlobVector put(@Cast("size_t") long i, DoubleBlob value);
public DoubleBlobVector put(DoubleBlob ... 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 FloatBlobVectorVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatBlobVectorVector(Pointer p) { super(p); }
public FloatBlobVectorVector(FloatBlobVector ... array) { this(array.length); put(array); }
public FloatBlobVectorVector() { allocate(); }
public FloatBlobVectorVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef FloatBlobVectorVector put(@ByRef FloatBlobVectorVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @ByRef FloatBlobVector get(@Cast("size_t") long i);
public native FloatBlobVectorVector put(@Cast("size_t") long i, FloatBlobVector value);
public FloatBlobVectorVector put(FloatBlobVector ... 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 DoubleBlobVectorVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleBlobVectorVector(Pointer p) { super(p); }
public DoubleBlobVectorVector(DoubleBlobVector ... array) { this(array.length); put(array); }
public DoubleBlobVectorVector() { allocate(); }
public DoubleBlobVectorVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef DoubleBlobVectorVector put(@ByRef DoubleBlobVectorVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @ByRef DoubleBlobVector get(@Cast("size_t") long i);
public native DoubleBlobVectorVector put(@Cast("size_t") long i, DoubleBlobVector value);
public DoubleBlobVectorVector put(DoubleBlobVector ... 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 BoolVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BoolVector(Pointer p) { super(p); }
public BoolVector(boolean ... array) { this(array.length); put(array); }
public BoolVector() { allocate(); }
public BoolVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef BoolVector put(@ByRef BoolVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native boolean get(@Cast("size_t") long i);
public native BoolVector put(@Cast("size_t") long i, boolean value);
public BoolVector put(boolean ... 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 BoolVectorVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BoolVectorVector(Pointer p) { super(p); }
public BoolVectorVector(BoolVector ... array) { this(array.length); put(array); }
public BoolVectorVector() { allocate(); }
public BoolVectorVector(long n) { allocate(n); }
private native void allocate();
private native void allocate(@Cast("size_t") long n);
public native @Name("operator=") @ByRef BoolVectorVector put(@ByRef BoolVectorVector x);
public native long size();
public native void resize(@Cast("size_t") long n);
@Index public native @ByRef BoolVector get(@Cast("size_t") long i);
public native BoolVectorVector put(@Cast("size_t") long i, BoolVector value);
public BoolVectorVector put(BoolVector ... array) {
if (size() != array.length) { resize(array.length); }
for (int i = 0; i < array.length; i++) {
put(i, array[i]);
}
return this;
}
}
// Parsed from caffe/caffe.hpp
// caffe.hpp is the header file that you need to include in your code. It wraps
// all the internal caffe header files into one for simpler inclusion.
// #ifndef CAFFE_CAFFE_HPP_
// #define CAFFE_CAFFE_HPP_
// #include "caffe/blob.hpp"
// #include "caffe/common.hpp"
// #include "caffe/filler.hpp"
// #include "caffe/layer.hpp"
// #include "caffe/layer_factory.hpp"
// #include "caffe/net.hpp"
// #include "caffe/parallel.hpp"
// #include "caffe/proto/caffe.pb.h"
// #include "caffe/solver.hpp"
// #include "caffe/solver_factory.hpp"
// #include "caffe/util/benchmark.hpp"
// #include "caffe/util/io.hpp"
// #include "caffe/util/upgrade_proto.hpp"
// #include "caffe/vision_layers.hpp"
// #endif // CAFFE_CAFFE_HPP_
// Parsed from caffe/util/device_alternate.hpp
// #ifndef CAFFE_UTIL_DEVICE_ALTERNATE_H_
// #define CAFFE_UTIL_DEVICE_ALTERNATE_H_
// #ifdef CPU_ONLY // CPU-only Caffe.
// #include
// Stub out GPU calls as unavailable.
// #define NO_GPU LOG(FATAL) << "Cannot use GPU in CPU-only Caffe: check mode."
// #define STUB_GPU(classname)
// template
// void classname::Forward_gpu(const vector*>& bottom,
// const vector*>& top) { NO_GPU; }
// template
// void classname::Backward_gpu(const vector*>& top,
// const vector& propagate_down,
// const vector*>& bottom) { NO_GPU; }
// #define STUB_GPU_FORWARD(classname, funcname)
// template
// void classname::funcname##_##gpu(const vector*>& bottom,
// const vector*>& top) { NO_GPU; }
// #define STUB_GPU_BACKWARD(classname, funcname)
// template
// void classname::funcname##_##gpu(const vector*>& top,
// const vector& propagate_down,
// const vector*>& bottom) { NO_GPU; }
// #else // Normal GPU + CPU Caffe.
// #endif // CPU_ONLY
// #endif // CAFFE_UTIL_DEVICE_ALTERNATE_H_
// Parsed from caffe/common.hpp
// #ifndef CAFFE_COMMON_HPP_
// #define CAFFE_COMMON_HPP_
// #include
// #include
// #include
// #include
// #include
// #include // NOLINT(readability/streams)
// #include // NOLINT(readability/streams)
// #include
// #include
// #include
// #include
// #include // pair
// #include
// #include "caffe/util/device_alternate.hpp"
// gflags 2.1 issue: namespace google was changed to gflags without warning.
// Luckily we will be able to use GFLAGS_GFLAGS_H_ to detect if it is version
// 2.1. If yes, we will add a temporary solution to redirect the namespace.
// TODO(Yangqing): Once gflags solves the problem in a more elegant way, let's
// remove the following hack.
// #ifndef GFLAGS_GFLAGS_H_
// #endif // GFLAGS_GFLAGS_H_
// Disable the copy and assignment operator for a class.
// #define DISABLE_COPY_AND_ASSIGN(classname)
// private:
// classname(const classname&);
// classname& operator=(const classname&)
// Instantiate a class with float and double specifications.
// #define INSTANTIATE_CLASS(classname)
// char gInstantiationGuard##classname;
// template class classname;
// template class classname
// #define INSTANTIATE_LAYER_GPU_FORWARD(classname)
// template void classname::Forward_gpu(
// const std::vector*>& bottom,
// const std::vector*>& top);
// template void classname::Forward_gpu(
// const std::vector*>& bottom,
// const std::vector*>& top);
// #define INSTANTIATE_LAYER_GPU_BACKWARD(classname)
// template void classname::Backward_gpu(
// const std::vector*>& top,
// const std::vector& propagate_down,
// const std::vector*>& bottom);
// template void classname::Backward_gpu(
// const std::vector*>& top,
// const std::vector& propagate_down,
// const std::vector*>& bottom)
// #define INSTANTIATE_LAYER_GPU_FUNCS(classname)
// INSTANTIATE_LAYER_GPU_FORWARD(classname);
// INSTANTIATE_LAYER_GPU_BACKWARD(classname)
// A simple macro to mark codes that are not implemented, so that when the code
// is executed we will see a fatal log.
// #define NOT_IMPLEMENTED LOG(FATAL) << "Not Implemented Yet"
// See PR #1236
// We will use the boost shared_ptr instead of the new C++11 one mainly
// because cuda does not work (at least now) well with C++11 features.
// Common functions and classes from std that caffe often uses.
// A global initialization function that you should call in your main function.
// Currently it initializes google flags and google logging.
@Namespace("caffe") public static native void GlobalInit(IntPointer pargc, @Cast("char***") PointerPointer pargv);
@Namespace("caffe") public static native void GlobalInit(IntBuffer pargc, @Cast("char***") PointerPointer pargv);
@Namespace("caffe") public static native void GlobalInit(int[] pargc, @Cast("char***") PointerPointer pargv);
// A singleton class to hold common caffe stuff, such as the handler that
// caffe is going to use for cublas, curand, etc.
@Namespace("caffe") @NoOffset public static class Caffe extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public Caffe() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Caffe(Pointer p) { super(p); }
// Thread local context for Caffe. Moved to common.cpp instead of
// including boost/thread.hpp to avoid a boost/NVCC issues (#1009, #1010)
// on OSX. Also fails on Linux with CUDA 7.0.18.
public static native @ByRef Caffe Get();
/** enum caffe::Caffe::Brew */
public static final int CPU = 0, GPU = 1;
// This random number generator facade hides boost and CUDA rng
// implementation from one another (for cross-platform compatibility).
@NoOffset public static class RNG extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public RNG(Pointer p) { super(p); }
public RNG() { allocate(); }
private native void allocate();
public RNG(@Cast("unsigned int") int seed) { allocate(seed); }
private native void allocate(@Cast("unsigned int") int seed);
public RNG(@Const @ByRef RNG arg0) { allocate(arg0); }
private native void allocate(@Const @ByRef RNG arg0);
public native @ByRef @Name("operator =") RNG put(@Const @ByRef RNG arg0);
public native Pointer generator();
}
// Getters for boost rng, curand, and cublas handles
public static native @ByRef RNG rng_stream();
// #ifndef CPU_ONLY
// #endif
// Returns the mode: running on CPU or GPU.
public static native @Cast("caffe::Caffe::Brew") int mode();
// The setters for the variables
// Sets the mode. It is recommended that you don't change the mode halfway
// into the program since that may cause allocation of pinned memory being
// freed in a non-pinned way, which may cause problems - I haven't verified
// it personally but better to note it here in the header file.
public static native void set_mode(@Cast("caffe::Caffe::Brew") int mode);
// Sets the random seed of both boost and curand
public static native void set_random_seed(@Cast("const unsigned int") int seed);
// Sets the device. Since we have cublas and curand stuff, set device also
// requires us to reset those values.
public static native void SetDevice(int device_id);
// Prints the current GPU status.
public static native void DeviceQuery();
// Parallel training info
public static native int solver_count();
public static native void set_solver_count(int val);
public static native @Cast("bool") boolean root_solver();
public static native void set_root_solver(@Cast("bool") boolean val);
}
// namespace caffe
// #endif // CAFFE_COMMON_HPP_
// Parsed from caffe/proto/caffe.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: caffe.proto
// #ifndef PROTOBUF_caffe_2eproto__INCLUDED
// #define PROTOBUF_caffe_2eproto__INCLUDED
// #include
// #include
// #if GOOGLE_PROTOBUF_VERSION < 2006000
// #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 2006001 < 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
// @@protoc_insertion_point(includes)
// Internal implementation detail -- do not call these.
@Namespace("caffe") public static native void protobuf_AddDesc_caffe_2eproto();
@Namespace("caffe") public static native void protobuf_AssignDesc_caffe_2eproto();
@Namespace("caffe") public static native void protobuf_ShutdownFile_caffe_2eproto();
/** enum caffe::FillerParameter_VarianceNorm */
public static final int
FillerParameter_VarianceNorm_FAN_IN = 0,
FillerParameter_VarianceNorm_FAN_OUT = 1,
FillerParameter_VarianceNorm_AVERAGE = 2;
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::FillerParameter_VarianceNorm") int FillerParameter_VarianceNorm_VarianceNorm_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::FillerParameter_VarianceNorm") int FillerParameter_VarianceNorm_VarianceNorm_MAX();
@Namespace("caffe") @MemberGetter public static native int FillerParameter_VarianceNorm_VarianceNorm_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer FillerParameter_VarianceNorm_descriptor();
@Namespace("caffe") public static native @StdString BytePointer FillerParameter_VarianceNorm_Name(@Cast("caffe::FillerParameter_VarianceNorm") int value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString BytePointer name, @Cast("caffe::FillerParameter_VarianceNorm*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString String name, @Cast("caffe::FillerParameter_VarianceNorm*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString BytePointer name, @Cast("caffe::FillerParameter_VarianceNorm*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString String name, @Cast("caffe::FillerParameter_VarianceNorm*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString BytePointer name, @Cast("caffe::FillerParameter_VarianceNorm*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean FillerParameter_VarianceNorm_Parse(
@StdString String name, @Cast("caffe::FillerParameter_VarianceNorm*") int[] value);
/** enum caffe::SolverParameter_SnapshotFormat */
public static final int
SolverParameter_SnapshotFormat_HDF5 = 0,
SolverParameter_SnapshotFormat_BINARYPROTO = 1;
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SnapshotFormat") int SolverParameter_SnapshotFormat_SnapshotFormat_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SnapshotFormat") int SolverParameter_SnapshotFormat_SnapshotFormat_MAX();
@Namespace("caffe") @MemberGetter public static native int SolverParameter_SnapshotFormat_SnapshotFormat_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SolverParameter_SnapshotFormat_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SolverParameter_SnapshotFormat_Name(@Cast("caffe::SolverParameter_SnapshotFormat") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SnapshotFormat*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SnapshotFormat*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SnapshotFormat*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SnapshotFormat*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SnapshotFormat*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SnapshotFormat_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SnapshotFormat*") int[] value);
/** enum caffe::SolverParameter_SolverMode */
public static final int
SolverParameter_SolverMode_CPU = 0,
SolverParameter_SolverMode_GPU = 1;
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SolverMode") int SolverParameter_SolverMode_SolverMode_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SolverMode") int SolverParameter_SolverMode_SolverMode_MAX();
@Namespace("caffe") @MemberGetter public static native int SolverParameter_SolverMode_SolverMode_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SolverParameter_SolverMode_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SolverParameter_SolverMode_Name(@Cast("caffe::SolverParameter_SolverMode") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverMode*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverMode_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverMode*") int[] value);
/** enum caffe::SolverParameter_SolverType */
public static final int
SolverParameter_SolverType_SGD = 0,
SolverParameter_SolverType_NESTEROV = 1,
SolverParameter_SolverType_ADAGRAD = 2,
SolverParameter_SolverType_RMSPROP = 3,
SolverParameter_SolverType_ADADELTA = 4,
SolverParameter_SolverType_ADAM = 5;
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SolverType") int SolverParameter_SolverType_SolverType_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SolverParameter_SolverType") int SolverParameter_SolverType_SolverType_MAX();
@Namespace("caffe") @MemberGetter public static native int SolverParameter_SolverType_SolverType_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SolverParameter_SolverType_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SolverParameter_SolverType_Name(@Cast("caffe::SolverParameter_SolverType") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverType*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverType*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverType*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverType*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString BytePointer name, @Cast("caffe::SolverParameter_SolverType*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SolverParameter_SolverType_Parse(
@StdString String name, @Cast("caffe::SolverParameter_SolverType*") int[] value);
/** enum caffe::ParamSpec_DimCheckMode */
public static final int
ParamSpec_DimCheckMode_STRICT = 0,
ParamSpec_DimCheckMode_PERMISSIVE = 1;
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ParamSpec_DimCheckMode") int ParamSpec_DimCheckMode_DimCheckMode_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ParamSpec_DimCheckMode") int ParamSpec_DimCheckMode_DimCheckMode_MAX();
@Namespace("caffe") @MemberGetter public static native int ParamSpec_DimCheckMode_DimCheckMode_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer ParamSpec_DimCheckMode_descriptor();
@Namespace("caffe") public static native @StdString BytePointer ParamSpec_DimCheckMode_Name(@Cast("caffe::ParamSpec_DimCheckMode") int value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::ParamSpec_DimCheckMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::ParamSpec_DimCheckMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::ParamSpec_DimCheckMode*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::ParamSpec_DimCheckMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::ParamSpec_DimCheckMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ParamSpec_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::ParamSpec_DimCheckMode*") int[] value);
/** enum caffe::ConvolutionParameter_Engine */
public static final int
ConvolutionParameter_Engine_DEFAULT = 0,
ConvolutionParameter_Engine_CAFFE = 1,
ConvolutionParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ConvolutionParameter_Engine") int ConvolutionParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ConvolutionParameter_Engine") int ConvolutionParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int ConvolutionParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer ConvolutionParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer ConvolutionParameter_Engine_Name(@Cast("caffe::ConvolutionParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ConvolutionParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ConvolutionParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ConvolutionParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ConvolutionParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ConvolutionParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ConvolutionParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ConvolutionParameter_Engine*") int[] value);
/** enum caffe::DataParameter_DB */
public static final int
DataParameter_DB_LEVELDB = 0,
DataParameter_DB_LMDB = 1;
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::DataParameter_DB") int DataParameter_DB_DB_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::DataParameter_DB") int DataParameter_DB_DB_MAX();
@Namespace("caffe") @MemberGetter public static native int DataParameter_DB_DB_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer DataParameter_DB_descriptor();
@Namespace("caffe") public static native @StdString BytePointer DataParameter_DB_Name(@Cast("caffe::DataParameter_DB") int value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString BytePointer name, @Cast("caffe::DataParameter_DB*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString String name, @Cast("caffe::DataParameter_DB*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString BytePointer name, @Cast("caffe::DataParameter_DB*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString String name, @Cast("caffe::DataParameter_DB*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString BytePointer name, @Cast("caffe::DataParameter_DB*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean DataParameter_DB_Parse(
@StdString String name, @Cast("caffe::DataParameter_DB*") int[] value);
/** enum caffe::EltwiseParameter_EltwiseOp */
public static final int
EltwiseParameter_EltwiseOp_PROD = 0,
EltwiseParameter_EltwiseOp_SUM = 1,
EltwiseParameter_EltwiseOp_MAX = 2;
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::EltwiseParameter_EltwiseOp") int EltwiseParameter_EltwiseOp_EltwiseOp_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::EltwiseParameter_EltwiseOp") int EltwiseParameter_EltwiseOp_EltwiseOp_MAX();
@Namespace("caffe") @MemberGetter public static native int EltwiseParameter_EltwiseOp_EltwiseOp_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer EltwiseParameter_EltwiseOp_descriptor();
@Namespace("caffe") public static native @StdString BytePointer EltwiseParameter_EltwiseOp_Name(@Cast("caffe::EltwiseParameter_EltwiseOp") int value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString BytePointer name, @Cast("caffe::EltwiseParameter_EltwiseOp*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString String name, @Cast("caffe::EltwiseParameter_EltwiseOp*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString BytePointer name, @Cast("caffe::EltwiseParameter_EltwiseOp*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString String name, @Cast("caffe::EltwiseParameter_EltwiseOp*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString BytePointer name, @Cast("caffe::EltwiseParameter_EltwiseOp*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean EltwiseParameter_EltwiseOp_Parse(
@StdString String name, @Cast("caffe::EltwiseParameter_EltwiseOp*") int[] value);
/** enum caffe::HingeLossParameter_Norm */
public static final int
HingeLossParameter_Norm_L1 = 1,
HingeLossParameter_Norm_L2 = 2;
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::HingeLossParameter_Norm") int HingeLossParameter_Norm_Norm_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::HingeLossParameter_Norm") int HingeLossParameter_Norm_Norm_MAX();
@Namespace("caffe") @MemberGetter public static native int HingeLossParameter_Norm_Norm_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer HingeLossParameter_Norm_descriptor();
@Namespace("caffe") public static native @StdString BytePointer HingeLossParameter_Norm_Name(@Cast("caffe::HingeLossParameter_Norm") int value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString BytePointer name, @Cast("caffe::HingeLossParameter_Norm*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString String name, @Cast("caffe::HingeLossParameter_Norm*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString BytePointer name, @Cast("caffe::HingeLossParameter_Norm*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString String name, @Cast("caffe::HingeLossParameter_Norm*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString BytePointer name, @Cast("caffe::HingeLossParameter_Norm*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean HingeLossParameter_Norm_Parse(
@StdString String name, @Cast("caffe::HingeLossParameter_Norm*") int[] value);
/** enum caffe::LRNParameter_NormRegion */
public static final int
LRNParameter_NormRegion_ACROSS_CHANNELS = 0,
LRNParameter_NormRegion_WITHIN_CHANNEL = 1;
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::LRNParameter_NormRegion") int LRNParameter_NormRegion_NormRegion_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::LRNParameter_NormRegion") int LRNParameter_NormRegion_NormRegion_MAX();
@Namespace("caffe") @MemberGetter public static native int LRNParameter_NormRegion_NormRegion_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer LRNParameter_NormRegion_descriptor();
@Namespace("caffe") public static native @StdString BytePointer LRNParameter_NormRegion_Name(@Cast("caffe::LRNParameter_NormRegion") int value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_NormRegion*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString String name, @Cast("caffe::LRNParameter_NormRegion*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_NormRegion*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString String name, @Cast("caffe::LRNParameter_NormRegion*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_NormRegion*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_NormRegion_Parse(
@StdString String name, @Cast("caffe::LRNParameter_NormRegion*") int[] value);
/** enum caffe::LRNParameter_Engine */
public static final int
LRNParameter_Engine_DEFAULT = 0,
LRNParameter_Engine_CAFFE = 1,
LRNParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::LRNParameter_Engine") int LRNParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::LRNParameter_Engine") int LRNParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int LRNParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer LRNParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer LRNParameter_Engine_Name(@Cast("caffe::LRNParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString String name, @Cast("caffe::LRNParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString String name, @Cast("caffe::LRNParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::LRNParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean LRNParameter_Engine_Parse(
@StdString String name, @Cast("caffe::LRNParameter_Engine*") int[] value);
/** enum caffe::PoolingParameter_PoolMethod */
public static final int
PoolingParameter_PoolMethod_MAX = 0,
PoolingParameter_PoolMethod_AVE = 1,
PoolingParameter_PoolMethod_STOCHASTIC = 2;
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::PoolingParameter_PoolMethod") int PoolingParameter_PoolMethod_PoolMethod_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::PoolingParameter_PoolMethod") int PoolingParameter_PoolMethod_PoolMethod_MAX();
@Namespace("caffe") @MemberGetter public static native int PoolingParameter_PoolMethod_PoolMethod_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer PoolingParameter_PoolMethod_descriptor();
@Namespace("caffe") public static native @StdString BytePointer PoolingParameter_PoolMethod_Name(@Cast("caffe::PoolingParameter_PoolMethod") int value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_PoolMethod*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_PoolMethod*") int[] value);
/** enum caffe::PoolingParameter_Engine */
public static final int
PoolingParameter_Engine_DEFAULT = 0,
PoolingParameter_Engine_CAFFE = 1,
PoolingParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::PoolingParameter_Engine") int PoolingParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::PoolingParameter_Engine") int PoolingParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int PoolingParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer PoolingParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer PoolingParameter_Engine_Name(@Cast("caffe::PoolingParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::PoolingParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean PoolingParameter_Engine_Parse(
@StdString String name, @Cast("caffe::PoolingParameter_Engine*") int[] value);
/** enum caffe::ReductionParameter_ReductionOp */
public static final int
ReductionParameter_ReductionOp_SUM = 1,
ReductionParameter_ReductionOp_ASUM = 2,
ReductionParameter_ReductionOp_SUMSQ = 3,
ReductionParameter_ReductionOp_MEAN = 4;
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ReductionParameter_ReductionOp") int ReductionParameter_ReductionOp_ReductionOp_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ReductionParameter_ReductionOp") int ReductionParameter_ReductionOp_ReductionOp_MAX();
@Namespace("caffe") @MemberGetter public static native int ReductionParameter_ReductionOp_ReductionOp_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer ReductionParameter_ReductionOp_descriptor();
@Namespace("caffe") public static native @StdString BytePointer ReductionParameter_ReductionOp_Name(@Cast("caffe::ReductionParameter_ReductionOp") int value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString BytePointer name, @Cast("caffe::ReductionParameter_ReductionOp*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString String name, @Cast("caffe::ReductionParameter_ReductionOp*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString BytePointer name, @Cast("caffe::ReductionParameter_ReductionOp*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString String name, @Cast("caffe::ReductionParameter_ReductionOp*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString BytePointer name, @Cast("caffe::ReductionParameter_ReductionOp*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReductionParameter_ReductionOp_Parse(
@StdString String name, @Cast("caffe::ReductionParameter_ReductionOp*") int[] value);
/** enum caffe::ReLUParameter_Engine */
public static final int
ReLUParameter_Engine_DEFAULT = 0,
ReLUParameter_Engine_CAFFE = 1,
ReLUParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ReLUParameter_Engine") int ReLUParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::ReLUParameter_Engine") int ReLUParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int ReLUParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer ReLUParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer ReLUParameter_Engine_Name(@Cast("caffe::ReLUParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ReLUParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ReLUParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ReLUParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ReLUParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::ReLUParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean ReLUParameter_Engine_Parse(
@StdString String name, @Cast("caffe::ReLUParameter_Engine*") int[] value);
/** enum caffe::SigmoidParameter_Engine */
public static final int
SigmoidParameter_Engine_DEFAULT = 0,
SigmoidParameter_Engine_CAFFE = 1,
SigmoidParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SigmoidParameter_Engine") int SigmoidParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SigmoidParameter_Engine") int SigmoidParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int SigmoidParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SigmoidParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SigmoidParameter_Engine_Name(@Cast("caffe::SigmoidParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SigmoidParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SigmoidParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SigmoidParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SigmoidParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SigmoidParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SigmoidParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SigmoidParameter_Engine*") int[] value);
/** enum caffe::SoftmaxParameter_Engine */
public static final int
SoftmaxParameter_Engine_DEFAULT = 0,
SoftmaxParameter_Engine_CAFFE = 1,
SoftmaxParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SoftmaxParameter_Engine") int SoftmaxParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SoftmaxParameter_Engine") int SoftmaxParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int SoftmaxParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SoftmaxParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SoftmaxParameter_Engine_Name(@Cast("caffe::SoftmaxParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SoftmaxParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SoftmaxParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SoftmaxParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SoftmaxParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SoftmaxParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SoftmaxParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SoftmaxParameter_Engine*") int[] value);
/** enum caffe::TanHParameter_Engine */
public static final int
TanHParameter_Engine_DEFAULT = 0,
TanHParameter_Engine_CAFFE = 1,
TanHParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::TanHParameter_Engine") int TanHParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::TanHParameter_Engine") int TanHParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int TanHParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer TanHParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer TanHParameter_Engine_Name(@Cast("caffe::TanHParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::TanHParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString String name, @Cast("caffe::TanHParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::TanHParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString String name, @Cast("caffe::TanHParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::TanHParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean TanHParameter_Engine_Parse(
@StdString String name, @Cast("caffe::TanHParameter_Engine*") int[] value);
/** enum caffe::SPPParameter_PoolMethod */
public static final int
SPPParameter_PoolMethod_MAX = 0,
SPPParameter_PoolMethod_AVE = 1,
SPPParameter_PoolMethod_STOCHASTIC = 2;
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SPPParameter_PoolMethod") int SPPParameter_PoolMethod_PoolMethod_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SPPParameter_PoolMethod") int SPPParameter_PoolMethod_PoolMethod_MAX();
@Namespace("caffe") @MemberGetter public static native int SPPParameter_PoolMethod_PoolMethod_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SPPParameter_PoolMethod_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SPPParameter_PoolMethod_Name(@Cast("caffe::SPPParameter_PoolMethod") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::SPPParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_PoolMethod*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::SPPParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::SPPParameter_PoolMethod*") int[] value);
/** enum caffe::SPPParameter_Engine */
public static final int
SPPParameter_Engine_DEFAULT = 0,
SPPParameter_Engine_CAFFE = 1,
SPPParameter_Engine_CUDNN = 2;
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SPPParameter_Engine") int SPPParameter_Engine_Engine_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::SPPParameter_Engine") int SPPParameter_Engine_Engine_MAX();
@Namespace("caffe") @MemberGetter public static native int SPPParameter_Engine_Engine_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SPPParameter_Engine_descriptor();
@Namespace("caffe") public static native @StdString BytePointer SPPParameter_Engine_Name(@Cast("caffe::SPPParameter_Engine") int value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SPPParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_Engine*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SPPParameter_Engine*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString BytePointer name, @Cast("caffe::SPPParameter_Engine*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean SPPParameter_Engine_Parse(
@StdString String name, @Cast("caffe::SPPParameter_Engine*") int[] value);
/** enum caffe::V1LayerParameter_LayerType */
public static final int
V1LayerParameter_LayerType_NONE = 0,
V1LayerParameter_LayerType_ABSVAL = 35,
V1LayerParameter_LayerType_ACCURACY = 1,
V1LayerParameter_LayerType_ARGMAX = 30,
V1LayerParameter_LayerType_BNLL = 2,
V1LayerParameter_LayerType_CONCAT = 3,
V1LayerParameter_LayerType_CONTRASTIVE_LOSS = 37,
V1LayerParameter_LayerType_CONVOLUTION = 4,
V1LayerParameter_LayerType_DATA = 5,
V1LayerParameter_LayerType_DECONVOLUTION = 39,
V1LayerParameter_LayerType_DROPOUT = 6,
V1LayerParameter_LayerType_DUMMY_DATA = 32,
V1LayerParameter_LayerType_EUCLIDEAN_LOSS = 7,
V1LayerParameter_LayerType_ELTWISE = 25,
V1LayerParameter_LayerType_EXP = 38,
V1LayerParameter_LayerType_FLATTEN = 8,
V1LayerParameter_LayerType_HDF5_DATA = 9,
V1LayerParameter_LayerType_HDF5_OUTPUT = 10,
V1LayerParameter_LayerType_HINGE_LOSS = 28,
V1LayerParameter_LayerType_IM2COL = 11,
V1LayerParameter_LayerType_IMAGE_DATA = 12,
V1LayerParameter_LayerType_INFOGAIN_LOSS = 13,
V1LayerParameter_LayerType_INNER_PRODUCT = 14,
V1LayerParameter_LayerType_LRN = 15,
V1LayerParameter_LayerType_MEMORY_DATA = 29,
V1LayerParameter_LayerType_MULTINOMIAL_LOGISTIC_LOSS = 16,
V1LayerParameter_LayerType_MVN = 34,
V1LayerParameter_LayerType_POOLING = 17,
V1LayerParameter_LayerType_POWER = 26,
V1LayerParameter_LayerType_RELU = 18,
V1LayerParameter_LayerType_SIGMOID = 19,
V1LayerParameter_LayerType_SIGMOID_CROSS_ENTROPY_LOSS = 27,
V1LayerParameter_LayerType_SILENCE = 36,
V1LayerParameter_LayerType_SOFTMAX = 20,
V1LayerParameter_LayerType_SOFTMAX_LOSS = 21,
V1LayerParameter_LayerType_SPLIT = 22,
V1LayerParameter_LayerType_SLICE = 33,
V1LayerParameter_LayerType_TANH = 23,
V1LayerParameter_LayerType_WINDOW_DATA = 24,
V1LayerParameter_LayerType_THRESHOLD = 31;
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V1LayerParameter_LayerType") int V1LayerParameter_LayerType_LayerType_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V1LayerParameter_LayerType") int V1LayerParameter_LayerType_LayerType_MAX();
@Namespace("caffe") @MemberGetter public static native int V1LayerParameter_LayerType_LayerType_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer V1LayerParameter_LayerType_descriptor();
@Namespace("caffe") public static native @StdString BytePointer V1LayerParameter_LayerType_Name(@Cast("caffe::V1LayerParameter_LayerType") int value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_LayerType*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_LayerType*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_LayerType*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_LayerType*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_LayerType*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_LayerType_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_LayerType*") int[] value);
/** enum caffe::V1LayerParameter_DimCheckMode */
public static final int
V1LayerParameter_DimCheckMode_STRICT = 0,
V1LayerParameter_DimCheckMode_PERMISSIVE = 1;
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V1LayerParameter_DimCheckMode") int V1LayerParameter_DimCheckMode_DimCheckMode_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V1LayerParameter_DimCheckMode") int V1LayerParameter_DimCheckMode_DimCheckMode_MAX();
@Namespace("caffe") @MemberGetter public static native int V1LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer V1LayerParameter_DimCheckMode_descriptor();
@Namespace("caffe") public static native @StdString BytePointer V1LayerParameter_DimCheckMode_Name(@Cast("caffe::V1LayerParameter_DimCheckMode") int value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_DimCheckMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_DimCheckMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_DimCheckMode*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_DimCheckMode*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString BytePointer name, @Cast("caffe::V1LayerParameter_DimCheckMode*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V1LayerParameter_DimCheckMode_Parse(
@StdString String name, @Cast("caffe::V1LayerParameter_DimCheckMode*") int[] value);
/** enum caffe::V0LayerParameter_PoolMethod */
public static final int
V0LayerParameter_PoolMethod_MAX = 0,
V0LayerParameter_PoolMethod_AVE = 1,
V0LayerParameter_PoolMethod_STOCHASTIC = 2;
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V0LayerParameter_PoolMethod") int V0LayerParameter_PoolMethod_PoolMethod_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::V0LayerParameter_PoolMethod") int V0LayerParameter_PoolMethod_PoolMethod_MAX();
@Namespace("caffe") @MemberGetter public static native int V0LayerParameter_PoolMethod_PoolMethod_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer V0LayerParameter_PoolMethod_descriptor();
@Namespace("caffe") public static native @StdString BytePointer V0LayerParameter_PoolMethod_Name(@Cast("caffe::V0LayerParameter_PoolMethod") int value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::V0LayerParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::V0LayerParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::V0LayerParameter_PoolMethod*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::V0LayerParameter_PoolMethod*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString BytePointer name, @Cast("caffe::V0LayerParameter_PoolMethod*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean V0LayerParameter_PoolMethod_Parse(
@StdString String name, @Cast("caffe::V0LayerParameter_PoolMethod*") int[] value);
/** enum caffe::Phase */
public static final int
TRAIN = 0,
TEST = 1;
@Namespace("caffe") public static native @Cast("bool") boolean Phase_IsValid(int value);
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::Phase") int Phase_MIN();
@Namespace("caffe") @MemberGetter public static native @Cast("const caffe::Phase") int Phase_MAX();
@Namespace("caffe") @MemberGetter public static native int Phase_ARRAYSIZE();
@Namespace("caffe") public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Phase_descriptor();
@Namespace("caffe") public static native @StdString BytePointer Phase_Name(@Cast("caffe::Phase") int value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString BytePointer name, @Cast("caffe::Phase*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString String name, @Cast("caffe::Phase*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString BytePointer name, @Cast("caffe::Phase*") int[] value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString String name, @Cast("caffe::Phase*") IntPointer value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString BytePointer name, @Cast("caffe::Phase*") IntBuffer value);
@Namespace("caffe") public static native @Cast("bool") boolean Phase_Parse(
@StdString String name, @Cast("caffe::Phase*") int[] value);
// ===================================================================
@Namespace("caffe") @NoOffset public static class BlobShape extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BlobShape(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public BlobShape(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public BlobShape position(int position) {
return (BlobShape)super.position(position);
}
public BlobShape() { allocate(); }
private native void allocate();
public BlobShape(@Const @ByRef BlobShape from) { allocate(from); }
private native void allocate(@Const @ByRef BlobShape from);
public native @ByRef @Name("operator =") BlobShape put(@Const @ByRef BlobShape from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef BlobShape default_instance();
public native void Swap(BlobShape other);
// implements Message ----------------------------------------------
public native BlobShape New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef BlobShape from);
public native void MergeFrom(@Const @ByRef BlobShape from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated int64 dim = 1 [packed = true];
public native int dim_size();
public native void clear_dim();
@MemberGetter public static native int kDimFieldNumber();
public native @Cast("google::protobuf::int64") long dim(int index);
public native void set_dim(int index, @Cast("google::protobuf::int64") long value);
public native void add_dim(@Cast("google::protobuf::int64") long value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class BlobProto extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BlobProto(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public BlobProto(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public BlobProto position(int position) {
return (BlobProto)super.position(position);
}
public BlobProto() { allocate(); }
private native void allocate();
public BlobProto(@Const @ByRef BlobProto from) { allocate(from); }
private native void allocate(@Const @ByRef BlobProto from);
public native @ByRef @Name("operator =") BlobProto put(@Const @ByRef BlobProto from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef BlobProto default_instance();
public native void Swap(BlobProto other);
// implements Message ----------------------------------------------
public native BlobProto New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef BlobProto from);
public native void MergeFrom(@Const @ByRef BlobProto from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .caffe.BlobShape shape = 7;
public native @Cast("bool") boolean has_shape();
public native void clear_shape();
@MemberGetter public static native int kShapeFieldNumber();
public native @Const @ByRef BlobShape shape();
public native BlobShape mutable_shape();
public native BlobShape release_shape();
public native void set_allocated_shape(BlobShape shape);
// repeated float data = 5 [packed = true];
public native int data_size();
public native void clear_data();
@MemberGetter public static native int kDataFieldNumber();
public native float data(int index);
public native void set_data(int index, float value);
public native void add_data(float value);
// repeated float diff = 6 [packed = true];
public native int diff_size();
public native void clear_diff();
@MemberGetter public static native int kDiffFieldNumber();
public native float diff(int index);
public native void set_diff(int index, float value);
public native void add_diff(float value);
// repeated double double_data = 8 [packed = true];
public native int double_data_size();
public native void clear_double_data();
@MemberGetter public static native int kDoubleDataFieldNumber();
public native double double_data(int index);
public native void set_double_data(int index, double value);
public native void add_double_data(double value);
// repeated double double_diff = 9 [packed = true];
public native int double_diff_size();
public native void clear_double_diff();
@MemberGetter public static native int kDoubleDiffFieldNumber();
public native double double_diff(int index);
public native void set_double_diff(int index, double value);
public native void add_double_diff(double value);
// optional int32 num = 1 [default = 0];
public native @Cast("bool") boolean has_num();
public native void clear_num();
@MemberGetter public static native int kNumFieldNumber();
public native @Cast("google::protobuf::int32") int num();
public native void set_num(@Cast("google::protobuf::int32") int value);
// optional int32 channels = 2 [default = 0];
public native @Cast("bool") boolean has_channels();
public native void clear_channels();
@MemberGetter public static native int kChannelsFieldNumber();
public native @Cast("google::protobuf::int32") int channels();
public native void set_channels(@Cast("google::protobuf::int32") int value);
// optional int32 height = 3 [default = 0];
public native @Cast("bool") boolean has_height();
public native void clear_height();
@MemberGetter public static native int kHeightFieldNumber();
public native @Cast("google::protobuf::int32") int height();
public native void set_height(@Cast("google::protobuf::int32") int value);
// optional int32 width = 4 [default = 0];
public native @Cast("bool") boolean has_width();
public native void clear_width();
@MemberGetter public static native int kWidthFieldNumber();
public native @Cast("google::protobuf::int32") int width();
public native void set_width(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class BlobProtoVector extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BlobProtoVector(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public BlobProtoVector(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public BlobProtoVector position(int position) {
return (BlobProtoVector)super.position(position);
}
public BlobProtoVector() { allocate(); }
private native void allocate();
public BlobProtoVector(@Const @ByRef BlobProtoVector from) { allocate(from); }
private native void allocate(@Const @ByRef BlobProtoVector from);
public native @ByRef @Name("operator =") BlobProtoVector put(@Const @ByRef BlobProtoVector from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef BlobProtoVector default_instance();
public native void Swap(BlobProtoVector other);
// implements Message ----------------------------------------------
public native BlobProtoVector New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef BlobProtoVector from);
public native void MergeFrom(@Const @ByRef BlobProtoVector from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .caffe.BlobProto blobs = 1;
public native int blobs_size();
public native void clear_blobs();
@MemberGetter public static native int kBlobsFieldNumber();
public native @Const @ByRef BlobProto blobs(int index);
public native BlobProto mutable_blobs(int index);
public native BlobProto add_blobs();
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class Datum extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Datum(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public Datum(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public Datum position(int position) {
return (Datum)super.position(position);
}
public Datum() { allocate(); }
private native void allocate();
public Datum(@Const @ByRef Datum from) { allocate(from); }
private native void allocate(@Const @ByRef Datum from);
public native @ByRef @Name("operator =") Datum put(@Const @ByRef Datum from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef Datum default_instance();
public native void Swap(Datum other);
// implements Message ----------------------------------------------
public native Datum New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef Datum from);
public native void MergeFrom(@Const @ByRef Datum from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 channels = 1;
public native @Cast("bool") boolean has_channels();
public native void clear_channels();
@MemberGetter public static native int kChannelsFieldNumber();
public native @Cast("google::protobuf::int32") int channels();
public native void set_channels(@Cast("google::protobuf::int32") int value);
// optional int32 height = 2;
public native @Cast("bool") boolean has_height();
public native void clear_height();
@MemberGetter public static native int kHeightFieldNumber();
public native @Cast("google::protobuf::int32") int height();
public native void set_height(@Cast("google::protobuf::int32") int value);
// optional int32 width = 3;
public native @Cast("bool") boolean has_width();
public native void clear_width();
@MemberGetter public static native int kWidthFieldNumber();
public native @Cast("google::protobuf::int32") int width();
public native void set_width(@Cast("google::protobuf::int32") int value);
// optional bytes data = 4;
public native @Cast("bool") boolean has_data();
public native void clear_data();
@MemberGetter public static native int kDataFieldNumber();
public native @StdString BytePointer data();
public native void set_data(@StdString BytePointer value);
public native void set_data(@StdString String value);
public native void set_data(@Const Pointer value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_data();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_data();
public native void set_allocated_data(@StdString @Cast({"char*", "std::string*"}) BytePointer data);
// optional int32 label = 5;
public native @Cast("bool") boolean has_label();
public native void clear_label();
@MemberGetter public static native int kLabelFieldNumber();
public native @Cast("google::protobuf::int32") int label();
public native void set_label(@Cast("google::protobuf::int32") int value);
// repeated float float_data = 6;
public native int float_data_size();
public native void clear_float_data();
@MemberGetter public static native int kFloatDataFieldNumber();
public native float float_data(int index);
public native void set_float_data(int index, float value);
public native void add_float_data(float value);
// optional bool encoded = 7 [default = false];
public native @Cast("bool") boolean has_encoded();
public native void clear_encoded();
@MemberGetter public static native int kEncodedFieldNumber();
public native @Cast("bool") boolean encoded();
public native void set_encoded(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class FillerParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FillerParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public FillerParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public FillerParameter position(int position) {
return (FillerParameter)super.position(position);
}
public FillerParameter() { allocate(); }
private native void allocate();
public FillerParameter(@Const @ByRef FillerParameter from) { allocate(from); }
private native void allocate(@Const @ByRef FillerParameter from);
public native @ByRef @Name("operator =") FillerParameter put(@Const @ByRef FillerParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef FillerParameter default_instance();
public native void Swap(FillerParameter other);
// implements Message ----------------------------------------------
public native FillerParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef FillerParameter from);
public native void MergeFrom(@Const @ByRef FillerParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::FillerParameter::VarianceNorm") int FAN_IN();
@MemberGetter public static native @Cast("const caffe::FillerParameter::VarianceNorm") int FAN_OUT();
@MemberGetter public static native @Cast("const caffe::FillerParameter::VarianceNorm") int AVERAGE();
public static native @Cast("bool") boolean VarianceNorm_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::FillerParameter::VarianceNorm") int VarianceNorm_MIN();
@MemberGetter public static native @Cast("const caffe::FillerParameter::VarianceNorm") int VarianceNorm_MAX();
@MemberGetter public static native int VarianceNorm_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer VarianceNorm_descriptor();
public static native @StdString BytePointer VarianceNorm_Name(@Cast("caffe::FillerParameter::VarianceNorm") int value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString BytePointer name,
@Cast("caffe::FillerParameter::VarianceNorm*") IntPointer value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString String name,
@Cast("caffe::FillerParameter::VarianceNorm*") IntBuffer value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString BytePointer name,
@Cast("caffe::FillerParameter::VarianceNorm*") int[] value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString String name,
@Cast("caffe::FillerParameter::VarianceNorm*") IntPointer value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString BytePointer name,
@Cast("caffe::FillerParameter::VarianceNorm*") IntBuffer value);
public static native @Cast("bool") boolean VarianceNorm_Parse(@StdString String name,
@Cast("caffe::FillerParameter::VarianceNorm*") int[] value);
// accessors -------------------------------------------------------
// optional string type = 1 [default = "constant"];
public native @Cast("bool") boolean has_type();
public native void clear_type();
@MemberGetter public static native int kTypeFieldNumber();
public native @StdString BytePointer type();
public native void set_type(@StdString BytePointer value);
public native void set_type(@StdString String value);
public native void set_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_type();
public native void set_allocated_type(@StdString @Cast({"char*", "std::string*"}) BytePointer type);
// optional float value = 2 [default = 0];
public native @Cast("bool") boolean has_value();
public native void clear_value();
@MemberGetter public static native int kValueFieldNumber();
public native float value();
public native void set_value(float value);
// optional float min = 3 [default = 0];
public native @Cast("bool") boolean has_min();
public native void clear_min();
@MemberGetter public static native int kMinFieldNumber();
public native float min();
public native void set_min(float value);
// optional float max = 4 [default = 1];
public native @Cast("bool") boolean has_max();
public native void clear_max();
@MemberGetter public static native int kMaxFieldNumber();
public native float max();
public native void set_max(float value);
// optional float mean = 5 [default = 0];
public native @Cast("bool") boolean has_mean();
public native void clear_mean();
@MemberGetter public static native int kMeanFieldNumber();
public native float mean();
public native void set_mean(float value);
// optional float std = 6 [default = 1];
public native @Cast("bool") boolean has_std();
public native void clear_std();
@MemberGetter public static native int kStdFieldNumber();
public native float std();
public native void set_std(float value);
// optional int32 sparse = 7 [default = -1];
public native @Cast("bool") boolean has_sparse();
public native void clear_sparse();
@MemberGetter public static native int kSparseFieldNumber();
public native @Cast("google::protobuf::int32") int sparse();
public native void set_sparse(@Cast("google::protobuf::int32") int value);
// optional .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
public native @Cast("bool") boolean has_variance_norm();
public native void clear_variance_norm();
@MemberGetter public static native int kVarianceNormFieldNumber();
public native @Cast("caffe::FillerParameter_VarianceNorm") int variance_norm();
public native void set_variance_norm(@Cast("caffe::FillerParameter_VarianceNorm") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class NetParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NetParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public NetParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public NetParameter position(int position) {
return (NetParameter)super.position(position);
}
public NetParameter() { allocate(); }
private native void allocate();
public NetParameter(@Const @ByRef NetParameter from) { allocate(from); }
private native void allocate(@Const @ByRef NetParameter from);
public native @ByRef @Name("operator =") NetParameter put(@Const @ByRef NetParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef NetParameter default_instance();
public native void Swap(NetParameter other);
// implements Message ----------------------------------------------
public native NetParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef NetParameter from);
public native void MergeFrom(@Const @ByRef NetParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string name = 1;
public native @Cast("bool") boolean has_name();
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
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);
// repeated string input = 3;
public native int input_size();
public native void clear_input();
@MemberGetter public static native int kInputFieldNumber();
public native @StdString BytePointer input(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_input(int index);
public native void set_input(int index, @StdString BytePointer value);
public native void set_input(int index, @StdString String value);
public native void set_input(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_input(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_input();
public native void add_input(@StdString BytePointer value);
public native void add_input(@StdString String value);
public native void add_input(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_input(String value, @Cast("size_t") long size);
// repeated .caffe.BlobShape input_shape = 8;
public native int input_shape_size();
public native void clear_input_shape();
@MemberGetter public static native int kInputShapeFieldNumber();
public native @Const @ByRef BlobShape input_shape(int index);
public native BlobShape mutable_input_shape(int index);
public native BlobShape add_input_shape();
// repeated int32 input_dim = 4;
public native int input_dim_size();
public native void clear_input_dim();
@MemberGetter public static native int kInputDimFieldNumber();
public native @Cast("google::protobuf::int32") int input_dim(int index);
public native void set_input_dim(int index, @Cast("google::protobuf::int32") int value);
public native void add_input_dim(@Cast("google::protobuf::int32") int value);
// optional bool force_backward = 5 [default = false];
public native @Cast("bool") boolean has_force_backward();
public native void clear_force_backward();
@MemberGetter public static native int kForceBackwardFieldNumber();
public native @Cast("bool") boolean force_backward();
public native void set_force_backward(@Cast("bool") boolean value);
// optional .caffe.NetState state = 6;
public native @Cast("bool") boolean has_state();
public native void clear_state();
@MemberGetter public static native int kStateFieldNumber();
public native @Const @ByRef NetState state();
public native NetState mutable_state();
public native NetState release_state();
public native void set_allocated_state(NetState state);
// optional bool debug_info = 7 [default = false];
public native @Cast("bool") boolean has_debug_info();
public native void clear_debug_info();
@MemberGetter public static native int kDebugInfoFieldNumber();
public native @Cast("bool") boolean debug_info();
public native void set_debug_info(@Cast("bool") boolean value);
// repeated .caffe.LayerParameter layer = 100;
public native int layer_size();
public native void clear_layer();
@MemberGetter public static native int kLayerFieldNumber();
public native @Const @ByRef LayerParameter layer(int index);
public native LayerParameter mutable_layer(int index);
public native LayerParameter add_layer();
// repeated .caffe.V1LayerParameter layers = 2;
public native int layers_size();
public native void clear_layers();
@MemberGetter public static native int kLayersFieldNumber();
public native @Const @ByRef V1LayerParameter layers(int index);
public native V1LayerParameter mutable_layers(int index);
public native V1LayerParameter add_layers();
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SolverParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SolverParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SolverParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SolverParameter position(int position) {
return (SolverParameter)super.position(position);
}
public SolverParameter() { allocate(); }
private native void allocate();
public SolverParameter(@Const @ByRef SolverParameter from) { allocate(from); }
private native void allocate(@Const @ByRef SolverParameter from);
public native @ByRef @Name("operator =") SolverParameter put(@Const @ByRef SolverParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SolverParameter default_instance();
public native void Swap(SolverParameter other);
// implements Message ----------------------------------------------
public native SolverParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SolverParameter from);
public native void MergeFrom(@Const @ByRef SolverParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::SolverParameter::SnapshotFormat") int HDF5();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SnapshotFormat") int BINARYPROTO();
public static native @Cast("bool") boolean SnapshotFormat_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SolverParameter::SnapshotFormat") int SnapshotFormat_MIN();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SnapshotFormat") int SnapshotFormat_MAX();
@MemberGetter public static native int SnapshotFormat_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SnapshotFormat_descriptor();
public static native @StdString BytePointer SnapshotFormat_Name(@Cast("caffe::SolverParameter::SnapshotFormat") int value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SnapshotFormat*") IntPointer value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SnapshotFormat*") IntBuffer value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SnapshotFormat*") int[] value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SnapshotFormat*") IntPointer value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SnapshotFormat*") IntBuffer value);
public static native @Cast("bool") boolean SnapshotFormat_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SnapshotFormat*") int[] value);
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverMode") int CPU();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverMode") int GPU();
public static native @Cast("bool") boolean SolverMode_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverMode") int SolverMode_MIN();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverMode") int SolverMode_MAX();
@MemberGetter public static native int SolverMode_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SolverMode_descriptor();
public static native @StdString BytePointer SolverMode_Name(@Cast("caffe::SolverParameter::SolverMode") int value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverMode*") IntPointer value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverMode*") IntBuffer value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverMode*") int[] value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverMode*") IntPointer value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverMode*") IntBuffer value);
public static native @Cast("bool") boolean SolverMode_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverMode*") int[] value);
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int SGD();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int NESTEROV();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int ADAGRAD();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int RMSPROP();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int ADADELTA();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int ADAM();
public static native @Cast("bool") boolean SolverType_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int SolverType_MIN();
@MemberGetter public static native @Cast("const caffe::SolverParameter::SolverType") int SolverType_MAX();
@MemberGetter public static native int SolverType_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer SolverType_descriptor();
public static native @StdString BytePointer SolverType_Name(@Cast("caffe::SolverParameter::SolverType") int value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverType*") IntPointer value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverType*") IntBuffer value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverType*") int[] value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverType*") IntPointer value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString BytePointer name,
@Cast("caffe::SolverParameter::SolverType*") IntBuffer value);
public static native @Cast("bool") boolean SolverType_Parse(@StdString String name,
@Cast("caffe::SolverParameter::SolverType*") int[] value);
// accessors -------------------------------------------------------
// optional string net = 24;
public native @Cast("bool") boolean has_net();
public native void clear_net();
@MemberGetter public static native int kNetFieldNumber();
public native @StdString BytePointer net();
public native void set_net(@StdString BytePointer value);
public native void set_net(@StdString String value);
public native void set_net(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_net(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_net();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_net();
public native void set_allocated_net(@StdString @Cast({"char*", "std::string*"}) BytePointer net);
// optional .caffe.NetParameter net_param = 25;
public native @Cast("bool") boolean has_net_param();
public native void clear_net_param();
@MemberGetter public static native int kNetParamFieldNumber();
public native @Const @ByRef NetParameter net_param();
public native NetParameter mutable_net_param();
public native NetParameter release_net_param();
public native void set_allocated_net_param(NetParameter net_param);
// optional string train_net = 1;
public native @Cast("bool") boolean has_train_net();
public native void clear_train_net();
@MemberGetter public static native int kTrainNetFieldNumber();
public native @StdString BytePointer train_net();
public native void set_train_net(@StdString BytePointer value);
public native void set_train_net(@StdString String value);
public native void set_train_net(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_train_net(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_train_net();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_train_net();
public native void set_allocated_train_net(@StdString @Cast({"char*", "std::string*"}) BytePointer train_net);
// repeated string test_net = 2;
public native int test_net_size();
public native void clear_test_net();
@MemberGetter public static native int kTestNetFieldNumber();
public native @StdString BytePointer test_net(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_test_net(int index);
public native void set_test_net(int index, @StdString BytePointer value);
public native void set_test_net(int index, @StdString String value);
public native void set_test_net(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_test_net(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_test_net();
public native void add_test_net(@StdString BytePointer value);
public native void add_test_net(@StdString String value);
public native void add_test_net(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_test_net(String value, @Cast("size_t") long size);
// optional .caffe.NetParameter train_net_param = 21;
public native @Cast("bool") boolean has_train_net_param();
public native void clear_train_net_param();
@MemberGetter public static native int kTrainNetParamFieldNumber();
public native @Const @ByRef NetParameter train_net_param();
public native NetParameter mutable_train_net_param();
public native NetParameter release_train_net_param();
public native void set_allocated_train_net_param(NetParameter train_net_param);
// repeated .caffe.NetParameter test_net_param = 22;
public native int test_net_param_size();
public native void clear_test_net_param();
@MemberGetter public static native int kTestNetParamFieldNumber();
public native @Const @ByRef NetParameter test_net_param(int index);
public native NetParameter mutable_test_net_param(int index);
public native NetParameter add_test_net_param();
// optional .caffe.NetState train_state = 26;
public native @Cast("bool") boolean has_train_state();
public native void clear_train_state();
@MemberGetter public static native int kTrainStateFieldNumber();
public native @Const @ByRef NetState train_state();
public native NetState mutable_train_state();
public native NetState release_train_state();
public native void set_allocated_train_state(NetState train_state);
// repeated .caffe.NetState test_state = 27;
public native int test_state_size();
public native void clear_test_state();
@MemberGetter public static native int kTestStateFieldNumber();
public native @Const @ByRef NetState test_state(int index);
public native NetState mutable_test_state(int index);
public native NetState add_test_state();
// repeated int32 test_iter = 3;
public native int test_iter_size();
public native void clear_test_iter();
@MemberGetter public static native int kTestIterFieldNumber();
public native @Cast("google::protobuf::int32") int test_iter(int index);
public native void set_test_iter(int index, @Cast("google::protobuf::int32") int value);
public native void add_test_iter(@Cast("google::protobuf::int32") int value);
// optional int32 test_interval = 4 [default = 0];
public native @Cast("bool") boolean has_test_interval();
public native void clear_test_interval();
@MemberGetter public static native int kTestIntervalFieldNumber();
public native @Cast("google::protobuf::int32") int test_interval();
public native void set_test_interval(@Cast("google::protobuf::int32") int value);
// optional bool test_compute_loss = 19 [default = false];
public native @Cast("bool") boolean has_test_compute_loss();
public native void clear_test_compute_loss();
@MemberGetter public static native int kTestComputeLossFieldNumber();
public native @Cast("bool") boolean test_compute_loss();
public native void set_test_compute_loss(@Cast("bool") boolean value);
// optional bool test_initialization = 32 [default = true];
public native @Cast("bool") boolean has_test_initialization();
public native void clear_test_initialization();
@MemberGetter public static native int kTestInitializationFieldNumber();
public native @Cast("bool") boolean test_initialization();
public native void set_test_initialization(@Cast("bool") boolean value);
// optional float base_lr = 5;
public native @Cast("bool") boolean has_base_lr();
public native void clear_base_lr();
@MemberGetter public static native int kBaseLrFieldNumber();
public native float base_lr();
public native void set_base_lr(float value);
// optional int32 display = 6;
public native @Cast("bool") boolean has_display();
public native void clear_display();
@MemberGetter public static native int kDisplayFieldNumber();
public native @Cast("google::protobuf::int32") int display();
public native void set_display(@Cast("google::protobuf::int32") int value);
// optional int32 average_loss = 33 [default = 1];
public native @Cast("bool") boolean has_average_loss();
public native void clear_average_loss();
@MemberGetter public static native int kAverageLossFieldNumber();
public native @Cast("google::protobuf::int32") int average_loss();
public native void set_average_loss(@Cast("google::protobuf::int32") int value);
// optional int32 max_iter = 7;
public native @Cast("bool") boolean has_max_iter();
public native void clear_max_iter();
@MemberGetter public static native int kMaxIterFieldNumber();
public native @Cast("google::protobuf::int32") int max_iter();
public native void set_max_iter(@Cast("google::protobuf::int32") int value);
// optional int32 iter_size = 36 [default = 1];
public native @Cast("bool") boolean has_iter_size();
public native void clear_iter_size();
@MemberGetter public static native int kIterSizeFieldNumber();
public native @Cast("google::protobuf::int32") int iter_size();
public native void set_iter_size(@Cast("google::protobuf::int32") int value);
// optional string lr_policy = 8;
public native @Cast("bool") boolean has_lr_policy();
public native void clear_lr_policy();
@MemberGetter public static native int kLrPolicyFieldNumber();
public native @StdString BytePointer lr_policy();
public native void set_lr_policy(@StdString BytePointer value);
public native void set_lr_policy(@StdString String value);
public native void set_lr_policy(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_lr_policy(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_lr_policy();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_lr_policy();
public native void set_allocated_lr_policy(@StdString @Cast({"char*", "std::string*"}) BytePointer lr_policy);
// optional float gamma = 9;
public native @Cast("bool") boolean has_gamma();
public native void clear_gamma();
@MemberGetter public static native int kGammaFieldNumber();
public native float gamma();
public native void set_gamma(float value);
// optional float power = 10;
public native @Cast("bool") boolean has_power();
public native void clear_power();
@MemberGetter public static native int kPowerFieldNumber();
public native float power();
public native void set_power(float value);
// optional float momentum = 11;
public native @Cast("bool") boolean has_momentum();
public native void clear_momentum();
@MemberGetter public static native int kMomentumFieldNumber();
public native float momentum();
public native void set_momentum(float value);
// optional float weight_decay = 12;
public native @Cast("bool") boolean has_weight_decay();
public native void clear_weight_decay();
@MemberGetter public static native int kWeightDecayFieldNumber();
public native float weight_decay();
public native void set_weight_decay(float value);
// optional string regularization_type = 29 [default = "L2"];
public native @Cast("bool") boolean has_regularization_type();
public native void clear_regularization_type();
@MemberGetter public static native int kRegularizationTypeFieldNumber();
public native @StdString BytePointer regularization_type();
public native void set_regularization_type(@StdString BytePointer value);
public native void set_regularization_type(@StdString String value);
public native void set_regularization_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_regularization_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_regularization_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_regularization_type();
public native void set_allocated_regularization_type(@StdString @Cast({"char*", "std::string*"}) BytePointer regularization_type);
// optional int32 stepsize = 13;
public native @Cast("bool") boolean has_stepsize();
public native void clear_stepsize();
@MemberGetter public static native int kStepsizeFieldNumber();
public native @Cast("google::protobuf::int32") int stepsize();
public native void set_stepsize(@Cast("google::protobuf::int32") int value);
// repeated int32 stepvalue = 34;
public native int stepvalue_size();
public native void clear_stepvalue();
@MemberGetter public static native int kStepvalueFieldNumber();
public native @Cast("google::protobuf::int32") int stepvalue(int index);
public native void set_stepvalue(int index, @Cast("google::protobuf::int32") int value);
public native void add_stepvalue(@Cast("google::protobuf::int32") int value);
// optional float clip_gradients = 35 [default = -1];
public native @Cast("bool") boolean has_clip_gradients();
public native void clear_clip_gradients();
@MemberGetter public static native int kClipGradientsFieldNumber();
public native float clip_gradients();
public native void set_clip_gradients(float value);
// optional int32 snapshot = 14 [default = 0];
public native @Cast("bool") boolean has_snapshot();
public native void clear_snapshot();
@MemberGetter public static native int kSnapshotFieldNumber();
public native @Cast("google::protobuf::int32") int snapshot();
public native void set_snapshot(@Cast("google::protobuf::int32") int value);
// optional string snapshot_prefix = 15;
public native @Cast("bool") boolean has_snapshot_prefix();
public native void clear_snapshot_prefix();
@MemberGetter public static native int kSnapshotPrefixFieldNumber();
public native @StdString BytePointer snapshot_prefix();
public native void set_snapshot_prefix(@StdString BytePointer value);
public native void set_snapshot_prefix(@StdString String value);
public native void set_snapshot_prefix(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_snapshot_prefix(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_snapshot_prefix();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_snapshot_prefix();
public native void set_allocated_snapshot_prefix(@StdString @Cast({"char*", "std::string*"}) BytePointer snapshot_prefix);
// optional bool snapshot_diff = 16 [default = false];
public native @Cast("bool") boolean has_snapshot_diff();
public native void clear_snapshot_diff();
@MemberGetter public static native int kSnapshotDiffFieldNumber();
public native @Cast("bool") boolean snapshot_diff();
public native void set_snapshot_diff(@Cast("bool") boolean value);
// optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
public native @Cast("bool") boolean has_snapshot_format();
public native void clear_snapshot_format();
@MemberGetter public static native int kSnapshotFormatFieldNumber();
public native @Cast("caffe::SolverParameter_SnapshotFormat") int snapshot_format();
public native void set_snapshot_format(@Cast("caffe::SolverParameter_SnapshotFormat") int value);
// optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
public native @Cast("bool") boolean has_solver_mode();
public native void clear_solver_mode();
@MemberGetter public static native int kSolverModeFieldNumber();
public native @Cast("caffe::SolverParameter_SolverMode") int solver_mode();
public native void set_solver_mode(@Cast("caffe::SolverParameter_SolverMode") int value);
// optional int32 device_id = 18 [default = 0];
public native @Cast("bool") boolean has_device_id();
public native void clear_device_id();
@MemberGetter public static native int kDeviceIdFieldNumber();
public native @Cast("google::protobuf::int32") int device_id();
public native void set_device_id(@Cast("google::protobuf::int32") int value);
// optional int64 random_seed = 20 [default = -1];
public native @Cast("bool") boolean has_random_seed();
public native void clear_random_seed();
@MemberGetter public static native int kRandomSeedFieldNumber();
public native @Cast("google::protobuf::int64") long random_seed();
public native void set_random_seed(@Cast("google::protobuf::int64") long value);
// optional string type = 40 [default = "SGD"];
public native @Cast("bool") boolean has_type();
public native void clear_type();
@MemberGetter public static native int kTypeFieldNumber();
public native @StdString BytePointer type();
public native void set_type(@StdString BytePointer value);
public native void set_type(@StdString String value);
public native void set_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_type();
public native void set_allocated_type(@StdString @Cast({"char*", "std::string*"}) BytePointer type);
// optional float delta = 31 [default = 1e-08];
public native @Cast("bool") boolean has_delta();
public native void clear_delta();
@MemberGetter public static native int kDeltaFieldNumber();
public native float delta();
public native void set_delta(float value);
// optional float momentum2 = 39 [default = 0.999];
public native @Cast("bool") boolean has_momentum2();
public native void clear_momentum2();
@MemberGetter public static native int kMomentum2FieldNumber();
public native float momentum2();
public native void set_momentum2(float value);
// optional float rms_decay = 38;
public native @Cast("bool") boolean has_rms_decay();
public native void clear_rms_decay();
@MemberGetter public static native int kRmsDecayFieldNumber();
public native float rms_decay();
public native void set_rms_decay(float value);
// optional bool debug_info = 23 [default = false];
public native @Cast("bool") boolean has_debug_info();
public native void clear_debug_info();
@MemberGetter public static native int kDebugInfoFieldNumber();
public native @Cast("bool") boolean debug_info();
public native void set_debug_info(@Cast("bool") boolean value);
// optional bool snapshot_after_train = 28 [default = true];
public native @Cast("bool") boolean has_snapshot_after_train();
public native void clear_snapshot_after_train();
@MemberGetter public static native int kSnapshotAfterTrainFieldNumber();
public native @Cast("bool") boolean snapshot_after_train();
public native void set_snapshot_after_train(@Cast("bool") boolean value);
// optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
public native @Cast("bool") boolean has_solver_type();
public native void clear_solver_type();
@MemberGetter public static native int kSolverTypeFieldNumber();
public native @Cast("caffe::SolverParameter_SolverType") int solver_type();
public native void set_solver_type(@Cast("caffe::SolverParameter_SolverType") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SolverState extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SolverState(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SolverState(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SolverState position(int position) {
return (SolverState)super.position(position);
}
public SolverState() { allocate(); }
private native void allocate();
public SolverState(@Const @ByRef SolverState from) { allocate(from); }
private native void allocate(@Const @ByRef SolverState from);
public native @ByRef @Name("operator =") SolverState put(@Const @ByRef SolverState from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SolverState default_instance();
public native void Swap(SolverState other);
// implements Message ----------------------------------------------
public native SolverState New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SolverState from);
public native void MergeFrom(@Const @ByRef SolverState from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 iter = 1;
public native @Cast("bool") boolean has_iter();
public native void clear_iter();
@MemberGetter public static native int kIterFieldNumber();
public native @Cast("google::protobuf::int32") int iter();
public native void set_iter(@Cast("google::protobuf::int32") int value);
// optional string learned_net = 2;
public native @Cast("bool") boolean has_learned_net();
public native void clear_learned_net();
@MemberGetter public static native int kLearnedNetFieldNumber();
public native @StdString BytePointer learned_net();
public native void set_learned_net(@StdString BytePointer value);
public native void set_learned_net(@StdString String value);
public native void set_learned_net(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_learned_net(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_learned_net();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_learned_net();
public native void set_allocated_learned_net(@StdString @Cast({"char*", "std::string*"}) BytePointer learned_net);
// repeated .caffe.BlobProto history = 3;
public native int history_size();
public native void clear_history();
@MemberGetter public static native int kHistoryFieldNumber();
public native @Const @ByRef BlobProto history(int index);
public native BlobProto mutable_history(int index);
public native BlobProto add_history();
// optional int32 current_step = 4 [default = 0];
public native @Cast("bool") boolean has_current_step();
public native void clear_current_step();
@MemberGetter public static native int kCurrentStepFieldNumber();
public native @Cast("google::protobuf::int32") int current_step();
public native void set_current_step(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class NetState extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NetState(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public NetState(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public NetState position(int position) {
return (NetState)super.position(position);
}
public NetState() { allocate(); }
private native void allocate();
public NetState(@Const @ByRef NetState from) { allocate(from); }
private native void allocate(@Const @ByRef NetState from);
public native @ByRef @Name("operator =") NetState put(@Const @ByRef NetState from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef NetState default_instance();
public native void Swap(NetState other);
// implements Message ----------------------------------------------
public native NetState New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef NetState from);
public native void MergeFrom(@Const @ByRef NetState from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .caffe.Phase phase = 1 [default = TEST];
public native @Cast("bool") boolean has_phase();
public native void clear_phase();
@MemberGetter public static native int kPhaseFieldNumber();
public native @Cast("caffe::Phase") int phase();
public native void set_phase(@Cast("caffe::Phase") int value);
// optional int32 level = 2 [default = 0];
public native @Cast("bool") boolean has_level();
public native void clear_level();
@MemberGetter public static native int kLevelFieldNumber();
public native @Cast("google::protobuf::int32") int level();
public native void set_level(@Cast("google::protobuf::int32") int value);
// repeated string stage = 3;
public native int stage_size();
public native void clear_stage();
@MemberGetter public static native int kStageFieldNumber();
public native @StdString BytePointer stage(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_stage(int index);
public native void set_stage(int index, @StdString BytePointer value);
public native void set_stage(int index, @StdString String value);
public native void set_stage(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_stage(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_stage();
public native void add_stage(@StdString BytePointer value);
public native void add_stage(@StdString String value);
public native void add_stage(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_stage(String value, @Cast("size_t") long size);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class NetStateRule extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public NetStateRule(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public NetStateRule(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public NetStateRule position(int position) {
return (NetStateRule)super.position(position);
}
public NetStateRule() { allocate(); }
private native void allocate();
public NetStateRule(@Const @ByRef NetStateRule from) { allocate(from); }
private native void allocate(@Const @ByRef NetStateRule from);
public native @ByRef @Name("operator =") NetStateRule put(@Const @ByRef NetStateRule from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef NetStateRule default_instance();
public native void Swap(NetStateRule other);
// implements Message ----------------------------------------------
public native NetStateRule New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef NetStateRule from);
public native void MergeFrom(@Const @ByRef NetStateRule from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .caffe.Phase phase = 1;
public native @Cast("bool") boolean has_phase();
public native void clear_phase();
@MemberGetter public static native int kPhaseFieldNumber();
public native @Cast("caffe::Phase") int phase();
public native void set_phase(@Cast("caffe::Phase") int value);
// optional int32 min_level = 2;
public native @Cast("bool") boolean has_min_level();
public native void clear_min_level();
@MemberGetter public static native int kMinLevelFieldNumber();
public native @Cast("google::protobuf::int32") int min_level();
public native void set_min_level(@Cast("google::protobuf::int32") int value);
// optional int32 max_level = 3;
public native @Cast("bool") boolean has_max_level();
public native void clear_max_level();
@MemberGetter public static native int kMaxLevelFieldNumber();
public native @Cast("google::protobuf::int32") int max_level();
public native void set_max_level(@Cast("google::protobuf::int32") int value);
// repeated string stage = 4;
public native int stage_size();
public native void clear_stage();
@MemberGetter public static native int kStageFieldNumber();
public native @StdString BytePointer stage(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_stage(int index);
public native void set_stage(int index, @StdString BytePointer value);
public native void set_stage(int index, @StdString String value);
public native void set_stage(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_stage(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_stage();
public native void add_stage(@StdString BytePointer value);
public native void add_stage(@StdString String value);
public native void add_stage(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_stage(String value, @Cast("size_t") long size);
// repeated string not_stage = 5;
public native int not_stage_size();
public native void clear_not_stage();
@MemberGetter public static native int kNotStageFieldNumber();
public native @StdString BytePointer not_stage(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_not_stage(int index);
public native void set_not_stage(int index, @StdString BytePointer value);
public native void set_not_stage(int index, @StdString String value);
public native void set_not_stage(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_not_stage(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_not_stage();
public native void add_not_stage(@StdString BytePointer value);
public native void add_not_stage(@StdString String value);
public native void add_not_stage(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_not_stage(String value, @Cast("size_t") long size);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ParamSpec extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ParamSpec(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ParamSpec(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ParamSpec position(int position) {
return (ParamSpec)super.position(position);
}
public ParamSpec() { allocate(); }
private native void allocate();
public ParamSpec(@Const @ByRef ParamSpec from) { allocate(from); }
private native void allocate(@Const @ByRef ParamSpec from);
public native @ByRef @Name("operator =") ParamSpec put(@Const @ByRef ParamSpec from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ParamSpec default_instance();
public native void Swap(ParamSpec other);
// implements Message ----------------------------------------------
public native ParamSpec New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ParamSpec from);
public native void MergeFrom(@Const @ByRef ParamSpec from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::ParamSpec::DimCheckMode") int STRICT();
@MemberGetter public static native @Cast("const caffe::ParamSpec::DimCheckMode") int PERMISSIVE();
public static native @Cast("bool") boolean DimCheckMode_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::ParamSpec::DimCheckMode") int DimCheckMode_MIN();
@MemberGetter public static native @Cast("const caffe::ParamSpec::DimCheckMode") int DimCheckMode_MAX();
@MemberGetter public static native int DimCheckMode_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer DimCheckMode_descriptor();
public static native @StdString BytePointer DimCheckMode_Name(@Cast("caffe::ParamSpec::DimCheckMode") int value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::ParamSpec::DimCheckMode*") IntPointer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::ParamSpec::DimCheckMode*") IntBuffer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::ParamSpec::DimCheckMode*") int[] value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::ParamSpec::DimCheckMode*") IntPointer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::ParamSpec::DimCheckMode*") IntBuffer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::ParamSpec::DimCheckMode*") int[] value);
// accessors -------------------------------------------------------
// optional string name = 1;
public native @Cast("bool") boolean has_name();
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
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);
// optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
public native @Cast("bool") boolean has_share_mode();
public native void clear_share_mode();
@MemberGetter public static native int kShareModeFieldNumber();
public native @Cast("caffe::ParamSpec_DimCheckMode") int share_mode();
public native void set_share_mode(@Cast("caffe::ParamSpec_DimCheckMode") int value);
// optional float lr_mult = 3 [default = 1];
public native @Cast("bool") boolean has_lr_mult();
public native void clear_lr_mult();
@MemberGetter public static native int kLrMultFieldNumber();
public native float lr_mult();
public native void set_lr_mult(float value);
// optional float decay_mult = 4 [default = 1];
public native @Cast("bool") boolean has_decay_mult();
public native void clear_decay_mult();
@MemberGetter public static native int kDecayMultFieldNumber();
public native float decay_mult();
public native void set_decay_mult(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class LayerParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LayerParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public LayerParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public LayerParameter position(int position) {
return (LayerParameter)super.position(position);
}
public LayerParameter() { allocate(); }
private native void allocate();
public LayerParameter(@Const @ByRef LayerParameter from) { allocate(from); }
private native void allocate(@Const @ByRef LayerParameter from);
public native @ByRef @Name("operator =") LayerParameter put(@Const @ByRef LayerParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef LayerParameter default_instance();
public native void Swap(LayerParameter other);
// implements Message ----------------------------------------------
public native LayerParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef LayerParameter from);
public native void MergeFrom(@Const @ByRef LayerParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string name = 1;
public native @Cast("bool") boolean has_name();
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
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);
// optional string type = 2;
public native @Cast("bool") boolean has_type();
public native void clear_type();
@MemberGetter public static native int kTypeFieldNumber();
public native @StdString BytePointer type();
public native void set_type(@StdString BytePointer value);
public native void set_type(@StdString String value);
public native void set_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_type();
public native void set_allocated_type(@StdString @Cast({"char*", "std::string*"}) BytePointer type);
// repeated string bottom = 3;
public native int bottom_size();
public native void clear_bottom();
@MemberGetter public static native int kBottomFieldNumber();
public native @StdString BytePointer bottom(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_bottom(int index);
public native void set_bottom(int index, @StdString BytePointer value);
public native void set_bottom(int index, @StdString String value);
public native void set_bottom(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_bottom(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_bottom();
public native void add_bottom(@StdString BytePointer value);
public native void add_bottom(@StdString String value);
public native void add_bottom(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_bottom(String value, @Cast("size_t") long size);
// repeated string top = 4;
public native int top_size();
public native void clear_top();
@MemberGetter public static native int kTopFieldNumber();
public native @StdString BytePointer top(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_top(int index);
public native void set_top(int index, @StdString BytePointer value);
public native void set_top(int index, @StdString String value);
public native void set_top(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_top(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_top();
public native void add_top(@StdString BytePointer value);
public native void add_top(@StdString String value);
public native void add_top(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_top(String value, @Cast("size_t") long size);
// optional .caffe.Phase phase = 10;
public native @Cast("bool") boolean has_phase();
public native void clear_phase();
@MemberGetter public static native int kPhaseFieldNumber();
public native @Cast("caffe::Phase") int phase();
public native void set_phase(@Cast("caffe::Phase") int value);
// repeated float loss_weight = 5;
public native int loss_weight_size();
public native void clear_loss_weight();
@MemberGetter public static native int kLossWeightFieldNumber();
public native float loss_weight(int index);
public native void set_loss_weight(int index, float value);
public native void add_loss_weight(float value);
// repeated .caffe.ParamSpec param = 6;
public native int param_size();
public native void clear_param();
@MemberGetter public static native int kParamFieldNumber();
public native @Const @ByRef ParamSpec param(int index);
public native ParamSpec mutable_param(int index);
public native ParamSpec add_param();
// repeated .caffe.BlobProto blobs = 7;
public native int blobs_size();
public native void clear_blobs();
@MemberGetter public static native int kBlobsFieldNumber();
public native @Const @ByRef BlobProto blobs(int index);
public native BlobProto mutable_blobs(int index);
public native BlobProto add_blobs();
// repeated bool propagate_down = 11;
public native int propagate_down_size();
public native void clear_propagate_down();
@MemberGetter public static native int kPropagateDownFieldNumber();
public native @Cast("bool") boolean propagate_down(int index);
public native void set_propagate_down(int index, @Cast("bool") boolean value);
public native void add_propagate_down(@Cast("bool") boolean value);
// repeated .caffe.NetStateRule include = 8;
public native int include_size();
public native void clear_include();
@MemberGetter public static native int kIncludeFieldNumber();
public native @Const @ByRef NetStateRule include(int index);
public native NetStateRule mutable_include(int index);
public native NetStateRule add_include();
// repeated .caffe.NetStateRule exclude = 9;
public native int exclude_size();
public native void clear_exclude();
@MemberGetter public static native int kExcludeFieldNumber();
public native @Const @ByRef NetStateRule exclude(int index);
public native NetStateRule mutable_exclude(int index);
public native NetStateRule add_exclude();
// optional .caffe.TransformationParameter transform_param = 100;
public native @Cast("bool") boolean has_transform_param();
public native void clear_transform_param();
@MemberGetter public static native int kTransformParamFieldNumber();
public native @Const @ByRef TransformationParameter transform_param();
public native TransformationParameter mutable_transform_param();
public native TransformationParameter release_transform_param();
public native void set_allocated_transform_param(TransformationParameter transform_param);
// optional .caffe.LossParameter loss_param = 101;
public native @Cast("bool") boolean has_loss_param();
public native void clear_loss_param();
@MemberGetter public static native int kLossParamFieldNumber();
public native @Const @ByRef LossParameter loss_param();
public native LossParameter mutable_loss_param();
public native LossParameter release_loss_param();
public native void set_allocated_loss_param(LossParameter loss_param);
// optional .caffe.AccuracyParameter accuracy_param = 102;
public native @Cast("bool") boolean has_accuracy_param();
public native void clear_accuracy_param();
@MemberGetter public static native int kAccuracyParamFieldNumber();
public native @Const @ByRef AccuracyParameter accuracy_param();
public native AccuracyParameter mutable_accuracy_param();
public native AccuracyParameter release_accuracy_param();
public native void set_allocated_accuracy_param(AccuracyParameter accuracy_param);
// optional .caffe.ArgMaxParameter argmax_param = 103;
public native @Cast("bool") boolean has_argmax_param();
public native void clear_argmax_param();
@MemberGetter public static native int kArgmaxParamFieldNumber();
public native @Const @ByRef ArgMaxParameter argmax_param();
public native ArgMaxParameter mutable_argmax_param();
public native ArgMaxParameter release_argmax_param();
public native void set_allocated_argmax_param(ArgMaxParameter argmax_param);
// optional .caffe.BatchNormParameter batch_norm_param = 139;
public native @Cast("bool") boolean has_batch_norm_param();
public native void clear_batch_norm_param();
@MemberGetter public static native int kBatchNormParamFieldNumber();
public native @Const @ByRef BatchNormParameter batch_norm_param();
public native BatchNormParameter mutable_batch_norm_param();
public native BatchNormParameter release_batch_norm_param();
public native void set_allocated_batch_norm_param(BatchNormParameter batch_norm_param);
// optional .caffe.ConcatParameter concat_param = 104;
public native @Cast("bool") boolean has_concat_param();
public native void clear_concat_param();
@MemberGetter public static native int kConcatParamFieldNumber();
public native @Const @ByRef ConcatParameter concat_param();
public native ConcatParameter mutable_concat_param();
public native ConcatParameter release_concat_param();
public native void set_allocated_concat_param(ConcatParameter concat_param);
// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
public native @Cast("bool") boolean has_contrastive_loss_param();
public native void clear_contrastive_loss_param();
@MemberGetter public static native int kContrastiveLossParamFieldNumber();
public native @Const @ByRef ContrastiveLossParameter contrastive_loss_param();
public native ContrastiveLossParameter mutable_contrastive_loss_param();
public native ContrastiveLossParameter release_contrastive_loss_param();
public native void set_allocated_contrastive_loss_param(ContrastiveLossParameter contrastive_loss_param);
// optional .caffe.ConvolutionParameter convolution_param = 106;
public native @Cast("bool") boolean has_convolution_param();
public native void clear_convolution_param();
@MemberGetter public static native int kConvolutionParamFieldNumber();
public native @Const @ByRef ConvolutionParameter convolution_param();
public native ConvolutionParameter mutable_convolution_param();
public native ConvolutionParameter release_convolution_param();
public native void set_allocated_convolution_param(ConvolutionParameter convolution_param);
// optional .caffe.DataParameter data_param = 107;
public native @Cast("bool") boolean has_data_param();
public native void clear_data_param();
@MemberGetter public static native int kDataParamFieldNumber();
public native @Const @ByRef DataParameter data_param();
public native DataParameter mutable_data_param();
public native DataParameter release_data_param();
public native void set_allocated_data_param(DataParameter data_param);
// optional .caffe.DropoutParameter dropout_param = 108;
public native @Cast("bool") boolean has_dropout_param();
public native void clear_dropout_param();
@MemberGetter public static native int kDropoutParamFieldNumber();
public native @Const @ByRef DropoutParameter dropout_param();
public native DropoutParameter mutable_dropout_param();
public native DropoutParameter release_dropout_param();
public native void set_allocated_dropout_param(DropoutParameter dropout_param);
// optional .caffe.DummyDataParameter dummy_data_param = 109;
public native @Cast("bool") boolean has_dummy_data_param();
public native void clear_dummy_data_param();
@MemberGetter public static native int kDummyDataParamFieldNumber();
public native @Const @ByRef DummyDataParameter dummy_data_param();
public native DummyDataParameter mutable_dummy_data_param();
public native DummyDataParameter release_dummy_data_param();
public native void set_allocated_dummy_data_param(DummyDataParameter dummy_data_param);
// optional .caffe.EltwiseParameter eltwise_param = 110;
public native @Cast("bool") boolean has_eltwise_param();
public native void clear_eltwise_param();
@MemberGetter public static native int kEltwiseParamFieldNumber();
public native @Const @ByRef EltwiseParameter eltwise_param();
public native EltwiseParameter mutable_eltwise_param();
public native EltwiseParameter release_eltwise_param();
public native void set_allocated_eltwise_param(EltwiseParameter eltwise_param);
// optional .caffe.EmbedParameter embed_param = 137;
public native @Cast("bool") boolean has_embed_param();
public native void clear_embed_param();
@MemberGetter public static native int kEmbedParamFieldNumber();
public native @Const @ByRef EmbedParameter embed_param();
public native EmbedParameter mutable_embed_param();
public native EmbedParameter release_embed_param();
public native void set_allocated_embed_param(EmbedParameter embed_param);
// optional .caffe.ExpParameter exp_param = 111;
public native @Cast("bool") boolean has_exp_param();
public native void clear_exp_param();
@MemberGetter public static native int kExpParamFieldNumber();
public native @Const @ByRef ExpParameter exp_param();
public native ExpParameter mutable_exp_param();
public native ExpParameter release_exp_param();
public native void set_allocated_exp_param(ExpParameter exp_param);
// optional .caffe.FlattenParameter flatten_param = 135;
public native @Cast("bool") boolean has_flatten_param();
public native void clear_flatten_param();
@MemberGetter public static native int kFlattenParamFieldNumber();
public native @Const @ByRef FlattenParameter flatten_param();
public native FlattenParameter mutable_flatten_param();
public native FlattenParameter release_flatten_param();
public native void set_allocated_flatten_param(FlattenParameter flatten_param);
// optional .caffe.HDF5DataParameter hdf5_data_param = 112;
public native @Cast("bool") boolean has_hdf5_data_param();
public native void clear_hdf5_data_param();
@MemberGetter public static native int kHdf5DataParamFieldNumber();
public native @Const @ByRef HDF5DataParameter hdf5_data_param();
public native HDF5DataParameter mutable_hdf5_data_param();
public native HDF5DataParameter release_hdf5_data_param();
public native void set_allocated_hdf5_data_param(HDF5DataParameter hdf5_data_param);
// optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
public native @Cast("bool") boolean has_hdf5_output_param();
public native void clear_hdf5_output_param();
@MemberGetter public static native int kHdf5OutputParamFieldNumber();
public native @Const @ByRef HDF5OutputParameter hdf5_output_param();
public native HDF5OutputParameter mutable_hdf5_output_param();
public native HDF5OutputParameter release_hdf5_output_param();
public native void set_allocated_hdf5_output_param(HDF5OutputParameter hdf5_output_param);
// optional .caffe.HingeLossParameter hinge_loss_param = 114;
public native @Cast("bool") boolean has_hinge_loss_param();
public native void clear_hinge_loss_param();
@MemberGetter public static native int kHingeLossParamFieldNumber();
public native @Const @ByRef HingeLossParameter hinge_loss_param();
public native HingeLossParameter mutable_hinge_loss_param();
public native HingeLossParameter release_hinge_loss_param();
public native void set_allocated_hinge_loss_param(HingeLossParameter hinge_loss_param);
// optional .caffe.ImageDataParameter image_data_param = 115;
public native @Cast("bool") boolean has_image_data_param();
public native void clear_image_data_param();
@MemberGetter public static native int kImageDataParamFieldNumber();
public native @Const @ByRef ImageDataParameter image_data_param();
public native ImageDataParameter mutable_image_data_param();
public native ImageDataParameter release_image_data_param();
public native void set_allocated_image_data_param(ImageDataParameter image_data_param);
// optional .caffe.InfogainLossParameter infogain_loss_param = 116;
public native @Cast("bool") boolean has_infogain_loss_param();
public native void clear_infogain_loss_param();
@MemberGetter public static native int kInfogainLossParamFieldNumber();
public native @Const @ByRef InfogainLossParameter infogain_loss_param();
public native InfogainLossParameter mutable_infogain_loss_param();
public native InfogainLossParameter release_infogain_loss_param();
public native void set_allocated_infogain_loss_param(InfogainLossParameter infogain_loss_param);
// optional .caffe.InnerProductParameter inner_product_param = 117;
public native @Cast("bool") boolean has_inner_product_param();
public native void clear_inner_product_param();
@MemberGetter public static native int kInnerProductParamFieldNumber();
public native @Const @ByRef InnerProductParameter inner_product_param();
public native InnerProductParameter mutable_inner_product_param();
public native InnerProductParameter release_inner_product_param();
public native void set_allocated_inner_product_param(InnerProductParameter inner_product_param);
// optional .caffe.LogParameter log_param = 134;
public native @Cast("bool") boolean has_log_param();
public native void clear_log_param();
@MemberGetter public static native int kLogParamFieldNumber();
public native @Const @ByRef LogParameter log_param();
public native LogParameter mutable_log_param();
public native LogParameter release_log_param();
public native void set_allocated_log_param(LogParameter log_param);
// optional .caffe.LRNParameter lrn_param = 118;
public native @Cast("bool") boolean has_lrn_param();
public native void clear_lrn_param();
@MemberGetter public static native int kLrnParamFieldNumber();
public native @Const @ByRef LRNParameter lrn_param();
public native LRNParameter mutable_lrn_param();
public native LRNParameter release_lrn_param();
public native void set_allocated_lrn_param(LRNParameter lrn_param);
// optional .caffe.MemoryDataParameter memory_data_param = 119;
public native @Cast("bool") boolean has_memory_data_param();
public native void clear_memory_data_param();
@MemberGetter public static native int kMemoryDataParamFieldNumber();
public native @Const @ByRef MemoryDataParameter memory_data_param();
public native MemoryDataParameter mutable_memory_data_param();
public native MemoryDataParameter release_memory_data_param();
public native void set_allocated_memory_data_param(MemoryDataParameter memory_data_param);
// optional .caffe.MVNParameter mvn_param = 120;
public native @Cast("bool") boolean has_mvn_param();
public native void clear_mvn_param();
@MemberGetter public static native int kMvnParamFieldNumber();
public native @Const @ByRef MVNParameter mvn_param();
public native MVNParameter mutable_mvn_param();
public native MVNParameter release_mvn_param();
public native void set_allocated_mvn_param(MVNParameter mvn_param);
// optional .caffe.PoolingParameter pooling_param = 121;
public native @Cast("bool") boolean has_pooling_param();
public native void clear_pooling_param();
@MemberGetter public static native int kPoolingParamFieldNumber();
public native @Const @ByRef PoolingParameter pooling_param();
public native PoolingParameter mutable_pooling_param();
public native PoolingParameter release_pooling_param();
public native void set_allocated_pooling_param(PoolingParameter pooling_param);
// optional .caffe.PowerParameter power_param = 122;
public native @Cast("bool") boolean has_power_param();
public native void clear_power_param();
@MemberGetter public static native int kPowerParamFieldNumber();
public native @Const @ByRef PowerParameter power_param();
public native PowerParameter mutable_power_param();
public native PowerParameter release_power_param();
public native void set_allocated_power_param(PowerParameter power_param);
// optional .caffe.PReLUParameter prelu_param = 131;
public native @Cast("bool") boolean has_prelu_param();
public native void clear_prelu_param();
@MemberGetter public static native int kPreluParamFieldNumber();
public native @Const @ByRef PReLUParameter prelu_param();
public native PReLUParameter mutable_prelu_param();
public native PReLUParameter release_prelu_param();
public native void set_allocated_prelu_param(PReLUParameter prelu_param);
// optional .caffe.PythonParameter python_param = 130;
public native @Cast("bool") boolean has_python_param();
public native void clear_python_param();
@MemberGetter public static native int kPythonParamFieldNumber();
public native @Const @ByRef PythonParameter python_param();
public native PythonParameter mutable_python_param();
public native PythonParameter release_python_param();
public native void set_allocated_python_param(PythonParameter python_param);
// optional .caffe.ReductionParameter reduction_param = 136;
public native @Cast("bool") boolean has_reduction_param();
public native void clear_reduction_param();
@MemberGetter public static native int kReductionParamFieldNumber();
public native @Const @ByRef ReductionParameter reduction_param();
public native ReductionParameter mutable_reduction_param();
public native ReductionParameter release_reduction_param();
public native void set_allocated_reduction_param(ReductionParameter reduction_param);
// optional .caffe.ReLUParameter relu_param = 123;
public native @Cast("bool") boolean has_relu_param();
public native void clear_relu_param();
@MemberGetter public static native int kReluParamFieldNumber();
public native @Const @ByRef ReLUParameter relu_param();
public native ReLUParameter mutable_relu_param();
public native ReLUParameter release_relu_param();
public native void set_allocated_relu_param(ReLUParameter relu_param);
// optional .caffe.ReshapeParameter reshape_param = 133;
public native @Cast("bool") boolean has_reshape_param();
public native void clear_reshape_param();
@MemberGetter public static native int kReshapeParamFieldNumber();
public native @Const @ByRef ReshapeParameter reshape_param();
public native ReshapeParameter mutable_reshape_param();
public native ReshapeParameter release_reshape_param();
public native void set_allocated_reshape_param(ReshapeParameter reshape_param);
// optional .caffe.SigmoidParameter sigmoid_param = 124;
public native @Cast("bool") boolean has_sigmoid_param();
public native void clear_sigmoid_param();
@MemberGetter public static native int kSigmoidParamFieldNumber();
public native @Const @ByRef SigmoidParameter sigmoid_param();
public native SigmoidParameter mutable_sigmoid_param();
public native SigmoidParameter release_sigmoid_param();
public native void set_allocated_sigmoid_param(SigmoidParameter sigmoid_param);
// optional .caffe.SoftmaxParameter softmax_param = 125;
public native @Cast("bool") boolean has_softmax_param();
public native void clear_softmax_param();
@MemberGetter public static native int kSoftmaxParamFieldNumber();
public native @Const @ByRef SoftmaxParameter softmax_param();
public native SoftmaxParameter mutable_softmax_param();
public native SoftmaxParameter release_softmax_param();
public native void set_allocated_softmax_param(SoftmaxParameter softmax_param);
// optional .caffe.SPPParameter spp_param = 132;
public native @Cast("bool") boolean has_spp_param();
public native void clear_spp_param();
@MemberGetter public static native int kSppParamFieldNumber();
public native @Const @ByRef SPPParameter spp_param();
public native SPPParameter mutable_spp_param();
public native SPPParameter release_spp_param();
public native void set_allocated_spp_param(SPPParameter spp_param);
// optional .caffe.SliceParameter slice_param = 126;
public native @Cast("bool") boolean has_slice_param();
public native void clear_slice_param();
@MemberGetter public static native int kSliceParamFieldNumber();
public native @Const @ByRef SliceParameter slice_param();
public native SliceParameter mutable_slice_param();
public native SliceParameter release_slice_param();
public native void set_allocated_slice_param(SliceParameter slice_param);
// optional .caffe.TanHParameter tanh_param = 127;
public native @Cast("bool") boolean has_tanh_param();
public native void clear_tanh_param();
@MemberGetter public static native int kTanhParamFieldNumber();
public native @Const @ByRef TanHParameter tanh_param();
public native TanHParameter mutable_tanh_param();
public native TanHParameter release_tanh_param();
public native void set_allocated_tanh_param(TanHParameter tanh_param);
// optional .caffe.ThresholdParameter threshold_param = 128;
public native @Cast("bool") boolean has_threshold_param();
public native void clear_threshold_param();
@MemberGetter public static native int kThresholdParamFieldNumber();
public native @Const @ByRef ThresholdParameter threshold_param();
public native ThresholdParameter mutable_threshold_param();
public native ThresholdParameter release_threshold_param();
public native void set_allocated_threshold_param(ThresholdParameter threshold_param);
// optional .caffe.TileParameter tile_param = 138;
public native @Cast("bool") boolean has_tile_param();
public native void clear_tile_param();
@MemberGetter public static native int kTileParamFieldNumber();
public native @Const @ByRef TileParameter tile_param();
public native TileParameter mutable_tile_param();
public native TileParameter release_tile_param();
public native void set_allocated_tile_param(TileParameter tile_param);
// optional .caffe.WindowDataParameter window_data_param = 129;
public native @Cast("bool") boolean has_window_data_param();
public native void clear_window_data_param();
@MemberGetter public static native int kWindowDataParamFieldNumber();
public native @Const @ByRef WindowDataParameter window_data_param();
public native WindowDataParameter mutable_window_data_param();
public native WindowDataParameter release_window_data_param();
public native void set_allocated_window_data_param(WindowDataParameter window_data_param);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class TransformationParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TransformationParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public TransformationParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public TransformationParameter position(int position) {
return (TransformationParameter)super.position(position);
}
public TransformationParameter() { allocate(); }
private native void allocate();
public TransformationParameter(@Const @ByRef TransformationParameter from) { allocate(from); }
private native void allocate(@Const @ByRef TransformationParameter from);
public native @ByRef @Name("operator =") TransformationParameter put(@Const @ByRef TransformationParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef TransformationParameter default_instance();
public native void Swap(TransformationParameter other);
// implements Message ----------------------------------------------
public native TransformationParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef TransformationParameter from);
public native void MergeFrom(@Const @ByRef TransformationParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float scale = 1 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional bool mirror = 2 [default = false];
public native @Cast("bool") boolean has_mirror();
public native void clear_mirror();
@MemberGetter public static native int kMirrorFieldNumber();
public native @Cast("bool") boolean mirror();
public native void set_mirror(@Cast("bool") boolean value);
// optional uint32 crop_size = 3 [default = 0];
public native @Cast("bool") boolean has_crop_size();
public native void clear_crop_size();
@MemberGetter public static native int kCropSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int crop_size();
public native void set_crop_size(@Cast("google::protobuf::uint32") int value);
// optional string mean_file = 4;
public native @Cast("bool") boolean has_mean_file();
public native void clear_mean_file();
@MemberGetter public static native int kMeanFileFieldNumber();
public native @StdString BytePointer mean_file();
public native void set_mean_file(@StdString BytePointer value);
public native void set_mean_file(@StdString String value);
public native void set_mean_file(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_mean_file(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_mean_file();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_mean_file();
public native void set_allocated_mean_file(@StdString @Cast({"char*", "std::string*"}) BytePointer mean_file);
// repeated float mean_value = 5;
public native int mean_value_size();
public native void clear_mean_value();
@MemberGetter public static native int kMeanValueFieldNumber();
public native float mean_value(int index);
public native void set_mean_value(int index, float value);
public native void add_mean_value(float value);
// optional bool force_color = 6 [default = false];
public native @Cast("bool") boolean has_force_color();
public native void clear_force_color();
@MemberGetter public static native int kForceColorFieldNumber();
public native @Cast("bool") boolean force_color();
public native void set_force_color(@Cast("bool") boolean value);
// optional bool force_gray = 7 [default = false];
public native @Cast("bool") boolean has_force_gray();
public native void clear_force_gray();
@MemberGetter public static native int kForceGrayFieldNumber();
public native @Cast("bool") boolean force_gray();
public native void set_force_gray(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class LossParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LossParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public LossParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public LossParameter position(int position) {
return (LossParameter)super.position(position);
}
public LossParameter() { allocate(); }
private native void allocate();
public LossParameter(@Const @ByRef LossParameter from) { allocate(from); }
private native void allocate(@Const @ByRef LossParameter from);
public native @ByRef @Name("operator =") LossParameter put(@Const @ByRef LossParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef LossParameter default_instance();
public native void Swap(LossParameter other);
// implements Message ----------------------------------------------
public native LossParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef LossParameter from);
public native void MergeFrom(@Const @ByRef LossParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 ignore_label = 1;
public native @Cast("bool") boolean has_ignore_label();
public native void clear_ignore_label();
@MemberGetter public static native int kIgnoreLabelFieldNumber();
public native @Cast("google::protobuf::int32") int ignore_label();
public native void set_ignore_label(@Cast("google::protobuf::int32") int value);
// optional bool normalize = 2 [default = true];
public native @Cast("bool") boolean has_normalize();
public native void clear_normalize();
@MemberGetter public static native int kNormalizeFieldNumber();
public native @Cast("bool") boolean normalize();
public native void set_normalize(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class AccuracyParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public AccuracyParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public AccuracyParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public AccuracyParameter position(int position) {
return (AccuracyParameter)super.position(position);
}
public AccuracyParameter() { allocate(); }
private native void allocate();
public AccuracyParameter(@Const @ByRef AccuracyParameter from) { allocate(from); }
private native void allocate(@Const @ByRef AccuracyParameter from);
public native @ByRef @Name("operator =") AccuracyParameter put(@Const @ByRef AccuracyParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef AccuracyParameter default_instance();
public native void Swap(AccuracyParameter other);
// implements Message ----------------------------------------------
public native AccuracyParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef AccuracyParameter from);
public native void MergeFrom(@Const @ByRef AccuracyParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional uint32 top_k = 1 [default = 1];
public native @Cast("bool") boolean has_top_k();
public native void clear_top_k();
@MemberGetter public static native int kTopKFieldNumber();
public native @Cast("google::protobuf::uint32") int top_k();
public native void set_top_k(@Cast("google::protobuf::uint32") int value);
// optional int32 axis = 2 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional int32 ignore_label = 3;
public native @Cast("bool") boolean has_ignore_label();
public native void clear_ignore_label();
@MemberGetter public static native int kIgnoreLabelFieldNumber();
public native @Cast("google::protobuf::int32") int ignore_label();
public native void set_ignore_label(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ArgMaxParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ArgMaxParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ArgMaxParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ArgMaxParameter position(int position) {
return (ArgMaxParameter)super.position(position);
}
public ArgMaxParameter() { allocate(); }
private native void allocate();
public ArgMaxParameter(@Const @ByRef ArgMaxParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ArgMaxParameter from);
public native @ByRef @Name("operator =") ArgMaxParameter put(@Const @ByRef ArgMaxParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ArgMaxParameter default_instance();
public native void Swap(ArgMaxParameter other);
// implements Message ----------------------------------------------
public native ArgMaxParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ArgMaxParameter from);
public native void MergeFrom(@Const @ByRef ArgMaxParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bool out_max_val = 1 [default = false];
public native @Cast("bool") boolean has_out_max_val();
public native void clear_out_max_val();
@MemberGetter public static native int kOutMaxValFieldNumber();
public native @Cast("bool") boolean out_max_val();
public native void set_out_max_val(@Cast("bool") boolean value);
// optional uint32 top_k = 2 [default = 1];
public native @Cast("bool") boolean has_top_k();
public native void clear_top_k();
@MemberGetter public static native int kTopKFieldNumber();
public native @Cast("google::protobuf::uint32") int top_k();
public native void set_top_k(@Cast("google::protobuf::uint32") int value);
// optional int32 axis = 3;
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ConcatParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConcatParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ConcatParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ConcatParameter position(int position) {
return (ConcatParameter)super.position(position);
}
public ConcatParameter() { allocate(); }
private native void allocate();
public ConcatParameter(@Const @ByRef ConcatParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ConcatParameter from);
public native @ByRef @Name("operator =") ConcatParameter put(@Const @ByRef ConcatParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ConcatParameter default_instance();
public native void Swap(ConcatParameter other);
// implements Message ----------------------------------------------
public native ConcatParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ConcatParameter from);
public native void MergeFrom(@Const @ByRef ConcatParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 axis = 2 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional uint32 concat_dim = 1 [default = 1];
public native @Cast("bool") boolean has_concat_dim();
public native void clear_concat_dim();
@MemberGetter public static native int kConcatDimFieldNumber();
public native @Cast("google::protobuf::uint32") int concat_dim();
public native void set_concat_dim(@Cast("google::protobuf::uint32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class BatchNormParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public BatchNormParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public BatchNormParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public BatchNormParameter position(int position) {
return (BatchNormParameter)super.position(position);
}
public BatchNormParameter() { allocate(); }
private native void allocate();
public BatchNormParameter(@Const @ByRef BatchNormParameter from) { allocate(from); }
private native void allocate(@Const @ByRef BatchNormParameter from);
public native @ByRef @Name("operator =") BatchNormParameter put(@Const @ByRef BatchNormParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef BatchNormParameter default_instance();
public native void Swap(BatchNormParameter other);
// implements Message ----------------------------------------------
public native BatchNormParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef BatchNormParameter from);
public native void MergeFrom(@Const @ByRef BatchNormParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bool use_global_stats = 1;
public native @Cast("bool") boolean has_use_global_stats();
public native void clear_use_global_stats();
@MemberGetter public static native int kUseGlobalStatsFieldNumber();
public native @Cast("bool") boolean use_global_stats();
public native void set_use_global_stats(@Cast("bool") boolean value);
// optional float moving_average_fraction = 2 [default = 0.999];
public native @Cast("bool") boolean has_moving_average_fraction();
public native void clear_moving_average_fraction();
@MemberGetter public static native int kMovingAverageFractionFieldNumber();
public native float moving_average_fraction();
public native void set_moving_average_fraction(float value);
// optional float eps = 3 [default = 1e-05];
public native @Cast("bool") boolean has_eps();
public native void clear_eps();
@MemberGetter public static native int kEpsFieldNumber();
public native float eps();
public native void set_eps(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ContrastiveLossParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ContrastiveLossParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ContrastiveLossParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ContrastiveLossParameter position(int position) {
return (ContrastiveLossParameter)super.position(position);
}
public ContrastiveLossParameter() { allocate(); }
private native void allocate();
public ContrastiveLossParameter(@Const @ByRef ContrastiveLossParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ContrastiveLossParameter from);
public native @ByRef @Name("operator =") ContrastiveLossParameter put(@Const @ByRef ContrastiveLossParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ContrastiveLossParameter default_instance();
public native void Swap(ContrastiveLossParameter other);
// implements Message ----------------------------------------------
public native ContrastiveLossParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ContrastiveLossParameter from);
public native void MergeFrom(@Const @ByRef ContrastiveLossParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float margin = 1 [default = 1];
public native @Cast("bool") boolean has_margin();
public native void clear_margin();
@MemberGetter public static native int kMarginFieldNumber();
public native float margin();
public native void set_margin(float value);
// optional bool legacy_version = 2 [default = false];
public native @Cast("bool") boolean has_legacy_version();
public native void clear_legacy_version();
@MemberGetter public static native int kLegacyVersionFieldNumber();
public native @Cast("bool") boolean legacy_version();
public native void set_legacy_version(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ConvolutionParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ConvolutionParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ConvolutionParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ConvolutionParameter position(int position) {
return (ConvolutionParameter)super.position(position);
}
public ConvolutionParameter() { allocate(); }
private native void allocate();
public ConvolutionParameter(@Const @ByRef ConvolutionParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ConvolutionParameter from);
public native @ByRef @Name("operator =") ConvolutionParameter put(@Const @ByRef ConvolutionParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ConvolutionParameter default_instance();
public native void Swap(ConvolutionParameter other);
// implements Message ----------------------------------------------
public native ConvolutionParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ConvolutionParameter from);
public native void MergeFrom(@Const @ByRef ConvolutionParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::ConvolutionParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::ConvolutionParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::ConvolutionParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::ConvolutionParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::ConvolutionParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::ConvolutionParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ConvolutionParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ConvolutionParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ConvolutionParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ConvolutionParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ConvolutionParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ConvolutionParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional uint32 num_output = 1;
public native @Cast("bool") boolean has_num_output();
public native void clear_num_output();
@MemberGetter public static native int kNumOutputFieldNumber();
public native @Cast("google::protobuf::uint32") int num_output();
public native void set_num_output(@Cast("google::protobuf::uint32") int value);
// optional bool bias_term = 2 [default = true];
public native @Cast("bool") boolean has_bias_term();
public native void clear_bias_term();
@MemberGetter public static native int kBiasTermFieldNumber();
public native @Cast("bool") boolean bias_term();
public native void set_bias_term(@Cast("bool") boolean value);
// repeated uint32 pad = 3;
public native int pad_size();
public native void clear_pad();
@MemberGetter public static native int kPadFieldNumber();
public native @Cast("google::protobuf::uint32") int pad(int index);
public native void set_pad(int index, @Cast("google::protobuf::uint32") int value);
public native void add_pad(@Cast("google::protobuf::uint32") int value);
// repeated uint32 kernel_size = 4;
public native int kernel_size_size();
public native void clear_kernel_size();
@MemberGetter public static native int kKernelSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_size(int index);
public native void set_kernel_size(int index, @Cast("google::protobuf::uint32") int value);
public native void add_kernel_size(@Cast("google::protobuf::uint32") int value);
// repeated uint32 stride = 6;
public native int stride_size();
public native void clear_stride();
@MemberGetter public static native int kStrideFieldNumber();
public native @Cast("google::protobuf::uint32") int stride(int index);
public native void set_stride(int index, @Cast("google::protobuf::uint32") int value);
public native void add_stride(@Cast("google::protobuf::uint32") int value);
// optional uint32 pad_h = 9 [default = 0];
public native @Cast("bool") boolean has_pad_h();
public native void clear_pad_h();
@MemberGetter public static native int kPadHFieldNumber();
public native @Cast("google::protobuf::uint32") int pad_h();
public native void set_pad_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 pad_w = 10 [default = 0];
public native @Cast("bool") boolean has_pad_w();
public native void clear_pad_w();
@MemberGetter public static native int kPadWFieldNumber();
public native @Cast("google::protobuf::uint32") int pad_w();
public native void set_pad_w(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernel_h = 11;
public native @Cast("bool") boolean has_kernel_h();
public native void clear_kernel_h();
@MemberGetter public static native int kKernelHFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_h();
public native void set_kernel_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernel_w = 12;
public native @Cast("bool") boolean has_kernel_w();
public native void clear_kernel_w();
@MemberGetter public static native int kKernelWFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_w();
public native void set_kernel_w(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride_h = 13;
public native @Cast("bool") boolean has_stride_h();
public native void clear_stride_h();
@MemberGetter public static native int kStrideHFieldNumber();
public native @Cast("google::protobuf::uint32") int stride_h();
public native void set_stride_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride_w = 14;
public native @Cast("bool") boolean has_stride_w();
public native void clear_stride_w();
@MemberGetter public static native int kStrideWFieldNumber();
public native @Cast("google::protobuf::uint32") int stride_w();
public native void set_stride_w(@Cast("google::protobuf::uint32") int value);
// optional uint32 group = 5 [default = 1];
public native @Cast("bool") boolean has_group();
public native void clear_group();
@MemberGetter public static native int kGroupFieldNumber();
public native @Cast("google::protobuf::uint32") int group();
public native void set_group(@Cast("google::protobuf::uint32") int value);
// optional .caffe.FillerParameter weight_filler = 7;
public native @Cast("bool") boolean has_weight_filler();
public native void clear_weight_filler();
@MemberGetter public static native int kWeightFillerFieldNumber();
public native @Const @ByRef FillerParameter weight_filler();
public native FillerParameter mutable_weight_filler();
public native FillerParameter release_weight_filler();
public native void set_allocated_weight_filler(FillerParameter weight_filler);
// optional .caffe.FillerParameter bias_filler = 8;
public native @Cast("bool") boolean has_bias_filler();
public native void clear_bias_filler();
@MemberGetter public static native int kBiasFillerFieldNumber();
public native @Const @ByRef FillerParameter bias_filler();
public native FillerParameter mutable_bias_filler();
public native FillerParameter release_bias_filler();
public native void set_allocated_bias_filler(FillerParameter bias_filler);
// optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::ConvolutionParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::ConvolutionParameter_Engine") int value);
// optional int32 axis = 16 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional bool force_nd_im2col = 17 [default = false];
public native @Cast("bool") boolean has_force_nd_im2col();
public native void clear_force_nd_im2col();
@MemberGetter public static native int kForceNdIm2ColFieldNumber();
public native @Cast("bool") boolean force_nd_im2col();
public native void set_force_nd_im2col(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class DataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public DataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public DataParameter position(int position) {
return (DataParameter)super.position(position);
}
public DataParameter() { allocate(); }
private native void allocate();
public DataParameter(@Const @ByRef DataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef DataParameter from);
public native @ByRef @Name("operator =") DataParameter put(@Const @ByRef DataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DataParameter default_instance();
public native void Swap(DataParameter other);
// implements Message ----------------------------------------------
public native DataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef DataParameter from);
public native void MergeFrom(@Const @ByRef DataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::DataParameter::DB") int LEVELDB();
@MemberGetter public static native @Cast("const caffe::DataParameter::DB") int LMDB();
public static native @Cast("bool") boolean DB_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::DataParameter::DB") int DB_MIN();
@MemberGetter public static native @Cast("const caffe::DataParameter::DB") int DB_MAX();
@MemberGetter public static native int DB_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer DB_descriptor();
public static native @StdString BytePointer DB_Name(@Cast("caffe::DataParameter::DB") int value);
public static native @Cast("bool") boolean DB_Parse(@StdString BytePointer name,
@Cast("caffe::DataParameter::DB*") IntPointer value);
public static native @Cast("bool") boolean DB_Parse(@StdString String name,
@Cast("caffe::DataParameter::DB*") IntBuffer value);
public static native @Cast("bool") boolean DB_Parse(@StdString BytePointer name,
@Cast("caffe::DataParameter::DB*") int[] value);
public static native @Cast("bool") boolean DB_Parse(@StdString String name,
@Cast("caffe::DataParameter::DB*") IntPointer value);
public static native @Cast("bool") boolean DB_Parse(@StdString BytePointer name,
@Cast("caffe::DataParameter::DB*") IntBuffer value);
public static native @Cast("bool") boolean DB_Parse(@StdString String name,
@Cast("caffe::DataParameter::DB*") int[] value);
// accessors -------------------------------------------------------
// optional string source = 1;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
// optional uint32 batch_size = 4;
public native @Cast("bool") boolean has_batch_size();
public native void clear_batch_size();
@MemberGetter public static native int kBatchSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batch_size();
public native void set_batch_size(@Cast("google::protobuf::uint32") int value);
// optional uint32 rand_skip = 7 [default = 0];
public native @Cast("bool") boolean has_rand_skip();
public native void clear_rand_skip();
@MemberGetter public static native int kRandSkipFieldNumber();
public native @Cast("google::protobuf::uint32") int rand_skip();
public native void set_rand_skip(@Cast("google::protobuf::uint32") int value);
// optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB];
public native @Cast("bool") boolean has_backend();
public native void clear_backend();
@MemberGetter public static native int kBackendFieldNumber();
public native @Cast("caffe::DataParameter_DB") int backend();
public native void set_backend(@Cast("caffe::DataParameter_DB") int value);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional string mean_file = 3;
public native @Cast("bool") boolean has_mean_file();
public native void clear_mean_file();
@MemberGetter public static native int kMeanFileFieldNumber();
public native @StdString BytePointer mean_file();
public native void set_mean_file(@StdString BytePointer value);
public native void set_mean_file(@StdString String value);
public native void set_mean_file(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_mean_file(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_mean_file();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_mean_file();
public native void set_allocated_mean_file(@StdString @Cast({"char*", "std::string*"}) BytePointer mean_file);
// optional uint32 crop_size = 5 [default = 0];
public native @Cast("bool") boolean has_crop_size();
public native void clear_crop_size();
@MemberGetter public static native int kCropSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int crop_size();
public native void set_crop_size(@Cast("google::protobuf::uint32") int value);
// optional bool mirror = 6 [default = false];
public native @Cast("bool") boolean has_mirror();
public native void clear_mirror();
@MemberGetter public static native int kMirrorFieldNumber();
public native @Cast("bool") boolean mirror();
public native void set_mirror(@Cast("bool") boolean value);
// optional bool force_encoded_color = 9 [default = false];
public native @Cast("bool") boolean has_force_encoded_color();
public native void clear_force_encoded_color();
@MemberGetter public static native int kForceEncodedColorFieldNumber();
public native @Cast("bool") boolean force_encoded_color();
public native void set_force_encoded_color(@Cast("bool") boolean value);
// optional uint32 prefetch = 10 [default = 4];
public native @Cast("bool") boolean has_prefetch();
public native void clear_prefetch();
@MemberGetter public static native int kPrefetchFieldNumber();
public native @Cast("google::protobuf::uint32") int prefetch();
public native void set_prefetch(@Cast("google::protobuf::uint32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class DropoutParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DropoutParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public DropoutParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public DropoutParameter position(int position) {
return (DropoutParameter)super.position(position);
}
public DropoutParameter() { allocate(); }
private native void allocate();
public DropoutParameter(@Const @ByRef DropoutParameter from) { allocate(from); }
private native void allocate(@Const @ByRef DropoutParameter from);
public native @ByRef @Name("operator =") DropoutParameter put(@Const @ByRef DropoutParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DropoutParameter default_instance();
public native void Swap(DropoutParameter other);
// implements Message ----------------------------------------------
public native DropoutParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef DropoutParameter from);
public native void MergeFrom(@Const @ByRef DropoutParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float dropout_ratio = 1 [default = 0.5];
public native @Cast("bool") boolean has_dropout_ratio();
public native void clear_dropout_ratio();
@MemberGetter public static native int kDropoutRatioFieldNumber();
public native float dropout_ratio();
public native void set_dropout_ratio(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class DummyDataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DummyDataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public DummyDataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public DummyDataParameter position(int position) {
return (DummyDataParameter)super.position(position);
}
public DummyDataParameter() { allocate(); }
private native void allocate();
public DummyDataParameter(@Const @ByRef DummyDataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef DummyDataParameter from);
public native @ByRef @Name("operator =") DummyDataParameter put(@Const @ByRef DummyDataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef DummyDataParameter default_instance();
public native void Swap(DummyDataParameter other);
// implements Message ----------------------------------------------
public native DummyDataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef DummyDataParameter from);
public native void MergeFrom(@Const @ByRef DummyDataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .caffe.FillerParameter data_filler = 1;
public native int data_filler_size();
public native void clear_data_filler();
@MemberGetter public static native int kDataFillerFieldNumber();
public native @Const @ByRef FillerParameter data_filler(int index);
public native FillerParameter mutable_data_filler(int index);
public native FillerParameter add_data_filler();
// repeated .caffe.BlobShape shape = 6;
public native int shape_size();
public native void clear_shape();
@MemberGetter public static native int kShapeFieldNumber();
public native @Const @ByRef BlobShape shape(int index);
public native BlobShape mutable_shape(int index);
public native BlobShape add_shape();
// repeated uint32 num = 2;
public native int num_size();
public native void clear_num();
@MemberGetter public static native int kNumFieldNumber();
public native @Cast("google::protobuf::uint32") int num(int index);
public native void set_num(int index, @Cast("google::protobuf::uint32") int value);
public native void add_num(@Cast("google::protobuf::uint32") int value);
// repeated uint32 channels = 3;
public native int channels_size();
public native void clear_channels();
@MemberGetter public static native int kChannelsFieldNumber();
public native @Cast("google::protobuf::uint32") int channels(int index);
public native void set_channels(int index, @Cast("google::protobuf::uint32") int value);
public native void add_channels(@Cast("google::protobuf::uint32") int value);
// repeated uint32 height = 4;
public native int height_size();
public native void clear_height();
@MemberGetter public static native int kHeightFieldNumber();
public native @Cast("google::protobuf::uint32") int height(int index);
public native void set_height(int index, @Cast("google::protobuf::uint32") int value);
public native void add_height(@Cast("google::protobuf::uint32") int value);
// repeated uint32 width = 5;
public native int width_size();
public native void clear_width();
@MemberGetter public static native int kWidthFieldNumber();
public native @Cast("google::protobuf::uint32") int width(int index);
public native void set_width(int index, @Cast("google::protobuf::uint32") int value);
public native void add_width(@Cast("google::protobuf::uint32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class EltwiseParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public EltwiseParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public EltwiseParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public EltwiseParameter position(int position) {
return (EltwiseParameter)super.position(position);
}
public EltwiseParameter() { allocate(); }
private native void allocate();
public EltwiseParameter(@Const @ByRef EltwiseParameter from) { allocate(from); }
private native void allocate(@Const @ByRef EltwiseParameter from);
public native @ByRef @Name("operator =") EltwiseParameter put(@Const @ByRef EltwiseParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef EltwiseParameter default_instance();
public native void Swap(EltwiseParameter other);
// implements Message ----------------------------------------------
public native EltwiseParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef EltwiseParameter from);
public native void MergeFrom(@Const @ByRef EltwiseParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::EltwiseParameter::EltwiseOp") int PROD();
@MemberGetter public static native @Cast("const caffe::EltwiseParameter::EltwiseOp") int SUM();
@MemberGetter public static native @Cast("const caffe::EltwiseParameter::EltwiseOp") int MAX();
public static native @Cast("bool") boolean EltwiseOp_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::EltwiseParameter::EltwiseOp") int EltwiseOp_MIN();
@MemberGetter public static native @Cast("const caffe::EltwiseParameter::EltwiseOp") int EltwiseOp_MAX();
@MemberGetter public static native int EltwiseOp_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer EltwiseOp_descriptor();
public static native @StdString BytePointer EltwiseOp_Name(@Cast("caffe::EltwiseParameter::EltwiseOp") int value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString BytePointer name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") IntPointer value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString String name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") IntBuffer value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString BytePointer name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") int[] value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString String name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") IntPointer value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString BytePointer name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") IntBuffer value);
public static native @Cast("bool") boolean EltwiseOp_Parse(@StdString String name,
@Cast("caffe::EltwiseParameter::EltwiseOp*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
public native @Cast("bool") boolean has_operation();
public native void clear_operation();
@MemberGetter public static native int kOperationFieldNumber();
public native @Cast("caffe::EltwiseParameter_EltwiseOp") int operation();
public native void set_operation(@Cast("caffe::EltwiseParameter_EltwiseOp") int value);
// repeated float coeff = 2;
public native int coeff_size();
public native void clear_coeff();
@MemberGetter public static native int kCoeffFieldNumber();
public native float coeff(int index);
public native void set_coeff(int index, float value);
public native void add_coeff(float value);
// optional bool stable_prod_grad = 3 [default = true];
public native @Cast("bool") boolean has_stable_prod_grad();
public native void clear_stable_prod_grad();
@MemberGetter public static native int kStableProdGradFieldNumber();
public native @Cast("bool") boolean stable_prod_grad();
public native void set_stable_prod_grad(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class EmbedParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public EmbedParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public EmbedParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public EmbedParameter position(int position) {
return (EmbedParameter)super.position(position);
}
public EmbedParameter() { allocate(); }
private native void allocate();
public EmbedParameter(@Const @ByRef EmbedParameter from) { allocate(from); }
private native void allocate(@Const @ByRef EmbedParameter from);
public native @ByRef @Name("operator =") EmbedParameter put(@Const @ByRef EmbedParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef EmbedParameter default_instance();
public native void Swap(EmbedParameter other);
// implements Message ----------------------------------------------
public native EmbedParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef EmbedParameter from);
public native void MergeFrom(@Const @ByRef EmbedParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional uint32 num_output = 1;
public native @Cast("bool") boolean has_num_output();
public native void clear_num_output();
@MemberGetter public static native int kNumOutputFieldNumber();
public native @Cast("google::protobuf::uint32") int num_output();
public native void set_num_output(@Cast("google::protobuf::uint32") int value);
// optional uint32 input_dim = 2;
public native @Cast("bool") boolean has_input_dim();
public native void clear_input_dim();
@MemberGetter public static native int kInputDimFieldNumber();
public native @Cast("google::protobuf::uint32") int input_dim();
public native void set_input_dim(@Cast("google::protobuf::uint32") int value);
// optional bool bias_term = 3 [default = true];
public native @Cast("bool") boolean has_bias_term();
public native void clear_bias_term();
@MemberGetter public static native int kBiasTermFieldNumber();
public native @Cast("bool") boolean bias_term();
public native void set_bias_term(@Cast("bool") boolean value);
// optional .caffe.FillerParameter weight_filler = 4;
public native @Cast("bool") boolean has_weight_filler();
public native void clear_weight_filler();
@MemberGetter public static native int kWeightFillerFieldNumber();
public native @Const @ByRef FillerParameter weight_filler();
public native FillerParameter mutable_weight_filler();
public native FillerParameter release_weight_filler();
public native void set_allocated_weight_filler(FillerParameter weight_filler);
// optional .caffe.FillerParameter bias_filler = 5;
public native @Cast("bool") boolean has_bias_filler();
public native void clear_bias_filler();
@MemberGetter public static native int kBiasFillerFieldNumber();
public native @Const @ByRef FillerParameter bias_filler();
public native FillerParameter mutable_bias_filler();
public native FillerParameter release_bias_filler();
public native void set_allocated_bias_filler(FillerParameter bias_filler);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ExpParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ExpParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ExpParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ExpParameter position(int position) {
return (ExpParameter)super.position(position);
}
public ExpParameter() { allocate(); }
private native void allocate();
public ExpParameter(@Const @ByRef ExpParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ExpParameter from);
public native @ByRef @Name("operator =") ExpParameter put(@Const @ByRef ExpParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ExpParameter default_instance();
public native void Swap(ExpParameter other);
// implements Message ----------------------------------------------
public native ExpParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ExpParameter from);
public native void MergeFrom(@Const @ByRef ExpParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float base = 1 [default = -1];
public native @Cast("bool") boolean has_base();
public native void clear_base();
@MemberGetter public static native int kBaseFieldNumber();
public native float base();
public native void set_base(float value);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional float shift = 3 [default = 0];
public native @Cast("bool") boolean has_shift();
public native void clear_shift();
@MemberGetter public static native int kShiftFieldNumber();
public native float shift();
public native void set_shift(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class FlattenParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FlattenParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public FlattenParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public FlattenParameter position(int position) {
return (FlattenParameter)super.position(position);
}
public FlattenParameter() { allocate(); }
private native void allocate();
public FlattenParameter(@Const @ByRef FlattenParameter from) { allocate(from); }
private native void allocate(@Const @ByRef FlattenParameter from);
public native @ByRef @Name("operator =") FlattenParameter put(@Const @ByRef FlattenParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef FlattenParameter default_instance();
public native void Swap(FlattenParameter other);
// implements Message ----------------------------------------------
public native FlattenParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef FlattenParameter from);
public native void MergeFrom(@Const @ByRef FlattenParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 axis = 1 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional int32 end_axis = 2 [default = -1];
public native @Cast("bool") boolean has_end_axis();
public native void clear_end_axis();
@MemberGetter public static native int kEndAxisFieldNumber();
public native @Cast("google::protobuf::int32") int end_axis();
public native void set_end_axis(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class HDF5DataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public HDF5DataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public HDF5DataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public HDF5DataParameter position(int position) {
return (HDF5DataParameter)super.position(position);
}
public HDF5DataParameter() { allocate(); }
private native void allocate();
public HDF5DataParameter(@Const @ByRef HDF5DataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef HDF5DataParameter from);
public native @ByRef @Name("operator =") HDF5DataParameter put(@Const @ByRef HDF5DataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef HDF5DataParameter default_instance();
public native void Swap(HDF5DataParameter other);
// implements Message ----------------------------------------------
public native HDF5DataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef HDF5DataParameter from);
public native void MergeFrom(@Const @ByRef HDF5DataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string source = 1;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
// optional uint32 batch_size = 2;
public native @Cast("bool") boolean has_batch_size();
public native void clear_batch_size();
@MemberGetter public static native int kBatchSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batch_size();
public native void set_batch_size(@Cast("google::protobuf::uint32") int value);
// optional bool shuffle = 3 [default = false];
public native @Cast("bool") boolean has_shuffle();
public native void clear_shuffle();
@MemberGetter public static native int kShuffleFieldNumber();
public native @Cast("bool") boolean shuffle();
public native void set_shuffle(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class HDF5OutputParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public HDF5OutputParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public HDF5OutputParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public HDF5OutputParameter position(int position) {
return (HDF5OutputParameter)super.position(position);
}
public HDF5OutputParameter() { allocate(); }
private native void allocate();
public HDF5OutputParameter(@Const @ByRef HDF5OutputParameter from) { allocate(from); }
private native void allocate(@Const @ByRef HDF5OutputParameter from);
public native @ByRef @Name("operator =") HDF5OutputParameter put(@Const @ByRef HDF5OutputParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef HDF5OutputParameter default_instance();
public native void Swap(HDF5OutputParameter other);
// implements Message ----------------------------------------------
public native HDF5OutputParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef HDF5OutputParameter from);
public native void MergeFrom(@Const @ByRef HDF5OutputParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string file_name = 1;
public native @Cast("bool") boolean has_file_name();
public native void clear_file_name();
@MemberGetter public static native int kFileNameFieldNumber();
public native @StdString BytePointer file_name();
public native void set_file_name(@StdString BytePointer value);
public native void set_file_name(@StdString String value);
public native void set_file_name(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_file_name(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_file_name();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_file_name();
public native void set_allocated_file_name(@StdString @Cast({"char*", "std::string*"}) BytePointer file_name);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class HingeLossParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public HingeLossParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public HingeLossParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public HingeLossParameter position(int position) {
return (HingeLossParameter)super.position(position);
}
public HingeLossParameter() { allocate(); }
private native void allocate();
public HingeLossParameter(@Const @ByRef HingeLossParameter from) { allocate(from); }
private native void allocate(@Const @ByRef HingeLossParameter from);
public native @ByRef @Name("operator =") HingeLossParameter put(@Const @ByRef HingeLossParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef HingeLossParameter default_instance();
public native void Swap(HingeLossParameter other);
// implements Message ----------------------------------------------
public native HingeLossParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef HingeLossParameter from);
public native void MergeFrom(@Const @ByRef HingeLossParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::HingeLossParameter::Norm") int L1();
@MemberGetter public static native @Cast("const caffe::HingeLossParameter::Norm") int L2();
public static native @Cast("bool") boolean Norm_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::HingeLossParameter::Norm") int Norm_MIN();
@MemberGetter public static native @Cast("const caffe::HingeLossParameter::Norm") int Norm_MAX();
@MemberGetter public static native int Norm_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Norm_descriptor();
public static native @StdString BytePointer Norm_Name(@Cast("caffe::HingeLossParameter::Norm") int value);
public static native @Cast("bool") boolean Norm_Parse(@StdString BytePointer name,
@Cast("caffe::HingeLossParameter::Norm*") IntPointer value);
public static native @Cast("bool") boolean Norm_Parse(@StdString String name,
@Cast("caffe::HingeLossParameter::Norm*") IntBuffer value);
public static native @Cast("bool") boolean Norm_Parse(@StdString BytePointer name,
@Cast("caffe::HingeLossParameter::Norm*") int[] value);
public static native @Cast("bool") boolean Norm_Parse(@StdString String name,
@Cast("caffe::HingeLossParameter::Norm*") IntPointer value);
public static native @Cast("bool") boolean Norm_Parse(@StdString BytePointer name,
@Cast("caffe::HingeLossParameter::Norm*") IntBuffer value);
public static native @Cast("bool") boolean Norm_Parse(@StdString String name,
@Cast("caffe::HingeLossParameter::Norm*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1];
public native @Cast("bool") boolean has_norm();
public native void clear_norm();
@MemberGetter public static native int kNormFieldNumber();
public native @Cast("caffe::HingeLossParameter_Norm") int norm();
public native void set_norm(@Cast("caffe::HingeLossParameter_Norm") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ImageDataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ImageDataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ImageDataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ImageDataParameter position(int position) {
return (ImageDataParameter)super.position(position);
}
public ImageDataParameter() { allocate(); }
private native void allocate();
public ImageDataParameter(@Const @ByRef ImageDataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ImageDataParameter from);
public native @ByRef @Name("operator =") ImageDataParameter put(@Const @ByRef ImageDataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ImageDataParameter default_instance();
public native void Swap(ImageDataParameter other);
// implements Message ----------------------------------------------
public native ImageDataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ImageDataParameter from);
public native void MergeFrom(@Const @ByRef ImageDataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string source = 1;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
// optional uint32 batch_size = 4 [default = 1];
public native @Cast("bool") boolean has_batch_size();
public native void clear_batch_size();
@MemberGetter public static native int kBatchSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batch_size();
public native void set_batch_size(@Cast("google::protobuf::uint32") int value);
// optional uint32 rand_skip = 7 [default = 0];
public native @Cast("bool") boolean has_rand_skip();
public native void clear_rand_skip();
@MemberGetter public static native int kRandSkipFieldNumber();
public native @Cast("google::protobuf::uint32") int rand_skip();
public native void set_rand_skip(@Cast("google::protobuf::uint32") int value);
// optional bool shuffle = 8 [default = false];
public native @Cast("bool") boolean has_shuffle();
public native void clear_shuffle();
@MemberGetter public static native int kShuffleFieldNumber();
public native @Cast("bool") boolean shuffle();
public native void set_shuffle(@Cast("bool") boolean value);
// optional uint32 new_height = 9 [default = 0];
public native @Cast("bool") boolean has_new_height();
public native void clear_new_height();
@MemberGetter public static native int kNewHeightFieldNumber();
public native @Cast("google::protobuf::uint32") int new_height();
public native void set_new_height(@Cast("google::protobuf::uint32") int value);
// optional uint32 new_width = 10 [default = 0];
public native @Cast("bool") boolean has_new_width();
public native void clear_new_width();
@MemberGetter public static native int kNewWidthFieldNumber();
public native @Cast("google::protobuf::uint32") int new_width();
public native void set_new_width(@Cast("google::protobuf::uint32") int value);
// optional bool is_color = 11 [default = true];
public native @Cast("bool") boolean has_is_color();
public native void clear_is_color();
@MemberGetter public static native int kIsColorFieldNumber();
public native @Cast("bool") boolean is_color();
public native void set_is_color(@Cast("bool") boolean value);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional string mean_file = 3;
public native @Cast("bool") boolean has_mean_file();
public native void clear_mean_file();
@MemberGetter public static native int kMeanFileFieldNumber();
public native @StdString BytePointer mean_file();
public native void set_mean_file(@StdString BytePointer value);
public native void set_mean_file(@StdString String value);
public native void set_mean_file(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_mean_file(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_mean_file();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_mean_file();
public native void set_allocated_mean_file(@StdString @Cast({"char*", "std::string*"}) BytePointer mean_file);
// optional uint32 crop_size = 5 [default = 0];
public native @Cast("bool") boolean has_crop_size();
public native void clear_crop_size();
@MemberGetter public static native int kCropSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int crop_size();
public native void set_crop_size(@Cast("google::protobuf::uint32") int value);
// optional bool mirror = 6 [default = false];
public native @Cast("bool") boolean has_mirror();
public native void clear_mirror();
@MemberGetter public static native int kMirrorFieldNumber();
public native @Cast("bool") boolean mirror();
public native void set_mirror(@Cast("bool") boolean value);
// optional string root_folder = 12 [default = ""];
public native @Cast("bool") boolean has_root_folder();
public native void clear_root_folder();
@MemberGetter public static native int kRootFolderFieldNumber();
public native @StdString BytePointer root_folder();
public native void set_root_folder(@StdString BytePointer value);
public native void set_root_folder(@StdString String value);
public native void set_root_folder(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_root_folder(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_root_folder();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_root_folder();
public native void set_allocated_root_folder(@StdString @Cast({"char*", "std::string*"}) BytePointer root_folder);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class InfogainLossParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public InfogainLossParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public InfogainLossParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public InfogainLossParameter position(int position) {
return (InfogainLossParameter)super.position(position);
}
public InfogainLossParameter() { allocate(); }
private native void allocate();
public InfogainLossParameter(@Const @ByRef InfogainLossParameter from) { allocate(from); }
private native void allocate(@Const @ByRef InfogainLossParameter from);
public native @ByRef @Name("operator =") InfogainLossParameter put(@Const @ByRef InfogainLossParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef InfogainLossParameter default_instance();
public native void Swap(InfogainLossParameter other);
// implements Message ----------------------------------------------
public native InfogainLossParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef InfogainLossParameter from);
public native void MergeFrom(@Const @ByRef InfogainLossParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string source = 1;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class InnerProductParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public InnerProductParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public InnerProductParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public InnerProductParameter position(int position) {
return (InnerProductParameter)super.position(position);
}
public InnerProductParameter() { allocate(); }
private native void allocate();
public InnerProductParameter(@Const @ByRef InnerProductParameter from) { allocate(from); }
private native void allocate(@Const @ByRef InnerProductParameter from);
public native @ByRef @Name("operator =") InnerProductParameter put(@Const @ByRef InnerProductParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef InnerProductParameter default_instance();
public native void Swap(InnerProductParameter other);
// implements Message ----------------------------------------------
public native InnerProductParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef InnerProductParameter from);
public native void MergeFrom(@Const @ByRef InnerProductParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional uint32 num_output = 1;
public native @Cast("bool") boolean has_num_output();
public native void clear_num_output();
@MemberGetter public static native int kNumOutputFieldNumber();
public native @Cast("google::protobuf::uint32") int num_output();
public native void set_num_output(@Cast("google::protobuf::uint32") int value);
// optional bool bias_term = 2 [default = true];
public native @Cast("bool") boolean has_bias_term();
public native void clear_bias_term();
@MemberGetter public static native int kBiasTermFieldNumber();
public native @Cast("bool") boolean bias_term();
public native void set_bias_term(@Cast("bool") boolean value);
// optional .caffe.FillerParameter weight_filler = 3;
public native @Cast("bool") boolean has_weight_filler();
public native void clear_weight_filler();
@MemberGetter public static native int kWeightFillerFieldNumber();
public native @Const @ByRef FillerParameter weight_filler();
public native FillerParameter mutable_weight_filler();
public native FillerParameter release_weight_filler();
public native void set_allocated_weight_filler(FillerParameter weight_filler);
// optional .caffe.FillerParameter bias_filler = 4;
public native @Cast("bool") boolean has_bias_filler();
public native void clear_bias_filler();
@MemberGetter public static native int kBiasFillerFieldNumber();
public native @Const @ByRef FillerParameter bias_filler();
public native FillerParameter mutable_bias_filler();
public native FillerParameter release_bias_filler();
public native void set_allocated_bias_filler(FillerParameter bias_filler);
// optional int32 axis = 5 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class LogParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LogParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public LogParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public LogParameter position(int position) {
return (LogParameter)super.position(position);
}
public LogParameter() { allocate(); }
private native void allocate();
public LogParameter(@Const @ByRef LogParameter from) { allocate(from); }
private native void allocate(@Const @ByRef LogParameter from);
public native @ByRef @Name("operator =") LogParameter put(@Const @ByRef LogParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef LogParameter default_instance();
public native void Swap(LogParameter other);
// implements Message ----------------------------------------------
public native LogParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef LogParameter from);
public native void MergeFrom(@Const @ByRef LogParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float base = 1 [default = -1];
public native @Cast("bool") boolean has_base();
public native void clear_base();
@MemberGetter public static native int kBaseFieldNumber();
public native float base();
public native void set_base(float value);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional float shift = 3 [default = 0];
public native @Cast("bool") boolean has_shift();
public native void clear_shift();
@MemberGetter public static native int kShiftFieldNumber();
public native float shift();
public native void set_shift(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class LRNParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LRNParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public LRNParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public LRNParameter position(int position) {
return (LRNParameter)super.position(position);
}
public LRNParameter() { allocate(); }
private native void allocate();
public LRNParameter(@Const @ByRef LRNParameter from) { allocate(from); }
private native void allocate(@Const @ByRef LRNParameter from);
public native @ByRef @Name("operator =") LRNParameter put(@Const @ByRef LRNParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef LRNParameter default_instance();
public native void Swap(LRNParameter other);
// implements Message ----------------------------------------------
public native LRNParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef LRNParameter from);
public native void MergeFrom(@Const @ByRef LRNParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::LRNParameter::NormRegion") int ACROSS_CHANNELS();
@MemberGetter public static native @Cast("const caffe::LRNParameter::NormRegion") int WITHIN_CHANNEL();
public static native @Cast("bool") boolean NormRegion_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::LRNParameter::NormRegion") int NormRegion_MIN();
@MemberGetter public static native @Cast("const caffe::LRNParameter::NormRegion") int NormRegion_MAX();
@MemberGetter public static native int NormRegion_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer NormRegion_descriptor();
public static native @StdString BytePointer NormRegion_Name(@Cast("caffe::LRNParameter::NormRegion") int value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::NormRegion*") IntPointer value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString String name,
@Cast("caffe::LRNParameter::NormRegion*") IntBuffer value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::NormRegion*") int[] value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString String name,
@Cast("caffe::LRNParameter::NormRegion*") IntPointer value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::NormRegion*") IntBuffer value);
public static native @Cast("bool") boolean NormRegion_Parse(@StdString String name,
@Cast("caffe::LRNParameter::NormRegion*") int[] value);
@MemberGetter public static native @Cast("const caffe::LRNParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::LRNParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::LRNParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::LRNParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::LRNParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::LRNParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::LRNParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::LRNParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::LRNParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::LRNParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional uint32 local_size = 1 [default = 5];
public native @Cast("bool") boolean has_local_size();
public native void clear_local_size();
@MemberGetter public static native int kLocalSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int local_size();
public native void set_local_size(@Cast("google::protobuf::uint32") int value);
// optional float alpha = 2 [default = 1];
public native @Cast("bool") boolean has_alpha();
public native void clear_alpha();
@MemberGetter public static native int kAlphaFieldNumber();
public native float alpha();
public native void set_alpha(float value);
// optional float beta = 3 [default = 0.75];
public native @Cast("bool") boolean has_beta();
public native void clear_beta();
@MemberGetter public static native int kBetaFieldNumber();
public native float beta();
public native void set_beta(float value);
// optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
public native @Cast("bool") boolean has_norm_region();
public native void clear_norm_region();
@MemberGetter public static native int kNormRegionFieldNumber();
public native @Cast("caffe::LRNParameter_NormRegion") int norm_region();
public native void set_norm_region(@Cast("caffe::LRNParameter_NormRegion") int value);
// optional float k = 5 [default = 1];
public native @Cast("bool") boolean has_k();
public native void clear_k();
@MemberGetter public static native int kKFieldNumber();
public native float k();
public native void set_k(float value);
// optional .caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::LRNParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::LRNParameter_Engine") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class MemoryDataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public MemoryDataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public MemoryDataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public MemoryDataParameter position(int position) {
return (MemoryDataParameter)super.position(position);
}
public MemoryDataParameter() { allocate(); }
private native void allocate();
public MemoryDataParameter(@Const @ByRef MemoryDataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef MemoryDataParameter from);
public native @ByRef @Name("operator =") MemoryDataParameter put(@Const @ByRef MemoryDataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef MemoryDataParameter default_instance();
public native void Swap(MemoryDataParameter other);
// implements Message ----------------------------------------------
public native MemoryDataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef MemoryDataParameter from);
public native void MergeFrom(@Const @ByRef MemoryDataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional uint32 batch_size = 1;
public native @Cast("bool") boolean has_batch_size();
public native void clear_batch_size();
@MemberGetter public static native int kBatchSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batch_size();
public native void set_batch_size(@Cast("google::protobuf::uint32") int value);
// optional uint32 channels = 2;
public native @Cast("bool") boolean has_channels();
public native void clear_channels();
@MemberGetter public static native int kChannelsFieldNumber();
public native @Cast("google::protobuf::uint32") int channels();
public native void set_channels(@Cast("google::protobuf::uint32") int value);
// optional uint32 height = 3;
public native @Cast("bool") boolean has_height();
public native void clear_height();
@MemberGetter public static native int kHeightFieldNumber();
public native @Cast("google::protobuf::uint32") int height();
public native void set_height(@Cast("google::protobuf::uint32") int value);
// optional uint32 width = 4;
public native @Cast("bool") boolean has_width();
public native void clear_width();
@MemberGetter public static native int kWidthFieldNumber();
public native @Cast("google::protobuf::uint32") int width();
public native void set_width(@Cast("google::protobuf::uint32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class MVNParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public MVNParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public MVNParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public MVNParameter position(int position) {
return (MVNParameter)super.position(position);
}
public MVNParameter() { allocate(); }
private native void allocate();
public MVNParameter(@Const @ByRef MVNParameter from) { allocate(from); }
private native void allocate(@Const @ByRef MVNParameter from);
public native @ByRef @Name("operator =") MVNParameter put(@Const @ByRef MVNParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef MVNParameter default_instance();
public native void Swap(MVNParameter other);
// implements Message ----------------------------------------------
public native MVNParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef MVNParameter from);
public native void MergeFrom(@Const @ByRef MVNParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bool normalize_variance = 1 [default = true];
public native @Cast("bool") boolean has_normalize_variance();
public native void clear_normalize_variance();
@MemberGetter public static native int kNormalizeVarianceFieldNumber();
public native @Cast("bool") boolean normalize_variance();
public native void set_normalize_variance(@Cast("bool") boolean value);
// optional bool across_channels = 2 [default = false];
public native @Cast("bool") boolean has_across_channels();
public native void clear_across_channels();
@MemberGetter public static native int kAcrossChannelsFieldNumber();
public native @Cast("bool") boolean across_channels();
public native void set_across_channels(@Cast("bool") boolean value);
// optional float eps = 3 [default = 1e-09];
public native @Cast("bool") boolean has_eps();
public native void clear_eps();
@MemberGetter public static native int kEpsFieldNumber();
public native float eps();
public native void set_eps(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class PoolingParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PoolingParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public PoolingParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public PoolingParameter position(int position) {
return (PoolingParameter)super.position(position);
}
public PoolingParameter() { allocate(); }
private native void allocate();
public PoolingParameter(@Const @ByRef PoolingParameter from) { allocate(from); }
private native void allocate(@Const @ByRef PoolingParameter from);
public native @ByRef @Name("operator =") PoolingParameter put(@Const @ByRef PoolingParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef PoolingParameter default_instance();
public native void Swap(PoolingParameter other);
// implements Message ----------------------------------------------
public native PoolingParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef PoolingParameter from);
public native void MergeFrom(@Const @ByRef PoolingParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::PoolingParameter::PoolMethod") int MAX();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::PoolMethod") int AVE();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::PoolMethod") int STOCHASTIC();
public static native @Cast("bool") boolean PoolMethod_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::PoolingParameter::PoolMethod") int PoolMethod_MIN();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::PoolMethod") int PoolMethod_MAX();
@MemberGetter public static native int PoolMethod_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer PoolMethod_descriptor();
public static native @StdString BytePointer PoolMethod_Name(@Cast("caffe::PoolingParameter::PoolMethod") int value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::PoolMethod*") int[] value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::PoolMethod*") int[] value);
@MemberGetter public static native @Cast("const caffe::PoolingParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::PoolingParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::PoolingParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::PoolingParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::PoolingParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::PoolingParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
public native @Cast("bool") boolean has_pool();
public native void clear_pool();
@MemberGetter public static native int kPoolFieldNumber();
public native @Cast("caffe::PoolingParameter_PoolMethod") int pool();
public native void set_pool(@Cast("caffe::PoolingParameter_PoolMethod") int value);
// optional uint32 pad = 4 [default = 0];
public native @Cast("bool") boolean has_pad();
public native void clear_pad();
@MemberGetter public static native int kPadFieldNumber();
public native @Cast("google::protobuf::uint32") int pad();
public native void set_pad(@Cast("google::protobuf::uint32") int value);
// optional uint32 pad_h = 9 [default = 0];
public native @Cast("bool") boolean has_pad_h();
public native void clear_pad_h();
@MemberGetter public static native int kPadHFieldNumber();
public native @Cast("google::protobuf::uint32") int pad_h();
public native void set_pad_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 pad_w = 10 [default = 0];
public native @Cast("bool") boolean has_pad_w();
public native void clear_pad_w();
@MemberGetter public static native int kPadWFieldNumber();
public native @Cast("google::protobuf::uint32") int pad_w();
public native void set_pad_w(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernel_size = 2;
public native @Cast("bool") boolean has_kernel_size();
public native void clear_kernel_size();
@MemberGetter public static native int kKernelSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_size();
public native void set_kernel_size(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernel_h = 5;
public native @Cast("bool") boolean has_kernel_h();
public native void clear_kernel_h();
@MemberGetter public static native int kKernelHFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_h();
public native void set_kernel_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernel_w = 6;
public native @Cast("bool") boolean has_kernel_w();
public native void clear_kernel_w();
@MemberGetter public static native int kKernelWFieldNumber();
public native @Cast("google::protobuf::uint32") int kernel_w();
public native void set_kernel_w(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride = 3 [default = 1];
public native @Cast("bool") boolean has_stride();
public native void clear_stride();
@MemberGetter public static native int kStrideFieldNumber();
public native @Cast("google::protobuf::uint32") int stride();
public native void set_stride(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride_h = 7;
public native @Cast("bool") boolean has_stride_h();
public native void clear_stride_h();
@MemberGetter public static native int kStrideHFieldNumber();
public native @Cast("google::protobuf::uint32") int stride_h();
public native void set_stride_h(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride_w = 8;
public native @Cast("bool") boolean has_stride_w();
public native void clear_stride_w();
@MemberGetter public static native int kStrideWFieldNumber();
public native @Cast("google::protobuf::uint32") int stride_w();
public native void set_stride_w(@Cast("google::protobuf::uint32") int value);
// optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::PoolingParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::PoolingParameter_Engine") int value);
// optional bool global_pooling = 12 [default = false];
public native @Cast("bool") boolean has_global_pooling();
public native void clear_global_pooling();
@MemberGetter public static native int kGlobalPoolingFieldNumber();
public native @Cast("bool") boolean global_pooling();
public native void set_global_pooling(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class PowerParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PowerParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public PowerParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public PowerParameter position(int position) {
return (PowerParameter)super.position(position);
}
public PowerParameter() { allocate(); }
private native void allocate();
public PowerParameter(@Const @ByRef PowerParameter from) { allocate(from); }
private native void allocate(@Const @ByRef PowerParameter from);
public native @ByRef @Name("operator =") PowerParameter put(@Const @ByRef PowerParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef PowerParameter default_instance();
public native void Swap(PowerParameter other);
// implements Message ----------------------------------------------
public native PowerParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef PowerParameter from);
public native void MergeFrom(@Const @ByRef PowerParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float power = 1 [default = 1];
public native @Cast("bool") boolean has_power();
public native void clear_power();
@MemberGetter public static native int kPowerFieldNumber();
public native float power();
public native void set_power(float value);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional float shift = 3 [default = 0];
public native @Cast("bool") boolean has_shift();
public native void clear_shift();
@MemberGetter public static native int kShiftFieldNumber();
public native float shift();
public native void set_shift(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class PythonParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PythonParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public PythonParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public PythonParameter position(int position) {
return (PythonParameter)super.position(position);
}
public PythonParameter() { allocate(); }
private native void allocate();
public PythonParameter(@Const @ByRef PythonParameter from) { allocate(from); }
private native void allocate(@Const @ByRef PythonParameter from);
public native @ByRef @Name("operator =") PythonParameter put(@Const @ByRef PythonParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef PythonParameter default_instance();
public native void Swap(PythonParameter other);
// implements Message ----------------------------------------------
public native PythonParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef PythonParameter from);
public native void MergeFrom(@Const @ByRef PythonParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string module = 1;
public native @Cast("bool") boolean has_module();
public native void clear_module();
@MemberGetter public static native int kModuleFieldNumber();
public native @StdString BytePointer module();
public native void set_module(@StdString BytePointer value);
public native void set_module(@StdString String value);
public native void set_module(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_module(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_module();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_module();
public native void set_allocated_module(@StdString @Cast({"char*", "std::string*"}) BytePointer module);
// optional string layer = 2;
public native @Cast("bool") boolean has_layer();
public native void clear_layer();
@MemberGetter public static native int kLayerFieldNumber();
public native @StdString BytePointer layer();
public native void set_layer(@StdString BytePointer value);
public native void set_layer(@StdString String value);
public native void set_layer(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_layer(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_layer();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_layer();
public native void set_allocated_layer(@StdString @Cast({"char*", "std::string*"}) BytePointer layer);
// optional string param_str = 3 [default = ""];
public native @Cast("bool") boolean has_param_str();
public native void clear_param_str();
@MemberGetter public static native int kParamStrFieldNumber();
public native @StdString BytePointer param_str();
public native void set_param_str(@StdString BytePointer value);
public native void set_param_str(@StdString String value);
public native void set_param_str(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_param_str(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_param_str();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_param_str();
public native void set_allocated_param_str(@StdString @Cast({"char*", "std::string*"}) BytePointer param_str);
// optional bool share_in_parallel = 4 [default = false];
public native @Cast("bool") boolean has_share_in_parallel();
public native void clear_share_in_parallel();
@MemberGetter public static native int kShareInParallelFieldNumber();
public native @Cast("bool") boolean share_in_parallel();
public native void set_share_in_parallel(@Cast("bool") boolean value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ReductionParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ReductionParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ReductionParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ReductionParameter position(int position) {
return (ReductionParameter)super.position(position);
}
public ReductionParameter() { allocate(); }
private native void allocate();
public ReductionParameter(@Const @ByRef ReductionParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ReductionParameter from);
public native @ByRef @Name("operator =") ReductionParameter put(@Const @ByRef ReductionParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ReductionParameter default_instance();
public native void Swap(ReductionParameter other);
// implements Message ----------------------------------------------
public native ReductionParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ReductionParameter from);
public native void MergeFrom(@Const @ByRef ReductionParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int SUM();
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int ASUM();
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int SUMSQ();
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int MEAN();
public static native @Cast("bool") boolean ReductionOp_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int ReductionOp_MIN();
@MemberGetter public static native @Cast("const caffe::ReductionParameter::ReductionOp") int ReductionOp_MAX();
@MemberGetter public static native int ReductionOp_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer ReductionOp_descriptor();
public static native @StdString BytePointer ReductionOp_Name(@Cast("caffe::ReductionParameter::ReductionOp") int value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString BytePointer name,
@Cast("caffe::ReductionParameter::ReductionOp*") IntPointer value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString String name,
@Cast("caffe::ReductionParameter::ReductionOp*") IntBuffer value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString BytePointer name,
@Cast("caffe::ReductionParameter::ReductionOp*") int[] value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString String name,
@Cast("caffe::ReductionParameter::ReductionOp*") IntPointer value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString BytePointer name,
@Cast("caffe::ReductionParameter::ReductionOp*") IntBuffer value);
public static native @Cast("bool") boolean ReductionOp_Parse(@StdString String name,
@Cast("caffe::ReductionParameter::ReductionOp*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
public native @Cast("bool") boolean has_operation();
public native void clear_operation();
@MemberGetter public static native int kOperationFieldNumber();
public native @Cast("caffe::ReductionParameter_ReductionOp") int operation();
public native void set_operation(@Cast("caffe::ReductionParameter_ReductionOp") int value);
// optional int32 axis = 2 [default = 0];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional float coeff = 3 [default = 1];
public native @Cast("bool") boolean has_coeff();
public native void clear_coeff();
@MemberGetter public static native int kCoeffFieldNumber();
public native float coeff();
public native void set_coeff(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ReLUParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ReLUParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ReLUParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ReLUParameter position(int position) {
return (ReLUParameter)super.position(position);
}
public ReLUParameter() { allocate(); }
private native void allocate();
public ReLUParameter(@Const @ByRef ReLUParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ReLUParameter from);
public native @ByRef @Name("operator =") ReLUParameter put(@Const @ByRef ReLUParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ReLUParameter default_instance();
public native void Swap(ReLUParameter other);
// implements Message ----------------------------------------------
public native ReLUParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ReLUParameter from);
public native void MergeFrom(@Const @ByRef ReLUParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::ReLUParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::ReLUParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::ReLUParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::ReLUParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::ReLUParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::ReLUParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ReLUParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ReLUParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ReLUParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ReLUParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::ReLUParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::ReLUParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional float negative_slope = 1 [default = 0];
public native @Cast("bool") boolean has_negative_slope();
public native void clear_negative_slope();
@MemberGetter public static native int kNegativeSlopeFieldNumber();
public native float negative_slope();
public native void set_negative_slope(float value);
// optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::ReLUParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::ReLUParameter_Engine") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ReshapeParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ReshapeParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ReshapeParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ReshapeParameter position(int position) {
return (ReshapeParameter)super.position(position);
}
public ReshapeParameter() { allocate(); }
private native void allocate();
public ReshapeParameter(@Const @ByRef ReshapeParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ReshapeParameter from);
public native @ByRef @Name("operator =") ReshapeParameter put(@Const @ByRef ReshapeParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ReshapeParameter default_instance();
public native void Swap(ReshapeParameter other);
// implements Message ----------------------------------------------
public native ReshapeParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ReshapeParameter from);
public native void MergeFrom(@Const @ByRef ReshapeParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .caffe.BlobShape shape = 1;
public native @Cast("bool") boolean has_shape();
public native void clear_shape();
@MemberGetter public static native int kShapeFieldNumber();
public native @Const @ByRef BlobShape shape();
public native BlobShape mutable_shape();
public native BlobShape release_shape();
public native void set_allocated_shape(BlobShape shape);
// optional int32 axis = 2 [default = 0];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional int32 num_axes = 3 [default = -1];
public native @Cast("bool") boolean has_num_axes();
public native void clear_num_axes();
@MemberGetter public static native int kNumAxesFieldNumber();
public native @Cast("google::protobuf::int32") int num_axes();
public native void set_num_axes(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SigmoidParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SigmoidParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SigmoidParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SigmoidParameter position(int position) {
return (SigmoidParameter)super.position(position);
}
public SigmoidParameter() { allocate(); }
private native void allocate();
public SigmoidParameter(@Const @ByRef SigmoidParameter from) { allocate(from); }
private native void allocate(@Const @ByRef SigmoidParameter from);
public native @ByRef @Name("operator =") SigmoidParameter put(@Const @ByRef SigmoidParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SigmoidParameter default_instance();
public native void Swap(SigmoidParameter other);
// implements Message ----------------------------------------------
public native SigmoidParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SigmoidParameter from);
public native void MergeFrom(@Const @ByRef SigmoidParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::SigmoidParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::SigmoidParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::SigmoidParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SigmoidParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::SigmoidParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::SigmoidParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SigmoidParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SigmoidParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SigmoidParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SigmoidParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SigmoidParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SigmoidParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::SigmoidParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::SigmoidParameter_Engine") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SliceParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SliceParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SliceParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SliceParameter position(int position) {
return (SliceParameter)super.position(position);
}
public SliceParameter() { allocate(); }
private native void allocate();
public SliceParameter(@Const @ByRef SliceParameter from) { allocate(from); }
private native void allocate(@Const @ByRef SliceParameter from);
public native @ByRef @Name("operator =") SliceParameter put(@Const @ByRef SliceParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SliceParameter default_instance();
public native void Swap(SliceParameter other);
// implements Message ----------------------------------------------
public native SliceParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SliceParameter from);
public native void MergeFrom(@Const @ByRef SliceParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 axis = 3 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// repeated uint32 slice_point = 2;
public native int slice_point_size();
public native void clear_slice_point();
@MemberGetter public static native int kSlicePointFieldNumber();
public native @Cast("google::protobuf::uint32") int slice_point(int index);
public native void set_slice_point(int index, @Cast("google::protobuf::uint32") int value);
public native void add_slice_point(@Cast("google::protobuf::uint32") int value);
// optional uint32 slice_dim = 1 [default = 1];
public native @Cast("bool") boolean has_slice_dim();
public native void clear_slice_dim();
@MemberGetter public static native int kSliceDimFieldNumber();
public native @Cast("google::protobuf::uint32") int slice_dim();
public native void set_slice_dim(@Cast("google::protobuf::uint32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SoftmaxParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SoftmaxParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SoftmaxParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SoftmaxParameter position(int position) {
return (SoftmaxParameter)super.position(position);
}
public SoftmaxParameter() { allocate(); }
private native void allocate();
public SoftmaxParameter(@Const @ByRef SoftmaxParameter from) { allocate(from); }
private native void allocate(@Const @ByRef SoftmaxParameter from);
public native @ByRef @Name("operator =") SoftmaxParameter put(@Const @ByRef SoftmaxParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SoftmaxParameter default_instance();
public native void Swap(SoftmaxParameter other);
// implements Message ----------------------------------------------
public native SoftmaxParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SoftmaxParameter from);
public native void MergeFrom(@Const @ByRef SoftmaxParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::SoftmaxParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::SoftmaxParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::SoftmaxParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SoftmaxParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::SoftmaxParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::SoftmaxParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SoftmaxParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SoftmaxParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SoftmaxParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SoftmaxParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SoftmaxParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SoftmaxParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::SoftmaxParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::SoftmaxParameter_Engine") int value);
// optional int32 axis = 2 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class TanHParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TanHParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public TanHParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public TanHParameter position(int position) {
return (TanHParameter)super.position(position);
}
public TanHParameter() { allocate(); }
private native void allocate();
public TanHParameter(@Const @ByRef TanHParameter from) { allocate(from); }
private native void allocate(@Const @ByRef TanHParameter from);
public native @ByRef @Name("operator =") TanHParameter put(@Const @ByRef TanHParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef TanHParameter default_instance();
public native void Swap(TanHParameter other);
// implements Message ----------------------------------------------
public native TanHParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef TanHParameter from);
public native void MergeFrom(@Const @ByRef TanHParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::TanHParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::TanHParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::TanHParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::TanHParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::TanHParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::TanHParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::TanHParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::TanHParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::TanHParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::TanHParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::TanHParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::TanHParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::TanHParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::TanHParameter_Engine") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class TileParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TileParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public TileParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public TileParameter position(int position) {
return (TileParameter)super.position(position);
}
public TileParameter() { allocate(); }
private native void allocate();
public TileParameter(@Const @ByRef TileParameter from) { allocate(from); }
private native void allocate(@Const @ByRef TileParameter from);
public native @ByRef @Name("operator =") TileParameter put(@Const @ByRef TileParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef TileParameter default_instance();
public native void Swap(TileParameter other);
// implements Message ----------------------------------------------
public native TileParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef TileParameter from);
public native void MergeFrom(@Const @ByRef TileParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 axis = 1 [default = 1];
public native @Cast("bool") boolean has_axis();
public native void clear_axis();
@MemberGetter public static native int kAxisFieldNumber();
public native @Cast("google::protobuf::int32") int axis();
public native void set_axis(@Cast("google::protobuf::int32") int value);
// optional int32 tiles = 2;
public native @Cast("bool") boolean has_tiles();
public native void clear_tiles();
@MemberGetter public static native int kTilesFieldNumber();
public native @Cast("google::protobuf::int32") int tiles();
public native void set_tiles(@Cast("google::protobuf::int32") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class ThresholdParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ThresholdParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public ThresholdParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public ThresholdParameter position(int position) {
return (ThresholdParameter)super.position(position);
}
public ThresholdParameter() { allocate(); }
private native void allocate();
public ThresholdParameter(@Const @ByRef ThresholdParameter from) { allocate(from); }
private native void allocate(@Const @ByRef ThresholdParameter from);
public native @ByRef @Name("operator =") ThresholdParameter put(@Const @ByRef ThresholdParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef ThresholdParameter default_instance();
public native void Swap(ThresholdParameter other);
// implements Message ----------------------------------------------
public native ThresholdParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef ThresholdParameter from);
public native void MergeFrom(@Const @ByRef ThresholdParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional float threshold = 1 [default = 0];
public native @Cast("bool") boolean has_threshold();
public native void clear_threshold();
@MemberGetter public static native int kThresholdFieldNumber();
public native float threshold();
public native void set_threshold(float value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class WindowDataParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public WindowDataParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public WindowDataParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public WindowDataParameter position(int position) {
return (WindowDataParameter)super.position(position);
}
public WindowDataParameter() { allocate(); }
private native void allocate();
public WindowDataParameter(@Const @ByRef WindowDataParameter from) { allocate(from); }
private native void allocate(@Const @ByRef WindowDataParameter from);
public native @ByRef @Name("operator =") WindowDataParameter put(@Const @ByRef WindowDataParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef WindowDataParameter default_instance();
public native void Swap(WindowDataParameter other);
// implements Message ----------------------------------------------
public native WindowDataParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef WindowDataParameter from);
public native void MergeFrom(@Const @ByRef WindowDataParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string source = 1;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
// optional float scale = 2 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional string mean_file = 3;
public native @Cast("bool") boolean has_mean_file();
public native void clear_mean_file();
@MemberGetter public static native int kMeanFileFieldNumber();
public native @StdString BytePointer mean_file();
public native void set_mean_file(@StdString BytePointer value);
public native void set_mean_file(@StdString String value);
public native void set_mean_file(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_mean_file(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_mean_file();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_mean_file();
public native void set_allocated_mean_file(@StdString @Cast({"char*", "std::string*"}) BytePointer mean_file);
// optional uint32 batch_size = 4;
public native @Cast("bool") boolean has_batch_size();
public native void clear_batch_size();
@MemberGetter public static native int kBatchSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batch_size();
public native void set_batch_size(@Cast("google::protobuf::uint32") int value);
// optional uint32 crop_size = 5 [default = 0];
public native @Cast("bool") boolean has_crop_size();
public native void clear_crop_size();
@MemberGetter public static native int kCropSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int crop_size();
public native void set_crop_size(@Cast("google::protobuf::uint32") int value);
// optional bool mirror = 6 [default = false];
public native @Cast("bool") boolean has_mirror();
public native void clear_mirror();
@MemberGetter public static native int kMirrorFieldNumber();
public native @Cast("bool") boolean mirror();
public native void set_mirror(@Cast("bool") boolean value);
// optional float fg_threshold = 7 [default = 0.5];
public native @Cast("bool") boolean has_fg_threshold();
public native void clear_fg_threshold();
@MemberGetter public static native int kFgThresholdFieldNumber();
public native float fg_threshold();
public native void set_fg_threshold(float value);
// optional float bg_threshold = 8 [default = 0.5];
public native @Cast("bool") boolean has_bg_threshold();
public native void clear_bg_threshold();
@MemberGetter public static native int kBgThresholdFieldNumber();
public native float bg_threshold();
public native void set_bg_threshold(float value);
// optional float fg_fraction = 9 [default = 0.25];
public native @Cast("bool") boolean has_fg_fraction();
public native void clear_fg_fraction();
@MemberGetter public static native int kFgFractionFieldNumber();
public native float fg_fraction();
public native void set_fg_fraction(float value);
// optional uint32 context_pad = 10 [default = 0];
public native @Cast("bool") boolean has_context_pad();
public native void clear_context_pad();
@MemberGetter public static native int kContextPadFieldNumber();
public native @Cast("google::protobuf::uint32") int context_pad();
public native void set_context_pad(@Cast("google::protobuf::uint32") int value);
// optional string crop_mode = 11 [default = "warp"];
public native @Cast("bool") boolean has_crop_mode();
public native void clear_crop_mode();
@MemberGetter public static native int kCropModeFieldNumber();
public native @StdString BytePointer crop_mode();
public native void set_crop_mode(@StdString BytePointer value);
public native void set_crop_mode(@StdString String value);
public native void set_crop_mode(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_crop_mode(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_crop_mode();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_crop_mode();
public native void set_allocated_crop_mode(@StdString @Cast({"char*", "std::string*"}) BytePointer crop_mode);
// optional bool cache_images = 12 [default = false];
public native @Cast("bool") boolean has_cache_images();
public native void clear_cache_images();
@MemberGetter public static native int kCacheImagesFieldNumber();
public native @Cast("bool") boolean cache_images();
public native void set_cache_images(@Cast("bool") boolean value);
// optional string root_folder = 13 [default = ""];
public native @Cast("bool") boolean has_root_folder();
public native void clear_root_folder();
@MemberGetter public static native int kRootFolderFieldNumber();
public native @StdString BytePointer root_folder();
public native void set_root_folder(@StdString BytePointer value);
public native void set_root_folder(@StdString String value);
public native void set_root_folder(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_root_folder(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_root_folder();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_root_folder();
public native void set_allocated_root_folder(@StdString @Cast({"char*", "std::string*"}) BytePointer root_folder);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class SPPParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SPPParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SPPParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SPPParameter position(int position) {
return (SPPParameter)super.position(position);
}
public SPPParameter() { allocate(); }
private native void allocate();
public SPPParameter(@Const @ByRef SPPParameter from) { allocate(from); }
private native void allocate(@Const @ByRef SPPParameter from);
public native @ByRef @Name("operator =") SPPParameter put(@Const @ByRef SPPParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef SPPParameter default_instance();
public native void Swap(SPPParameter other);
// implements Message ----------------------------------------------
public native SPPParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef SPPParameter from);
public native void MergeFrom(@Const @ByRef SPPParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::SPPParameter::PoolMethod") int MAX();
@MemberGetter public static native @Cast("const caffe::SPPParameter::PoolMethod") int AVE();
@MemberGetter public static native @Cast("const caffe::SPPParameter::PoolMethod") int STOCHASTIC();
public static native @Cast("bool") boolean PoolMethod_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SPPParameter::PoolMethod") int PoolMethod_MIN();
@MemberGetter public static native @Cast("const caffe::SPPParameter::PoolMethod") int PoolMethod_MAX();
@MemberGetter public static native int PoolMethod_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer PoolMethod_descriptor();
public static native @StdString BytePointer PoolMethod_Name(@Cast("caffe::SPPParameter::PoolMethod") int value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::SPPParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::PoolMethod*") int[] value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::SPPParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::SPPParameter::PoolMethod*") int[] value);
@MemberGetter public static native @Cast("const caffe::SPPParameter::Engine") int DEFAULT();
@MemberGetter public static native @Cast("const caffe::SPPParameter::Engine") int CAFFE();
@MemberGetter public static native @Cast("const caffe::SPPParameter::Engine") int CUDNN();
public static native @Cast("bool") boolean Engine_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::SPPParameter::Engine") int Engine_MIN();
@MemberGetter public static native @Cast("const caffe::SPPParameter::Engine") int Engine_MAX();
@MemberGetter public static native int Engine_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer Engine_descriptor();
public static native @StdString BytePointer Engine_Name(@Cast("caffe::SPPParameter::Engine") int value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SPPParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::Engine*") int[] value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SPPParameter::Engine*") IntPointer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString BytePointer name,
@Cast("caffe::SPPParameter::Engine*") IntBuffer value);
public static native @Cast("bool") boolean Engine_Parse(@StdString String name,
@Cast("caffe::SPPParameter::Engine*") int[] value);
// accessors -------------------------------------------------------
// optional uint32 pyramid_height = 1;
public native @Cast("bool") boolean has_pyramid_height();
public native void clear_pyramid_height();
@MemberGetter public static native int kPyramidHeightFieldNumber();
public native @Cast("google::protobuf::uint32") int pyramid_height();
public native void set_pyramid_height(@Cast("google::protobuf::uint32") int value);
// optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
public native @Cast("bool") boolean has_pool();
public native void clear_pool();
@MemberGetter public static native int kPoolFieldNumber();
public native @Cast("caffe::SPPParameter_PoolMethod") int pool();
public native void set_pool(@Cast("caffe::SPPParameter_PoolMethod") int value);
// optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
public native @Cast("bool") boolean has_engine();
public native void clear_engine();
@MemberGetter public static native int kEngineFieldNumber();
public native @Cast("caffe::SPPParameter_Engine") int engine();
public native void set_engine(@Cast("caffe::SPPParameter_Engine") int value);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class V1LayerParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public V1LayerParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public V1LayerParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public V1LayerParameter position(int position) {
return (V1LayerParameter)super.position(position);
}
public V1LayerParameter() { allocate(); }
private native void allocate();
public V1LayerParameter(@Const @ByRef V1LayerParameter from) { allocate(from); }
private native void allocate(@Const @ByRef V1LayerParameter from);
public native @ByRef @Name("operator =") V1LayerParameter put(@Const @ByRef V1LayerParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef V1LayerParameter default_instance();
public native void Swap(V1LayerParameter other);
// implements Message ----------------------------------------------
public native V1LayerParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef V1LayerParameter from);
public native void MergeFrom(@Const @ByRef V1LayerParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int NONE();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int ABSVAL();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int ACCURACY();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int ARGMAX();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int BNLL();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int CONCAT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int CONTRASTIVE_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int CONVOLUTION();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int DECONVOLUTION();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int DROPOUT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int DUMMY_DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int EUCLIDEAN_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int ELTWISE();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int EXP();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int FLATTEN();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int HDF5_DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int HDF5_OUTPUT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int HINGE_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int IM2COL();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int IMAGE_DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int INFOGAIN_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int INNER_PRODUCT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int LRN();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int MEMORY_DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int MULTINOMIAL_LOGISTIC_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int MVN();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int POOLING();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int POWER();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int RELU();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SIGMOID();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SIGMOID_CROSS_ENTROPY_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SILENCE();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SOFTMAX();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SOFTMAX_LOSS();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SPLIT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int SLICE();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int TANH();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int WINDOW_DATA();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int THRESHOLD();
public static native @Cast("bool") boolean LayerType_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int LayerType_MIN();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::LayerType") int LayerType_MAX();
@MemberGetter public static native int LayerType_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer LayerType_descriptor();
public static native @StdString BytePointer LayerType_Name(@Cast("caffe::V1LayerParameter::LayerType") int value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::LayerType*") IntPointer value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::LayerType*") IntBuffer value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::LayerType*") int[] value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::LayerType*") IntPointer value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::LayerType*") IntBuffer value);
public static native @Cast("bool") boolean LayerType_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::LayerType*") int[] value);
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::DimCheckMode") int STRICT();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::DimCheckMode") int PERMISSIVE();
public static native @Cast("bool") boolean DimCheckMode_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::DimCheckMode") int DimCheckMode_MIN();
@MemberGetter public static native @Cast("const caffe::V1LayerParameter::DimCheckMode") int DimCheckMode_MAX();
@MemberGetter public static native int DimCheckMode_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer DimCheckMode_descriptor();
public static native @StdString BytePointer DimCheckMode_Name(@Cast("caffe::V1LayerParameter::DimCheckMode") int value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") IntPointer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") IntBuffer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") int[] value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") IntPointer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString BytePointer name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") IntBuffer value);
public static native @Cast("bool") boolean DimCheckMode_Parse(@StdString String name,
@Cast("caffe::V1LayerParameter::DimCheckMode*") int[] value);
// accessors -------------------------------------------------------
// repeated string bottom = 2;
public native int bottom_size();
public native void clear_bottom();
@MemberGetter public static native int kBottomFieldNumber();
public native @StdString BytePointer bottom(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_bottom(int index);
public native void set_bottom(int index, @StdString BytePointer value);
public native void set_bottom(int index, @StdString String value);
public native void set_bottom(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_bottom(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_bottom();
public native void add_bottom(@StdString BytePointer value);
public native void add_bottom(@StdString String value);
public native void add_bottom(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_bottom(String value, @Cast("size_t") long size);
// repeated string top = 3;
public native int top_size();
public native void clear_top();
@MemberGetter public static native int kTopFieldNumber();
public native @StdString BytePointer top(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_top(int index);
public native void set_top(int index, @StdString BytePointer value);
public native void set_top(int index, @StdString String value);
public native void set_top(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_top(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_top();
public native void add_top(@StdString BytePointer value);
public native void add_top(@StdString String value);
public native void add_top(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_top(String value, @Cast("size_t") long size);
// optional string name = 4;
public native @Cast("bool") boolean has_name();
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
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);
// repeated .caffe.NetStateRule include = 32;
public native int include_size();
public native void clear_include();
@MemberGetter public static native int kIncludeFieldNumber();
public native @Const @ByRef NetStateRule include(int index);
public native NetStateRule mutable_include(int index);
public native NetStateRule add_include();
// repeated .caffe.NetStateRule exclude = 33;
public native int exclude_size();
public native void clear_exclude();
@MemberGetter public static native int kExcludeFieldNumber();
public native @Const @ByRef NetStateRule exclude(int index);
public native NetStateRule mutable_exclude(int index);
public native NetStateRule add_exclude();
// optional .caffe.V1LayerParameter.LayerType type = 5;
public native @Cast("bool") boolean has_type();
public native void clear_type();
@MemberGetter public static native int kTypeFieldNumber();
public native @Cast("caffe::V1LayerParameter_LayerType") int type();
public native void set_type(@Cast("caffe::V1LayerParameter_LayerType") int value);
// repeated .caffe.BlobProto blobs = 6;
public native int blobs_size();
public native void clear_blobs();
@MemberGetter public static native int kBlobsFieldNumber();
public native @Const @ByRef BlobProto blobs(int index);
public native BlobProto mutable_blobs(int index);
public native BlobProto add_blobs();
// repeated string param = 1001;
public native int param_size();
public native void clear_param();
@MemberGetter public static native int kParamFieldNumber();
public native @StdString BytePointer param(int index);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_param(int index);
public native void set_param(int index, @StdString BytePointer value);
public native void set_param(int index, @StdString String value);
public native void set_param(int index, @Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_param(int index, String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer add_param();
public native void add_param(@StdString BytePointer value);
public native void add_param(@StdString String value);
public native void add_param(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void add_param(String value, @Cast("size_t") long size);
// repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
public native int blob_share_mode_size();
public native void clear_blob_share_mode();
@MemberGetter public static native int kBlobShareModeFieldNumber();
public native @Cast("caffe::V1LayerParameter_DimCheckMode") int blob_share_mode(int index);
public native void set_blob_share_mode(int index, @Cast("caffe::V1LayerParameter_DimCheckMode") int value);
public native void add_blob_share_mode(@Cast("caffe::V1LayerParameter_DimCheckMode") int value);
// repeated float blobs_lr = 7;
public native int blobs_lr_size();
public native void clear_blobs_lr();
@MemberGetter public static native int kBlobsLrFieldNumber();
public native float blobs_lr(int index);
public native void set_blobs_lr(int index, float value);
public native void add_blobs_lr(float value);
// repeated float weight_decay = 8;
public native int weight_decay_size();
public native void clear_weight_decay();
@MemberGetter public static native int kWeightDecayFieldNumber();
public native float weight_decay(int index);
public native void set_weight_decay(int index, float value);
public native void add_weight_decay(float value);
// repeated float loss_weight = 35;
public native int loss_weight_size();
public native void clear_loss_weight();
@MemberGetter public static native int kLossWeightFieldNumber();
public native float loss_weight(int index);
public native void set_loss_weight(int index, float value);
public native void add_loss_weight(float value);
// optional .caffe.AccuracyParameter accuracy_param = 27;
public native @Cast("bool") boolean has_accuracy_param();
public native void clear_accuracy_param();
@MemberGetter public static native int kAccuracyParamFieldNumber();
public native @Const @ByRef AccuracyParameter accuracy_param();
public native AccuracyParameter mutable_accuracy_param();
public native AccuracyParameter release_accuracy_param();
public native void set_allocated_accuracy_param(AccuracyParameter accuracy_param);
// optional .caffe.ArgMaxParameter argmax_param = 23;
public native @Cast("bool") boolean has_argmax_param();
public native void clear_argmax_param();
@MemberGetter public static native int kArgmaxParamFieldNumber();
public native @Const @ByRef ArgMaxParameter argmax_param();
public native ArgMaxParameter mutable_argmax_param();
public native ArgMaxParameter release_argmax_param();
public native void set_allocated_argmax_param(ArgMaxParameter argmax_param);
// optional .caffe.ConcatParameter concat_param = 9;
public native @Cast("bool") boolean has_concat_param();
public native void clear_concat_param();
@MemberGetter public static native int kConcatParamFieldNumber();
public native @Const @ByRef ConcatParameter concat_param();
public native ConcatParameter mutable_concat_param();
public native ConcatParameter release_concat_param();
public native void set_allocated_concat_param(ConcatParameter concat_param);
// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40;
public native @Cast("bool") boolean has_contrastive_loss_param();
public native void clear_contrastive_loss_param();
@MemberGetter public static native int kContrastiveLossParamFieldNumber();
public native @Const @ByRef ContrastiveLossParameter contrastive_loss_param();
public native ContrastiveLossParameter mutable_contrastive_loss_param();
public native ContrastiveLossParameter release_contrastive_loss_param();
public native void set_allocated_contrastive_loss_param(ContrastiveLossParameter contrastive_loss_param);
// optional .caffe.ConvolutionParameter convolution_param = 10;
public native @Cast("bool") boolean has_convolution_param();
public native void clear_convolution_param();
@MemberGetter public static native int kConvolutionParamFieldNumber();
public native @Const @ByRef ConvolutionParameter convolution_param();
public native ConvolutionParameter mutable_convolution_param();
public native ConvolutionParameter release_convolution_param();
public native void set_allocated_convolution_param(ConvolutionParameter convolution_param);
// optional .caffe.DataParameter data_param = 11;
public native @Cast("bool") boolean has_data_param();
public native void clear_data_param();
@MemberGetter public static native int kDataParamFieldNumber();
public native @Const @ByRef DataParameter data_param();
public native DataParameter mutable_data_param();
public native DataParameter release_data_param();
public native void set_allocated_data_param(DataParameter data_param);
// optional .caffe.DropoutParameter dropout_param = 12;
public native @Cast("bool") boolean has_dropout_param();
public native void clear_dropout_param();
@MemberGetter public static native int kDropoutParamFieldNumber();
public native @Const @ByRef DropoutParameter dropout_param();
public native DropoutParameter mutable_dropout_param();
public native DropoutParameter release_dropout_param();
public native void set_allocated_dropout_param(DropoutParameter dropout_param);
// optional .caffe.DummyDataParameter dummy_data_param = 26;
public native @Cast("bool") boolean has_dummy_data_param();
public native void clear_dummy_data_param();
@MemberGetter public static native int kDummyDataParamFieldNumber();
public native @Const @ByRef DummyDataParameter dummy_data_param();
public native DummyDataParameter mutable_dummy_data_param();
public native DummyDataParameter release_dummy_data_param();
public native void set_allocated_dummy_data_param(DummyDataParameter dummy_data_param);
// optional .caffe.EltwiseParameter eltwise_param = 24;
public native @Cast("bool") boolean has_eltwise_param();
public native void clear_eltwise_param();
@MemberGetter public static native int kEltwiseParamFieldNumber();
public native @Const @ByRef EltwiseParameter eltwise_param();
public native EltwiseParameter mutable_eltwise_param();
public native EltwiseParameter release_eltwise_param();
public native void set_allocated_eltwise_param(EltwiseParameter eltwise_param);
// optional .caffe.ExpParameter exp_param = 41;
public native @Cast("bool") boolean has_exp_param();
public native void clear_exp_param();
@MemberGetter public static native int kExpParamFieldNumber();
public native @Const @ByRef ExpParameter exp_param();
public native ExpParameter mutable_exp_param();
public native ExpParameter release_exp_param();
public native void set_allocated_exp_param(ExpParameter exp_param);
// optional .caffe.HDF5DataParameter hdf5_data_param = 13;
public native @Cast("bool") boolean has_hdf5_data_param();
public native void clear_hdf5_data_param();
@MemberGetter public static native int kHdf5DataParamFieldNumber();
public native @Const @ByRef HDF5DataParameter hdf5_data_param();
public native HDF5DataParameter mutable_hdf5_data_param();
public native HDF5DataParameter release_hdf5_data_param();
public native void set_allocated_hdf5_data_param(HDF5DataParameter hdf5_data_param);
// optional .caffe.HDF5OutputParameter hdf5_output_param = 14;
public native @Cast("bool") boolean has_hdf5_output_param();
public native void clear_hdf5_output_param();
@MemberGetter public static native int kHdf5OutputParamFieldNumber();
public native @Const @ByRef HDF5OutputParameter hdf5_output_param();
public native HDF5OutputParameter mutable_hdf5_output_param();
public native HDF5OutputParameter release_hdf5_output_param();
public native void set_allocated_hdf5_output_param(HDF5OutputParameter hdf5_output_param);
// optional .caffe.HingeLossParameter hinge_loss_param = 29;
public native @Cast("bool") boolean has_hinge_loss_param();
public native void clear_hinge_loss_param();
@MemberGetter public static native int kHingeLossParamFieldNumber();
public native @Const @ByRef HingeLossParameter hinge_loss_param();
public native HingeLossParameter mutable_hinge_loss_param();
public native HingeLossParameter release_hinge_loss_param();
public native void set_allocated_hinge_loss_param(HingeLossParameter hinge_loss_param);
// optional .caffe.ImageDataParameter image_data_param = 15;
public native @Cast("bool") boolean has_image_data_param();
public native void clear_image_data_param();
@MemberGetter public static native int kImageDataParamFieldNumber();
public native @Const @ByRef ImageDataParameter image_data_param();
public native ImageDataParameter mutable_image_data_param();
public native ImageDataParameter release_image_data_param();
public native void set_allocated_image_data_param(ImageDataParameter image_data_param);
// optional .caffe.InfogainLossParameter infogain_loss_param = 16;
public native @Cast("bool") boolean has_infogain_loss_param();
public native void clear_infogain_loss_param();
@MemberGetter public static native int kInfogainLossParamFieldNumber();
public native @Const @ByRef InfogainLossParameter infogain_loss_param();
public native InfogainLossParameter mutable_infogain_loss_param();
public native InfogainLossParameter release_infogain_loss_param();
public native void set_allocated_infogain_loss_param(InfogainLossParameter infogain_loss_param);
// optional .caffe.InnerProductParameter inner_product_param = 17;
public native @Cast("bool") boolean has_inner_product_param();
public native void clear_inner_product_param();
@MemberGetter public static native int kInnerProductParamFieldNumber();
public native @Const @ByRef InnerProductParameter inner_product_param();
public native InnerProductParameter mutable_inner_product_param();
public native InnerProductParameter release_inner_product_param();
public native void set_allocated_inner_product_param(InnerProductParameter inner_product_param);
// optional .caffe.LRNParameter lrn_param = 18;
public native @Cast("bool") boolean has_lrn_param();
public native void clear_lrn_param();
@MemberGetter public static native int kLrnParamFieldNumber();
public native @Const @ByRef LRNParameter lrn_param();
public native LRNParameter mutable_lrn_param();
public native LRNParameter release_lrn_param();
public native void set_allocated_lrn_param(LRNParameter lrn_param);
// optional .caffe.MemoryDataParameter memory_data_param = 22;
public native @Cast("bool") boolean has_memory_data_param();
public native void clear_memory_data_param();
@MemberGetter public static native int kMemoryDataParamFieldNumber();
public native @Const @ByRef MemoryDataParameter memory_data_param();
public native MemoryDataParameter mutable_memory_data_param();
public native MemoryDataParameter release_memory_data_param();
public native void set_allocated_memory_data_param(MemoryDataParameter memory_data_param);
// optional .caffe.MVNParameter mvn_param = 34;
public native @Cast("bool") boolean has_mvn_param();
public native void clear_mvn_param();
@MemberGetter public static native int kMvnParamFieldNumber();
public native @Const @ByRef MVNParameter mvn_param();
public native MVNParameter mutable_mvn_param();
public native MVNParameter release_mvn_param();
public native void set_allocated_mvn_param(MVNParameter mvn_param);
// optional .caffe.PoolingParameter pooling_param = 19;
public native @Cast("bool") boolean has_pooling_param();
public native void clear_pooling_param();
@MemberGetter public static native int kPoolingParamFieldNumber();
public native @Const @ByRef PoolingParameter pooling_param();
public native PoolingParameter mutable_pooling_param();
public native PoolingParameter release_pooling_param();
public native void set_allocated_pooling_param(PoolingParameter pooling_param);
// optional .caffe.PowerParameter power_param = 21;
public native @Cast("bool") boolean has_power_param();
public native void clear_power_param();
@MemberGetter public static native int kPowerParamFieldNumber();
public native @Const @ByRef PowerParameter power_param();
public native PowerParameter mutable_power_param();
public native PowerParameter release_power_param();
public native void set_allocated_power_param(PowerParameter power_param);
// optional .caffe.ReLUParameter relu_param = 30;
public native @Cast("bool") boolean has_relu_param();
public native void clear_relu_param();
@MemberGetter public static native int kReluParamFieldNumber();
public native @Const @ByRef ReLUParameter relu_param();
public native ReLUParameter mutable_relu_param();
public native ReLUParameter release_relu_param();
public native void set_allocated_relu_param(ReLUParameter relu_param);
// optional .caffe.SigmoidParameter sigmoid_param = 38;
public native @Cast("bool") boolean has_sigmoid_param();
public native void clear_sigmoid_param();
@MemberGetter public static native int kSigmoidParamFieldNumber();
public native @Const @ByRef SigmoidParameter sigmoid_param();
public native SigmoidParameter mutable_sigmoid_param();
public native SigmoidParameter release_sigmoid_param();
public native void set_allocated_sigmoid_param(SigmoidParameter sigmoid_param);
// optional .caffe.SoftmaxParameter softmax_param = 39;
public native @Cast("bool") boolean has_softmax_param();
public native void clear_softmax_param();
@MemberGetter public static native int kSoftmaxParamFieldNumber();
public native @Const @ByRef SoftmaxParameter softmax_param();
public native SoftmaxParameter mutable_softmax_param();
public native SoftmaxParameter release_softmax_param();
public native void set_allocated_softmax_param(SoftmaxParameter softmax_param);
// optional .caffe.SliceParameter slice_param = 31;
public native @Cast("bool") boolean has_slice_param();
public native void clear_slice_param();
@MemberGetter public static native int kSliceParamFieldNumber();
public native @Const @ByRef SliceParameter slice_param();
public native SliceParameter mutable_slice_param();
public native SliceParameter release_slice_param();
public native void set_allocated_slice_param(SliceParameter slice_param);
// optional .caffe.TanHParameter tanh_param = 37;
public native @Cast("bool") boolean has_tanh_param();
public native void clear_tanh_param();
@MemberGetter public static native int kTanhParamFieldNumber();
public native @Const @ByRef TanHParameter tanh_param();
public native TanHParameter mutable_tanh_param();
public native TanHParameter release_tanh_param();
public native void set_allocated_tanh_param(TanHParameter tanh_param);
// optional .caffe.ThresholdParameter threshold_param = 25;
public native @Cast("bool") boolean has_threshold_param();
public native void clear_threshold_param();
@MemberGetter public static native int kThresholdParamFieldNumber();
public native @Const @ByRef ThresholdParameter threshold_param();
public native ThresholdParameter mutable_threshold_param();
public native ThresholdParameter release_threshold_param();
public native void set_allocated_threshold_param(ThresholdParameter threshold_param);
// optional .caffe.WindowDataParameter window_data_param = 20;
public native @Cast("bool") boolean has_window_data_param();
public native void clear_window_data_param();
@MemberGetter public static native int kWindowDataParamFieldNumber();
public native @Const @ByRef WindowDataParameter window_data_param();
public native WindowDataParameter mutable_window_data_param();
public native WindowDataParameter release_window_data_param();
public native void set_allocated_window_data_param(WindowDataParameter window_data_param);
// optional .caffe.TransformationParameter transform_param = 36;
public native @Cast("bool") boolean has_transform_param();
public native void clear_transform_param();
@MemberGetter public static native int kTransformParamFieldNumber();
public native @Const @ByRef TransformationParameter transform_param();
public native TransformationParameter mutable_transform_param();
public native TransformationParameter release_transform_param();
public native void set_allocated_transform_param(TransformationParameter transform_param);
// optional .caffe.LossParameter loss_param = 42;
public native @Cast("bool") boolean has_loss_param();
public native void clear_loss_param();
@MemberGetter public static native int kLossParamFieldNumber();
public native @Const @ByRef LossParameter loss_param();
public native LossParameter mutable_loss_param();
public native LossParameter release_loss_param();
public native void set_allocated_loss_param(LossParameter loss_param);
// optional .caffe.V0LayerParameter layer = 1;
public native @Cast("bool") boolean has_layer();
public native void clear_layer();
@MemberGetter public static native int kLayerFieldNumber();
public native @Const @ByRef V0LayerParameter layer();
public native V0LayerParameter mutable_layer();
public native V0LayerParameter release_layer();
public native void set_allocated_layer(V0LayerParameter layer);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class V0LayerParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public V0LayerParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public V0LayerParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public V0LayerParameter position(int position) {
return (V0LayerParameter)super.position(position);
}
public V0LayerParameter() { allocate(); }
private native void allocate();
public V0LayerParameter(@Const @ByRef V0LayerParameter from) { allocate(from); }
private native void allocate(@Const @ByRef V0LayerParameter from);
public native @ByRef @Name("operator =") V0LayerParameter put(@Const @ByRef V0LayerParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef V0LayerParameter default_instance();
public native void Swap(V0LayerParameter other);
// implements Message ----------------------------------------------
public native V0LayerParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef V0LayerParameter from);
public native void MergeFrom(@Const @ByRef V0LayerParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
@MemberGetter public static native @Cast("const caffe::V0LayerParameter::PoolMethod") int MAX();
@MemberGetter public static native @Cast("const caffe::V0LayerParameter::PoolMethod") int AVE();
@MemberGetter public static native @Cast("const caffe::V0LayerParameter::PoolMethod") int STOCHASTIC();
public static native @Cast("bool") boolean PoolMethod_IsValid(int value);
@MemberGetter public static native @Cast("const caffe::V0LayerParameter::PoolMethod") int PoolMethod_MIN();
@MemberGetter public static native @Cast("const caffe::V0LayerParameter::PoolMethod") int PoolMethod_MAX();
@MemberGetter public static native int PoolMethod_ARRAYSIZE();
public static native @Cast("const google::protobuf::EnumDescriptor*") Pointer PoolMethod_descriptor();
public static native @StdString BytePointer PoolMethod_Name(@Cast("caffe::V0LayerParameter::PoolMethod") int value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::V0LayerParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::V0LayerParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::V0LayerParameter::PoolMethod*") int[] value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::V0LayerParameter::PoolMethod*") IntPointer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString BytePointer name,
@Cast("caffe::V0LayerParameter::PoolMethod*") IntBuffer value);
public static native @Cast("bool") boolean PoolMethod_Parse(@StdString String name,
@Cast("caffe::V0LayerParameter::PoolMethod*") int[] value);
// accessors -------------------------------------------------------
// optional string name = 1;
public native @Cast("bool") boolean has_name();
public native void clear_name();
@MemberGetter public static native int kNameFieldNumber();
public native @StdString BytePointer name();
public native void set_name(@StdString BytePointer value);
public native void set_name(@StdString String value);
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);
// optional string type = 2;
public native @Cast("bool") boolean has_type();
public native void clear_type();
@MemberGetter public static native int kTypeFieldNumber();
public native @StdString BytePointer type();
public native void set_type(@StdString BytePointer value);
public native void set_type(@StdString String value);
public native void set_type(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_type(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_type();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_type();
public native void set_allocated_type(@StdString @Cast({"char*", "std::string*"}) BytePointer type);
// optional uint32 num_output = 3;
public native @Cast("bool") boolean has_num_output();
public native void clear_num_output();
@MemberGetter public static native int kNumOutputFieldNumber();
public native @Cast("google::protobuf::uint32") int num_output();
public native void set_num_output(@Cast("google::protobuf::uint32") int value);
// optional bool biasterm = 4 [default = true];
public native @Cast("bool") boolean has_biasterm();
public native void clear_biasterm();
@MemberGetter public static native int kBiastermFieldNumber();
public native @Cast("bool") boolean biasterm();
public native void set_biasterm(@Cast("bool") boolean value);
// optional .caffe.FillerParameter weight_filler = 5;
public native @Cast("bool") boolean has_weight_filler();
public native void clear_weight_filler();
@MemberGetter public static native int kWeightFillerFieldNumber();
public native @Const @ByRef FillerParameter weight_filler();
public native FillerParameter mutable_weight_filler();
public native FillerParameter release_weight_filler();
public native void set_allocated_weight_filler(FillerParameter weight_filler);
// optional .caffe.FillerParameter bias_filler = 6;
public native @Cast("bool") boolean has_bias_filler();
public native void clear_bias_filler();
@MemberGetter public static native int kBiasFillerFieldNumber();
public native @Const @ByRef FillerParameter bias_filler();
public native FillerParameter mutable_bias_filler();
public native FillerParameter release_bias_filler();
public native void set_allocated_bias_filler(FillerParameter bias_filler);
// optional uint32 pad = 7 [default = 0];
public native @Cast("bool") boolean has_pad();
public native void clear_pad();
@MemberGetter public static native int kPadFieldNumber();
public native @Cast("google::protobuf::uint32") int pad();
public native void set_pad(@Cast("google::protobuf::uint32") int value);
// optional uint32 kernelsize = 8;
public native @Cast("bool") boolean has_kernelsize();
public native void clear_kernelsize();
@MemberGetter public static native int kKernelsizeFieldNumber();
public native @Cast("google::protobuf::uint32") int kernelsize();
public native void set_kernelsize(@Cast("google::protobuf::uint32") int value);
// optional uint32 group = 9 [default = 1];
public native @Cast("bool") boolean has_group();
public native void clear_group();
@MemberGetter public static native int kGroupFieldNumber();
public native @Cast("google::protobuf::uint32") int group();
public native void set_group(@Cast("google::protobuf::uint32") int value);
// optional uint32 stride = 10 [default = 1];
public native @Cast("bool") boolean has_stride();
public native void clear_stride();
@MemberGetter public static native int kStrideFieldNumber();
public native @Cast("google::protobuf::uint32") int stride();
public native void set_stride(@Cast("google::protobuf::uint32") int value);
// optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
public native @Cast("bool") boolean has_pool();
public native void clear_pool();
@MemberGetter public static native int kPoolFieldNumber();
public native @Cast("caffe::V0LayerParameter_PoolMethod") int pool();
public native void set_pool(@Cast("caffe::V0LayerParameter_PoolMethod") int value);
// optional float dropout_ratio = 12 [default = 0.5];
public native @Cast("bool") boolean has_dropout_ratio();
public native void clear_dropout_ratio();
@MemberGetter public static native int kDropoutRatioFieldNumber();
public native float dropout_ratio();
public native void set_dropout_ratio(float value);
// optional uint32 local_size = 13 [default = 5];
public native @Cast("bool") boolean has_local_size();
public native void clear_local_size();
@MemberGetter public static native int kLocalSizeFieldNumber();
public native @Cast("google::protobuf::uint32") int local_size();
public native void set_local_size(@Cast("google::protobuf::uint32") int value);
// optional float alpha = 14 [default = 1];
public native @Cast("bool") boolean has_alpha();
public native void clear_alpha();
@MemberGetter public static native int kAlphaFieldNumber();
public native float alpha();
public native void set_alpha(float value);
// optional float beta = 15 [default = 0.75];
public native @Cast("bool") boolean has_beta();
public native void clear_beta();
@MemberGetter public static native int kBetaFieldNumber();
public native float beta();
public native void set_beta(float value);
// optional float k = 22 [default = 1];
public native @Cast("bool") boolean has_k();
public native void clear_k();
@MemberGetter public static native int kKFieldNumber();
public native float k();
public native void set_k(float value);
// optional string source = 16;
public native @Cast("bool") boolean has_source();
public native void clear_source();
@MemberGetter public static native int kSourceFieldNumber();
public native @StdString BytePointer source();
public native void set_source(@StdString BytePointer value);
public native void set_source(@StdString String value);
public native void set_source(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_source(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_source();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_source();
public native void set_allocated_source(@StdString @Cast({"char*", "std::string*"}) BytePointer source);
// optional float scale = 17 [default = 1];
public native @Cast("bool") boolean has_scale();
public native void clear_scale();
@MemberGetter public static native int kScaleFieldNumber();
public native float scale();
public native void set_scale(float value);
// optional string meanfile = 18;
public native @Cast("bool") boolean has_meanfile();
public native void clear_meanfile();
@MemberGetter public static native int kMeanfileFieldNumber();
public native @StdString BytePointer meanfile();
public native void set_meanfile(@StdString BytePointer value);
public native void set_meanfile(@StdString String value);
public native void set_meanfile(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_meanfile(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_meanfile();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_meanfile();
public native void set_allocated_meanfile(@StdString @Cast({"char*", "std::string*"}) BytePointer meanfile);
// optional uint32 batchsize = 19;
public native @Cast("bool") boolean has_batchsize();
public native void clear_batchsize();
@MemberGetter public static native int kBatchsizeFieldNumber();
public native @Cast("google::protobuf::uint32") int batchsize();
public native void set_batchsize(@Cast("google::protobuf::uint32") int value);
// optional uint32 cropsize = 20 [default = 0];
public native @Cast("bool") boolean has_cropsize();
public native void clear_cropsize();
@MemberGetter public static native int kCropsizeFieldNumber();
public native @Cast("google::protobuf::uint32") int cropsize();
public native void set_cropsize(@Cast("google::protobuf::uint32") int value);
// optional bool mirror = 21 [default = false];
public native @Cast("bool") boolean has_mirror();
public native void clear_mirror();
@MemberGetter public static native int kMirrorFieldNumber();
public native @Cast("bool") boolean mirror();
public native void set_mirror(@Cast("bool") boolean value);
// repeated .caffe.BlobProto blobs = 50;
public native int blobs_size();
public native void clear_blobs();
@MemberGetter public static native int kBlobsFieldNumber();
public native @Const @ByRef BlobProto blobs(int index);
public native BlobProto mutable_blobs(int index);
public native BlobProto add_blobs();
// repeated float blobs_lr = 51;
public native int blobs_lr_size();
public native void clear_blobs_lr();
@MemberGetter public static native int kBlobsLrFieldNumber();
public native float blobs_lr(int index);
public native void set_blobs_lr(int index, float value);
public native void add_blobs_lr(float value);
// repeated float weight_decay = 52;
public native int weight_decay_size();
public native void clear_weight_decay();
@MemberGetter public static native int kWeightDecayFieldNumber();
public native float weight_decay(int index);
public native void set_weight_decay(int index, float value);
public native void add_weight_decay(float value);
// optional uint32 rand_skip = 53 [default = 0];
public native @Cast("bool") boolean has_rand_skip();
public native void clear_rand_skip();
@MemberGetter public static native int kRandSkipFieldNumber();
public native @Cast("google::protobuf::uint32") int rand_skip();
public native void set_rand_skip(@Cast("google::protobuf::uint32") int value);
// optional float det_fg_threshold = 54 [default = 0.5];
public native @Cast("bool") boolean has_det_fg_threshold();
public native void clear_det_fg_threshold();
@MemberGetter public static native int kDetFgThresholdFieldNumber();
public native float det_fg_threshold();
public native void set_det_fg_threshold(float value);
// optional float det_bg_threshold = 55 [default = 0.5];
public native @Cast("bool") boolean has_det_bg_threshold();
public native void clear_det_bg_threshold();
@MemberGetter public static native int kDetBgThresholdFieldNumber();
public native float det_bg_threshold();
public native void set_det_bg_threshold(float value);
// optional float det_fg_fraction = 56 [default = 0.25];
public native @Cast("bool") boolean has_det_fg_fraction();
public native void clear_det_fg_fraction();
@MemberGetter public static native int kDetFgFractionFieldNumber();
public native float det_fg_fraction();
public native void set_det_fg_fraction(float value);
// optional uint32 det_context_pad = 58 [default = 0];
public native @Cast("bool") boolean has_det_context_pad();
public native void clear_det_context_pad();
@MemberGetter public static native int kDetContextPadFieldNumber();
public native @Cast("google::protobuf::uint32") int det_context_pad();
public native void set_det_context_pad(@Cast("google::protobuf::uint32") int value);
// optional string det_crop_mode = 59 [default = "warp"];
public native @Cast("bool") boolean has_det_crop_mode();
public native void clear_det_crop_mode();
@MemberGetter public static native int kDetCropModeFieldNumber();
public native @StdString BytePointer det_crop_mode();
public native void set_det_crop_mode(@StdString BytePointer value);
public native void set_det_crop_mode(@StdString String value);
public native void set_det_crop_mode(@Cast("const char*") BytePointer value, @Cast("size_t") long size);
public native void set_det_crop_mode(String value, @Cast("size_t") long size);
public native @StdString @Cast({"char*", "std::string*"}) BytePointer mutable_det_crop_mode();
public native @StdString @Cast({"char*", "std::string*"}) BytePointer release_det_crop_mode();
public native void set_allocated_det_crop_mode(@StdString @Cast({"char*", "std::string*"}) BytePointer det_crop_mode);
// optional int32 new_num = 60 [default = 0];
public native @Cast("bool") boolean has_new_num();
public native void clear_new_num();
@MemberGetter public static native int kNewNumFieldNumber();
public native @Cast("google::protobuf::int32") int new_num();
public native void set_new_num(@Cast("google::protobuf::int32") int value);
// optional int32 new_channels = 61 [default = 0];
public native @Cast("bool") boolean has_new_channels();
public native void clear_new_channels();
@MemberGetter public static native int kNewChannelsFieldNumber();
public native @Cast("google::protobuf::int32") int new_channels();
public native void set_new_channels(@Cast("google::protobuf::int32") int value);
// optional int32 new_height = 62 [default = 0];
public native @Cast("bool") boolean has_new_height();
public native void clear_new_height();
@MemberGetter public static native int kNewHeightFieldNumber();
public native @Cast("google::protobuf::int32") int new_height();
public native void set_new_height(@Cast("google::protobuf::int32") int value);
// optional int32 new_width = 63 [default = 0];
public native @Cast("bool") boolean has_new_width();
public native void clear_new_width();
@MemberGetter public static native int kNewWidthFieldNumber();
public native @Cast("google::protobuf::int32") int new_width();
public native void set_new_width(@Cast("google::protobuf::int32") int value);
// optional bool shuffle_images = 64 [default = false];
public native @Cast("bool") boolean has_shuffle_images();
public native void clear_shuffle_images();
@MemberGetter public static native int kShuffleImagesFieldNumber();
public native @Cast("bool") boolean shuffle_images();
public native void set_shuffle_images(@Cast("bool") boolean value);
// optional uint32 concat_dim = 65 [default = 1];
public native @Cast("bool") boolean has_concat_dim();
public native void clear_concat_dim();
@MemberGetter public static native int kConcatDimFieldNumber();
public native @Cast("google::protobuf::uint32") int concat_dim();
public native void set_concat_dim(@Cast("google::protobuf::uint32") int value);
// optional .caffe.HDF5OutputParameter hdf5_output_param = 1001;
public native @Cast("bool") boolean has_hdf5_output_param();
public native void clear_hdf5_output_param();
@MemberGetter public static native int kHdf5OutputParamFieldNumber();
public native @Const @ByRef HDF5OutputParameter hdf5_output_param();
public native HDF5OutputParameter mutable_hdf5_output_param();
public native HDF5OutputParameter release_hdf5_output_param();
public native void set_allocated_hdf5_output_param(HDF5OutputParameter hdf5_output_param);
}
// -------------------------------------------------------------------
@Namespace("caffe") @NoOffset public static class PReLUParameter extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PReLUParameter(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public PReLUParameter(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public PReLUParameter position(int position) {
return (PReLUParameter)super.position(position);
}
public PReLUParameter() { allocate(); }
private native void allocate();
public PReLUParameter(@Const @ByRef PReLUParameter from) { allocate(from); }
private native void allocate(@Const @ByRef PReLUParameter from);
public native @ByRef @Name("operator =") PReLUParameter put(@Const @ByRef PReLUParameter from);
public native @Cast("const google::protobuf::UnknownFieldSet*") @ByRef Pointer unknown_fields();
public native @Cast("google::protobuf::UnknownFieldSet*") Pointer mutable_unknown_fields();
public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
public static native @Const @ByRef PReLUParameter default_instance();
public native void Swap(PReLUParameter other);
// implements Message ----------------------------------------------
public native PReLUParameter New();
public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef Pointer from);
public native void CopyFrom(@Const @ByRef PReLUParameter from);
public native void MergeFrom(@Const @ByRef PReLUParameter from);
public native void Clear();
public native @Cast("bool") boolean IsInitialized();
public native int ByteSize();
public native @Cast("bool") boolean MergePartialFromCodedStream(
@Cast("google::protobuf::io::CodedInputStream*") Pointer input);
public native void SerializeWithCachedSizes(
@Cast("google::protobuf::io::CodedOutputStream*") Pointer output);
public native @Cast("google::protobuf::uint8*") BytePointer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") BytePointer output);
public native @Cast("google::protobuf::uint8*") ByteBuffer SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") ByteBuffer output);
public native @Cast("google::protobuf::uint8*") byte[] SerializeWithCachedSizesToArray(@Cast("google::protobuf::uint8*") byte[] output);
public native int GetCachedSize();
public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .caffe.FillerParameter filler = 1;
public native @Cast("bool") boolean has_filler();
public native void clear_filler();
@MemberGetter public static native int kFillerFieldNumber();
public native @Const @ByRef FillerParameter filler();
public native FillerParameter mutable_filler();
public native FillerParameter release_filler();
public native void set_allocated_filler(FillerParameter filler);
// optional bool channel_shared = 2 [default = false];
public native @Cast("bool") boolean has_channel_shared();
public native void clear_channel_shared();
@MemberGetter public static native int kChannelSharedFieldNumber();
public native @Cast("bool") boolean channel_shared();
public native void set_channel_shared(@Cast("bool") boolean value);
}
// ===================================================================
// ===================================================================
// BlobShape
// repeated int64 dim = 1 [packed = true];
// -------------------------------------------------------------------
// BlobProto
// optional .caffe.BlobShape shape = 7;
// repeated float data = 5 [packed = true];
// repeated float diff = 6 [packed = true];
// repeated double double_data = 8 [packed = true];
// repeated double double_diff = 9 [packed = true];
// optional int32 num = 1 [default = 0];
// optional int32 channels = 2 [default = 0];
// optional int32 height = 3 [default = 0];
// optional int32 width = 4 [default = 0];
// -------------------------------------------------------------------
// BlobProtoVector
// repeated .caffe.BlobProto blobs = 1;
// -------------------------------------------------------------------
// Datum
// optional int32 channels = 1;
// optional int32 height = 2;
// optional int32 width = 3;
// optional bytes data = 4;
// optional int32 label = 5;
// repeated float float_data = 6;
// optional bool encoded = 7 [default = false];
// -------------------------------------------------------------------
// FillerParameter
// optional string type = 1 [default = "constant"];
// optional float value = 2 [default = 0];
// optional float min = 3 [default = 0];
// optional float max = 4 [default = 1];
// optional float mean = 5 [default = 0];
// optional float std = 6 [default = 1];
// optional int32 sparse = 7 [default = -1];
// optional .caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
// -------------------------------------------------------------------
// NetParameter
// optional string name = 1;
// repeated string input = 3;
// repeated .caffe.BlobShape input_shape = 8;
// repeated int32 input_dim = 4;
// optional bool force_backward = 5 [default = false];
// optional .caffe.NetState state = 6;
// optional bool debug_info = 7 [default = false];
// repeated .caffe.LayerParameter layer = 100;
// repeated .caffe.V1LayerParameter layers = 2;
// -------------------------------------------------------------------
// SolverParameter
// optional string net = 24;
// optional .caffe.NetParameter net_param = 25;
// optional string train_net = 1;
// repeated string test_net = 2;
// optional .caffe.NetParameter train_net_param = 21;
// repeated .caffe.NetParameter test_net_param = 22;
// optional .caffe.NetState train_state = 26;
// repeated .caffe.NetState test_state = 27;
// repeated int32 test_iter = 3;
// optional int32 test_interval = 4 [default = 0];
// optional bool test_compute_loss = 19 [default = false];
// optional bool test_initialization = 32 [default = true];
// optional float base_lr = 5;
// optional int32 display = 6;
// optional int32 average_loss = 33 [default = 1];
// optional int32 max_iter = 7;
// optional int32 iter_size = 36 [default = 1];
// optional string lr_policy = 8;
// optional float gamma = 9;
// optional float power = 10;
// optional float momentum = 11;
// optional float weight_decay = 12;
// optional string regularization_type = 29 [default = "L2"];
// optional int32 stepsize = 13;
// repeated int32 stepvalue = 34;
// optional float clip_gradients = 35 [default = -1];
// optional int32 snapshot = 14 [default = 0];
// optional string snapshot_prefix = 15;
// optional bool snapshot_diff = 16 [default = false];
// optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
// optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
// optional int32 device_id = 18 [default = 0];
// optional int64 random_seed = 20 [default = -1];
// optional string type = 40 [default = "SGD"];
// optional float delta = 31 [default = 1e-08];
// optional float momentum2 = 39 [default = 0.999];
// optional float rms_decay = 38;
// optional bool debug_info = 23 [default = false];
// optional bool snapshot_after_train = 28 [default = true];
// optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
// -------------------------------------------------------------------
// SolverState
// optional int32 iter = 1;
// optional string learned_net = 2;
// repeated .caffe.BlobProto history = 3;
// optional int32 current_step = 4 [default = 0];
// -------------------------------------------------------------------
// NetState
// optional .caffe.Phase phase = 1 [default = TEST];
// optional int32 level = 2 [default = 0];
// repeated string stage = 3;
// -------------------------------------------------------------------
// NetStateRule
// optional .caffe.Phase phase = 1;
// optional int32 min_level = 2;
// optional int32 max_level = 3;
// repeated string stage = 4;
// repeated string not_stage = 5;
// -------------------------------------------------------------------
// ParamSpec
// optional string name = 1;
// optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
// optional float lr_mult = 3 [default = 1];
// optional float decay_mult = 4 [default = 1];
// -------------------------------------------------------------------
// LayerParameter
// optional string name = 1;
// optional string type = 2;
// repeated string bottom = 3;
// repeated string top = 4;
// optional .caffe.Phase phase = 10;
// repeated float loss_weight = 5;
// repeated .caffe.ParamSpec param = 6;
// repeated .caffe.BlobProto blobs = 7;
// repeated bool propagate_down = 11;
// repeated .caffe.NetStateRule include = 8;
// repeated .caffe.NetStateRule exclude = 9;
// optional .caffe.TransformationParameter transform_param = 100;
// optional .caffe.LossParameter loss_param = 101;
// optional .caffe.AccuracyParameter accuracy_param = 102;
// optional .caffe.ArgMaxParameter argmax_param = 103;
// optional .caffe.BatchNormParameter batch_norm_param = 139;
// optional .caffe.ConcatParameter concat_param = 104;
// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
// optional .caffe.ConvolutionParameter convolution_param = 106;
// optional .caffe.DataParameter data_param = 107;
// optional .caffe.DropoutParameter dropout_param = 108;
// optional .caffe.DummyDataParameter dummy_data_param = 109;
// optional .caffe.EltwiseParameter eltwise_param = 110;
// optional .caffe.EmbedParameter embed_param = 137;
// optional .caffe.ExpParameter exp_param = 111;
// optional .caffe.FlattenParameter flatten_param = 135;
// optional .caffe.HDF5DataParameter hdf5_data_param = 112;
// optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
// optional .caffe.HingeLossParameter hinge_loss_param = 114;
// optional .caffe.ImageDataParameter image_data_param = 115;
// optional .caffe.InfogainLossParameter infogain_loss_param = 116;
// optional .caffe.InnerProductParameter inner_product_param = 117;
// optional .caffe.LogParameter log_param = 134;
// optional .caffe.LRNParameter lrn_param = 118;
// optional .caffe.MemoryDataParameter memory_data_param = 119;
// optional .caffe.MVNParameter mvn_param = 120;
// optional .caffe.PoolingParameter pooling_param = 121;
// optional .caffe.PowerParameter power_param = 122;
// optional .caffe.PReLUParameter prelu_param = 131;
// optional .caffe.PythonParameter python_param = 130;
// optional .caffe.ReductionParameter reduction_param = 136;
// optional .caffe.ReLUParameter relu_param = 123;
// optional .caffe.ReshapeParameter reshape_param = 133;
// optional .caffe.SigmoidParameter sigmoid_param = 124;
// optional .caffe.SoftmaxParameter softmax_param = 125;
// optional .caffe.SPPParameter spp_param = 132;
// optional .caffe.SliceParameter slice_param = 126;
// optional .caffe.TanHParameter tanh_param = 127;
// optional .caffe.ThresholdParameter threshold_param = 128;
// optional .caffe.TileParameter tile_param = 138;
// optional .caffe.WindowDataParameter window_data_param = 129;
// -------------------------------------------------------------------
// TransformationParameter
// optional float scale = 1 [default = 1];
// optional bool mirror = 2 [default = false];
// optional uint32 crop_size = 3 [default = 0];
// optional string mean_file = 4;
// repeated float mean_value = 5;
// optional bool force_color = 6 [default = false];
// optional bool force_gray = 7 [default = false];
// -------------------------------------------------------------------
// LossParameter
// optional int32 ignore_label = 1;
// optional bool normalize = 2 [default = true];
// -------------------------------------------------------------------
// AccuracyParameter
// optional uint32 top_k = 1 [default = 1];
// optional int32 axis = 2 [default = 1];
// optional int32 ignore_label = 3;
// -------------------------------------------------------------------
// ArgMaxParameter
// optional bool out_max_val = 1 [default = false];
// optional uint32 top_k = 2 [default = 1];
// optional int32 axis = 3;
// -------------------------------------------------------------------
// ConcatParameter
// optional int32 axis = 2 [default = 1];
// optional uint32 concat_dim = 1 [default = 1];
// -------------------------------------------------------------------
// BatchNormParameter
// optional bool use_global_stats = 1;
// optional float moving_average_fraction = 2 [default = 0.999];
// optional float eps = 3 [default = 1e-05];
// -------------------------------------------------------------------
// ContrastiveLossParameter
// optional float margin = 1 [default = 1];
// optional bool legacy_version = 2 [default = false];
// -------------------------------------------------------------------
// ConvolutionParameter
// optional uint32 num_output = 1;
// optional bool bias_term = 2 [default = true];
// repeated uint32 pad = 3;
// repeated uint32 kernel_size = 4;
// repeated uint32 stride = 6;
// optional uint32 pad_h = 9 [default = 0];
// optional uint32 pad_w = 10 [default = 0];
// optional uint32 kernel_h = 11;
// optional uint32 kernel_w = 12;
// optional uint32 stride_h = 13;
// optional uint32 stride_w = 14;
// optional uint32 group = 5 [default = 1];
// optional .caffe.FillerParameter weight_filler = 7;
// optional .caffe.FillerParameter bias_filler = 8;
// optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
// optional int32 axis = 16 [default = 1];
// optional bool force_nd_im2col = 17 [default = false];
// -------------------------------------------------------------------
// DataParameter
// optional string source = 1;
// optional uint32 batch_size = 4;
// optional uint32 rand_skip = 7 [default = 0];
// optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB];
// optional float scale = 2 [default = 1];
// optional string mean_file = 3;
// optional uint32 crop_size = 5 [default = 0];
// optional bool mirror = 6 [default = false];
// optional bool force_encoded_color = 9 [default = false];
// optional uint32 prefetch = 10 [default = 4];
// -------------------------------------------------------------------
// DropoutParameter
// optional float dropout_ratio = 1 [default = 0.5];
// -------------------------------------------------------------------
// DummyDataParameter
// repeated .caffe.FillerParameter data_filler = 1;
// repeated .caffe.BlobShape shape = 6;
// repeated uint32 num = 2;
// repeated uint32 channels = 3;
// repeated uint32 height = 4;
// repeated uint32 width = 5;
// -------------------------------------------------------------------
// EltwiseParameter
// optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
// repeated float coeff = 2;
// optional bool stable_prod_grad = 3 [default = true];
// -------------------------------------------------------------------
// EmbedParameter
// optional uint32 num_output = 1;
// optional uint32 input_dim = 2;
// optional bool bias_term = 3 [default = true];
// optional .caffe.FillerParameter weight_filler = 4;
// optional .caffe.FillerParameter bias_filler = 5;
// -------------------------------------------------------------------
// ExpParameter
// optional float base = 1 [default = -1];
// optional float scale = 2 [default = 1];
// optional float shift = 3 [default = 0];
// -------------------------------------------------------------------
// FlattenParameter
// optional int32 axis = 1 [default = 1];
// optional int32 end_axis = 2 [default = -1];
// -------------------------------------------------------------------
// HDF5DataParameter
// optional string source = 1;
// optional uint32 batch_size = 2;
// optional bool shuffle = 3 [default = false];
// -------------------------------------------------------------------
// HDF5OutputParameter
// optional string file_name = 1;
// -------------------------------------------------------------------
// HingeLossParameter
// optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1];
// -------------------------------------------------------------------
// ImageDataParameter
// optional string source = 1;
// optional uint32 batch_size = 4 [default = 1];
// optional uint32 rand_skip = 7 [default = 0];
// optional bool shuffle = 8 [default = false];
// optional uint32 new_height = 9 [default = 0];
// optional uint32 new_width = 10 [default = 0];
// optional bool is_color = 11 [default = true];
// optional float scale = 2 [default = 1];
// optional string mean_file = 3;
// optional uint32 crop_size = 5 [default = 0];
// optional bool mirror = 6 [default = false];
// optional string root_folder = 12 [default = ""];
// -------------------------------------------------------------------
// InfogainLossParameter
// optional string source = 1;
// -------------------------------------------------------------------
// InnerProductParameter
// optional uint32 num_output = 1;
// optional bool bias_term = 2 [default = true];
// optional .caffe.FillerParameter weight_filler = 3;
// optional .caffe.FillerParameter bias_filler = 4;
// optional int32 axis = 5 [default = 1];
// -------------------------------------------------------------------
// LogParameter
// optional float base = 1 [default = -1];
// optional float scale = 2 [default = 1];
// optional float shift = 3 [default = 0];
// -------------------------------------------------------------------
// LRNParameter
// optional uint32 local_size = 1 [default = 5];
// optional float alpha = 2 [default = 1];
// optional float beta = 3 [default = 0.75];
// optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
// optional float k = 5 [default = 1];
// optional .caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
// -------------------------------------------------------------------
// MemoryDataParameter
// optional uint32 batch_size = 1;
// optional uint32 channels = 2;
// optional uint32 height = 3;
// optional uint32 width = 4;
// -------------------------------------------------------------------
// MVNParameter
// optional bool normalize_variance = 1 [default = true];
// optional bool across_channels = 2 [default = false];
// optional float eps = 3 [default = 1e-09];
// -------------------------------------------------------------------
// PoolingParameter
// optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
// optional uint32 pad = 4 [default = 0];
// optional uint32 pad_h = 9 [default = 0];
// optional uint32 pad_w = 10 [default = 0];
// optional uint32 kernel_size = 2;
// optional uint32 kernel_h = 5;
// optional uint32 kernel_w = 6;
// optional uint32 stride = 3 [default = 1];
// optional uint32 stride_h = 7;
// optional uint32 stride_w = 8;
// optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
// optional bool global_pooling = 12 [default = false];
// -------------------------------------------------------------------
// PowerParameter
// optional float power = 1 [default = 1];
// optional float scale = 2 [default = 1];
// optional float shift = 3 [default = 0];
// -------------------------------------------------------------------
// PythonParameter
// optional string module = 1;
// optional string layer = 2;
// optional string param_str = 3 [default = ""];
// optional bool share_in_parallel = 4 [default = false];
// -------------------------------------------------------------------
// ReductionParameter
// optional .caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
// optional int32 axis = 2 [default = 0];
// optional float coeff = 3 [default = 1];
// -------------------------------------------------------------------
// ReLUParameter
// optional float negative_slope = 1 [default = 0];
// optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
// -------------------------------------------------------------------
// ReshapeParameter
// optional .caffe.BlobShape shape = 1;
// optional int32 axis = 2 [default = 0];
// optional int32 num_axes = 3 [default = -1];
// -------------------------------------------------------------------
// SigmoidParameter
// optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
// -------------------------------------------------------------------
// SliceParameter
// optional int32 axis = 3 [default = 1];
// repeated uint32 slice_point = 2;
// optional uint32 slice_dim = 1 [default = 1];
// -------------------------------------------------------------------
// SoftmaxParameter
// optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
// optional int32 axis = 2 [default = 1];
// -------------------------------------------------------------------
// TanHParameter
// optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
// -------------------------------------------------------------------
// TileParameter
// optional int32 axis = 1 [default = 1];
// optional int32 tiles = 2;
// -------------------------------------------------------------------
// ThresholdParameter
// optional float threshold = 1 [default = 0];
// -------------------------------------------------------------------
// WindowDataParameter
// optional string source = 1;
// optional float scale = 2 [default = 1];
// optional string mean_file = 3;
// optional uint32 batch_size = 4;
// optional uint32 crop_size = 5 [default = 0];
// optional bool mirror = 6 [default = false];
// optional float fg_threshold = 7 [default = 0.5];
// optional float bg_threshold = 8 [default = 0.5];
// optional float fg_fraction = 9 [default = 0.25];
// optional uint32 context_pad = 10 [default = 0];
// optional string crop_mode = 11 [default = "warp"];
// optional bool cache_images = 12 [default = false];
// optional string root_folder = 13 [default = ""];
// -------------------------------------------------------------------
// SPPParameter
// optional uint32 pyramid_height = 1;
// optional .caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
// optional .caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
// -------------------------------------------------------------------
// V1LayerParameter
// repeated string bottom = 2;
// repeated string top = 3;
// optional string name = 4;
// repeated .caffe.NetStateRule include = 32;
// repeated .caffe.NetStateRule exclude = 33;
// optional .caffe.V1LayerParameter.LayerType type = 5;
// repeated .caffe.BlobProto blobs = 6;
// repeated string param = 1001;
// repeated .caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
// repeated float blobs_lr = 7;
// repeated float weight_decay = 8;
// repeated float loss_weight = 35;
// optional .caffe.AccuracyParameter accuracy_param = 27;
// optional .caffe.ArgMaxParameter argmax_param = 23;
// optional .caffe.ConcatParameter concat_param = 9;
// optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40;
// optional .caffe.ConvolutionParameter convolution_param = 10;
// optional .caffe.DataParameter data_param = 11;
// optional .caffe.DropoutParameter dropout_param = 12;
// optional .caffe.DummyDataParameter dummy_data_param = 26;
// optional .caffe.EltwiseParameter eltwise_param = 24;
// optional .caffe.ExpParameter exp_param = 41;
// optional .caffe.HDF5DataParameter hdf5_data_param = 13;
// optional .caffe.HDF5OutputParameter hdf5_output_param = 14;
// optional .caffe.HingeLossParameter hinge_loss_param = 29;
// optional .caffe.ImageDataParameter image_data_param = 15;
// optional .caffe.InfogainLossParameter infogain_loss_param = 16;
// optional .caffe.InnerProductParameter inner_product_param = 17;
// optional .caffe.LRNParameter lrn_param = 18;
// optional .caffe.MemoryDataParameter memory_data_param = 22;
// optional .caffe.MVNParameter mvn_param = 34;
// optional .caffe.PoolingParameter pooling_param = 19;
// optional .caffe.PowerParameter power_param = 21;
// optional .caffe.ReLUParameter relu_param = 30;
// optional .caffe.SigmoidParameter sigmoid_param = 38;
// optional .caffe.SoftmaxParameter softmax_param = 39;
// optional .caffe.SliceParameter slice_param = 31;
// optional .caffe.TanHParameter tanh_param = 37;
// optional .caffe.ThresholdParameter threshold_param = 25;
// optional .caffe.WindowDataParameter window_data_param = 20;
// optional .caffe.TransformationParameter transform_param = 36;
// optional .caffe.LossParameter loss_param = 42;
// optional .caffe.V0LayerParameter layer = 1;
// -------------------------------------------------------------------
// V0LayerParameter
// optional string name = 1;
// optional string type = 2;
// optional uint32 num_output = 3;
// optional bool biasterm = 4 [default = true];
// optional .caffe.FillerParameter weight_filler = 5;
// optional .caffe.FillerParameter bias_filler = 6;
// optional uint32 pad = 7 [default = 0];
// optional uint32 kernelsize = 8;
// optional uint32 group = 9 [default = 1];
// optional uint32 stride = 10 [default = 1];
// optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
// optional float dropout_ratio = 12 [default = 0.5];
// optional uint32 local_size = 13 [default = 5];
// optional float alpha = 14 [default = 1];
// optional float beta = 15 [default = 0.75];
// optional float k = 22 [default = 1];
// optional string source = 16;
// optional float scale = 17 [default = 1];
// optional string meanfile = 18;
// optional uint32 batchsize = 19;
// optional uint32 cropsize = 20 [default = 0];
// optional bool mirror = 21 [default = false];
// repeated .caffe.BlobProto blobs = 50;
// repeated float blobs_lr = 51;
// repeated float weight_decay = 52;
// optional uint32 rand_skip = 53 [default = 0];
// optional float det_fg_threshold = 54 [default = 0.5];
// optional float det_bg_threshold = 55 [default = 0.5];
// optional float det_fg_fraction = 56 [default = 0.25];
// optional uint32 det_context_pad = 58 [default = 0];
// optional string det_crop_mode = 59 [default = "warp"];
// optional int32 new_num = 60 [default = 0];
// optional int32 new_channels = 61 [default = 0];
// optional int32 new_height = 62 [default = 0];
// optional int32 new_width = 63 [default = 0];
// optional bool shuffle_images = 64 [default = false];
// optional uint32 concat_dim = 65 [default = 1];
// optional .caffe.HDF5OutputParameter hdf5_output_param = 1001;
// -------------------------------------------------------------------
// PReLUParameter
// optional .caffe.FillerParameter filler = 1;
// optional bool channel_shared = 2 [default = false];
// @@protoc_insertion_point(namespace_scope)
// namespace caffe
// #ifndef SWIG
// #endif // SWIG
// @@protoc_insertion_point(global_scope)
// #endif // PROTOBUF_caffe_2eproto__INCLUDED
// Parsed from caffe/util/blocking_queue.hpp
// #ifndef CAFFE_UTIL_BLOCKING_QUEUE_HPP_
// #define CAFFE_UTIL_BLOCKING_QUEUE_HPP_
// #include
// #include
@Name("caffe::BlockingQueue") @NoOffset public static class DatumBlockingQueue extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DatumBlockingQueue(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public DatumBlockingQueue(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public DatumBlockingQueue position(int position) {
return (DatumBlockingQueue)super.position(position);
}
public DatumBlockingQueue() { allocate(); }
private native void allocate();
public native void push(@ByPtrRef Datum t);
public native @Cast("bool") boolean try_pop(@Cast("caffe::Datum**") PointerPointer t);
public native @Cast("bool") boolean try_pop(@ByPtrPtr Datum t);
// This logs a message if the threads needs to be blocked
// useful for detecting e.g. when data feeding is too slow
public native Datum pop(@StdString BytePointer log_on_wait/*=""*/);
public native Datum pop();
public native Datum pop(@StdString String log_on_wait/*=""*/);
public native @Cast("bool") boolean try_peek(@Cast("caffe::Datum**") PointerPointer t);
public native @Cast("bool") boolean try_peek(@ByPtrPtr Datum t);
// Return element without removing it
public native Datum peek();
public native @Cast("size_t") long size();
}
// namespace caffe
// #endif
// Parsed from caffe/data_reader.hpp
// #ifndef CAFFE_DATA_READER_HPP_
// #define CAFFE_DATA_READER_HPP_
// #include
// #include
// #include
// #include "caffe/common.hpp"
// #include "caffe/internal_thread.hpp"
// #include "caffe/util/blocking_queue.hpp"
// #include "caffe/util/db.hpp"
/**
* @brief Reads data from a source to queues available to data layers.
* A single reading thread is created per source, even if multiple solvers
* are running in parallel, e.g. for multi-GPU training. This makes sure
* databases are read sequentially, and that each solver accesses a different
* subset of the database. Data is distributed to solvers in a round-robin
* way to keep parallel training deterministic.
*/
@Namespace("caffe") @NoOffset public static class DataReader extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public DataReader() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DataReader(Pointer p) { super(p); }
public DataReader(@Const @ByRef LayerParameter param) { allocate(param); }
private native void allocate(@Const @ByRef LayerParameter param);
public native @ByRef DatumBlockingQueue free();
public native @ByRef DatumBlockingQueue full();
}
// namespace caffe
// #endif // CAFFE_DATA_READER_HPP_
// Parsed from caffe/util/math_functions.hpp
// #ifndef CAFFE_UTIL_MATH_FUNCTIONS_H_
// #define CAFFE_UTIL_MATH_FUNCTIONS_H_
// #include
// #include // for std::fabs and std::signbit
// #include "glog/logging.h"
// #include "caffe/common.hpp"
// #include "caffe/util/device_alternate.hpp"
// #include "caffe/util/mkl_alternate.hpp"
// Caffe gemm provides a simpler interface to the gemm functions, with the
// limitation that the data has to be contiguous in memory.
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_float(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
float alpha, @Const FloatPointer A, @Const FloatPointer B, float beta,
FloatPointer C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_float(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
float alpha, @Const FloatBuffer A, @Const FloatBuffer B, float beta,
FloatBuffer C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_float(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
float alpha, @Const float[] A, @Const float[] B, float beta,
float[] C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_double(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
double alpha, @Const DoublePointer A, @Const DoublePointer B, double beta,
DoublePointer C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_double(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
double alpha, @Const DoubleBuffer A, @Const DoubleBuffer B, double beta,
DoubleBuffer C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemm") void caffe_cpu_gemm_double(@Cast("const CBLAS_TRANSPOSE") int TransA,
@Cast("const CBLAS_TRANSPOSE") int TransB, int M, int N, int K,
double alpha, @Const double[] A, @Const double[] B, double beta,
double[] C);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_float(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
float alpha, @Const FloatPointer A, @Const FloatPointer x, float beta,
FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_float(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
float alpha, @Const FloatBuffer A, @Const FloatBuffer x, float beta,
FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_float(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
float alpha, @Const float[] A, @Const float[] x, float beta,
float[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_double(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
double alpha, @Const DoublePointer A, @Const DoublePointer x, double beta,
DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_double(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
double alpha, @Const DoubleBuffer A, @Const DoubleBuffer x, double beta,
DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_gemv") void caffe_cpu_gemv_double(@Cast("const CBLAS_TRANSPOSE") int TransA, int M, int N,
double alpha, @Const double[] A, @Const double[] x, double beta,
double[] y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_float(int N, float alpha, @Const FloatPointer X,
FloatPointer Y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_float(int N, float alpha, @Const FloatBuffer X,
FloatBuffer Y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_float(int N, float alpha, @Const float[] X,
float[] Y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_double(int N, double alpha, @Const DoublePointer X,
DoublePointer Y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_double(int N, double alpha, @Const DoubleBuffer X,
DoubleBuffer Y);
@Namespace("caffe") public static native @Name("caffe_axpy") void caffe_axpy_double(int N, double alpha, @Const double[] X,
double[] Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_float(int N, float alpha, @Const FloatPointer X,
float beta, FloatPointer Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_float(int N, float alpha, @Const FloatBuffer X,
float beta, FloatBuffer Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_float(int N, float alpha, @Const float[] X,
float beta, float[] Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_double(int N, double alpha, @Const DoublePointer X,
double beta, DoublePointer Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_double(int N, double alpha, @Const DoubleBuffer X,
double beta, DoubleBuffer Y);
@Namespace("caffe") public static native @Name("caffe_cpu_axpby") void caffe_cpu_axpby_double(int N, double alpha, @Const double[] X,
double beta, double[] Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_float(int N, @Const FloatPointer X, FloatPointer Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_float(int N, @Const FloatBuffer X, FloatBuffer Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_float(int N, @Const float[] X, float[] Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_double(int N, @Const DoublePointer X, DoublePointer Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_double(int N, @Const DoubleBuffer X, DoubleBuffer Y);
@Namespace("caffe") public static native @Name("caffe_copy") void caffe_copy_double(int N, @Const double[] X, double[] Y);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_float(int N, float alpha, FloatPointer X);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_float(int N, float alpha, FloatBuffer X);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_float(int N, float alpha, float[] X);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_double(int N, double alpha, DoublePointer X);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_double(int N, double alpha, DoubleBuffer X);
@Namespace("caffe") public static native @Name("caffe_set") void caffe_set_double(int N, double alpha, double[] X);
@Namespace("caffe") public static native void caffe_memset(@Cast("const size_t") long N, int alpha, Pointer X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_float(int N, float alpha, FloatPointer X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_float(int N, float alpha, FloatBuffer X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_float(int N, float alpha, float[] X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_double(int N, double alpha, DoublePointer X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_double(int N, double alpha, DoubleBuffer X);
@Namespace("caffe") public static native @Name("caffe_add_scalar") void caffe_add_scalar_double(int N, double alpha, double[] X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_float(int N, float alpha, FloatPointer X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_float(int N, float alpha, FloatBuffer X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_float(int N, float alpha, float[] X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_double(int N, double alpha, DoublePointer X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_double(int N, double alpha, DoubleBuffer X);
@Namespace("caffe") public static native @Name("caffe_scal") void caffe_scal_double(int N, double alpha, double[] X);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_float(int N, @Const FloatPointer a, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_float(int N, @Const FloatBuffer a, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_float(int N, @Const float[] a, float[] y);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_double(int N, @Const DoublePointer a, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_double(int N, @Const DoubleBuffer a, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_sqr") void caffe_sqr_double(int N, @Const double[] a, double[] y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_float(int N, @Const FloatPointer a, @Const FloatPointer b, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_float(int N, @Const FloatBuffer a, @Const FloatBuffer b, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_float(int N, @Const float[] a, @Const float[] b, float[] y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_double(int N, @Const DoublePointer a, @Const DoublePointer b, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_double(int N, @Const DoubleBuffer a, @Const DoubleBuffer b, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_add") void caffe_add_double(int N, @Const double[] a, @Const double[] b, double[] y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_float(int N, @Const FloatPointer a, @Const FloatPointer b, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_float(int N, @Const FloatBuffer a, @Const FloatBuffer b, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_float(int N, @Const float[] a, @Const float[] b, float[] y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_double(int N, @Const DoublePointer a, @Const DoublePointer b, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_double(int N, @Const DoubleBuffer a, @Const DoubleBuffer b, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_sub") void caffe_sub_double(int N, @Const double[] a, @Const double[] b, double[] y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_float(int N, @Const FloatPointer a, @Const FloatPointer b, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_float(int N, @Const FloatBuffer a, @Const FloatBuffer b, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_float(int N, @Const float[] a, @Const float[] b, float[] y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_double(int N, @Const DoublePointer a, @Const DoublePointer b, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_double(int N, @Const DoubleBuffer a, @Const DoubleBuffer b, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_mul") void caffe_mul_double(int N, @Const double[] a, @Const double[] b, double[] y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_float(int N, @Const FloatPointer a, @Const FloatPointer b, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_float(int N, @Const FloatBuffer a, @Const FloatBuffer b, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_float(int N, @Const float[] a, @Const float[] b, float[] y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_double(int N, @Const DoublePointer a, @Const DoublePointer b, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_double(int N, @Const DoubleBuffer a, @Const DoubleBuffer b, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_div") void caffe_div_double(int N, @Const double[] a, @Const double[] b, double[] y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_float(int n, @Const FloatPointer a, float b, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_float(int n, @Const FloatBuffer a, float b, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_float(int n, @Const float[] a, float b, float[] y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_double(int n, @Const DoublePointer a, double b, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_double(int n, @Const DoubleBuffer a, double b, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_powx") void caffe_powx_double(int n, @Const double[] a, double b, double[] y);
@Namespace("caffe") public static native @Cast("unsigned int") int caffe_rng_rand();
@Namespace("caffe") public static native @Name("caffe_nextafter") float caffe_nextafter_float(float b);
@Namespace("caffe") public static native @Name("caffe_nextafter") double caffe_nextafter_double(double b);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_float(int n, float a, float b, FloatPointer r);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_float(int n, float a, float b, FloatBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_float(int n, float a, float b, float[] r);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_double(int n, double a, double b, DoublePointer r);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_double(int n, double a, double b, DoubleBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_uniform") void caffe_rng_uniform_double(int n, double a, double b, double[] r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_float(int n, float mu, float sigma,
FloatPointer r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_float(int n, float mu, float sigma,
FloatBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_float(int n, float mu, float sigma,
float[] r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_double(int n, double mu, double sigma,
DoublePointer r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_double(int n, double mu, double sigma,
DoubleBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_gaussian") void caffe_rng_gaussian_double(int n, double mu, double sigma,
double[] r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_float(int n, float p, IntPointer r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_float(int n, float p, IntBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_float(int n, float p, int[] r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_double(int n, double p, IntPointer r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_double(int n, double p, IntBuffer r);
@Namespace("caffe") public static native @Name("caffe_rng_bernoulli") void caffe_rng_bernoulli_double(int n, double p, int[] r);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_float(int n, @Const FloatPointer a, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_float(int n, @Const FloatBuffer a, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_float(int n, @Const float[] a, float[] y);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_double(int n, @Const DoublePointer a, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_double(int n, @Const DoubleBuffer a, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_exp") void caffe_exp_double(int n, @Const double[] a, double[] y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_float(int n, @Const FloatPointer a, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_float(int n, @Const FloatBuffer a, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_float(int n, @Const float[] a, float[] y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_double(int n, @Const DoublePointer a, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_double(int n, @Const DoubleBuffer a, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_log") void caffe_log_double(int n, @Const double[] a, double[] y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_float(int n, @Const FloatPointer a, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_float(int n, @Const FloatBuffer a, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_float(int n, @Const float[] a, float[] y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_double(int n, @Const DoublePointer a, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_double(int n, @Const DoubleBuffer a, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_abs") void caffe_abs_double(int n, @Const double[] a, double[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") float caffe_cpu_dot_float(int n, @Const FloatPointer x, @Const FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") float caffe_cpu_dot_float(int n, @Const FloatBuffer x, @Const FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") float caffe_cpu_dot_float(int n, @Const float[] x, @Const float[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") double caffe_cpu_dot_double(int n, @Const DoublePointer x, @Const DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") double caffe_cpu_dot_double(int n, @Const DoubleBuffer x, @Const DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_dot") double caffe_cpu_dot_double(int n, @Const double[] x, @Const double[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") float caffe_cpu_strided_dot_float(int n, @Const FloatPointer x, int incx,
@Const FloatPointer y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") float caffe_cpu_strided_dot_float(int n, @Const FloatBuffer x, int incx,
@Const FloatBuffer y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") float caffe_cpu_strided_dot_float(int n, @Const float[] x, int incx,
@Const float[] y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") double caffe_cpu_strided_dot_double(int n, @Const DoublePointer x, int incx,
@Const DoublePointer y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") double caffe_cpu_strided_dot_double(int n, @Const DoubleBuffer x, int incx,
@Const DoubleBuffer y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_strided_dot") double caffe_cpu_strided_dot_double(int n, @Const double[] x, int incx,
@Const double[] y, int incy);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_float(int n, @Const FloatPointer x, @Const FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_float(int n, @Const FloatBuffer x, @Const FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_float(int n, @Const float[] x, @Const float[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_double(int n, @Const DoublePointer x, @Const DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_double(int n, @Const DoubleBuffer x, @Const DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_hamming_distance") int caffe_cpu_hamming_distance_double(int n, @Const double[] x, @Const double[] y);
// Returns the sum of the absolute values of the elements of vector x
@Namespace("caffe") public static native @Name("caffe_cpu_asum") float caffe_cpu_asum_float(int n, @Const FloatPointer x);
@Namespace("caffe") public static native @Name("caffe_cpu_asum") float caffe_cpu_asum_float(int n, @Const FloatBuffer x);
@Namespace("caffe") public static native @Name("caffe_cpu_asum") float caffe_cpu_asum_float(int n, @Const float[] x);
@Namespace("caffe") public static native @Name("caffe_cpu_asum") double caffe_cpu_asum_double(int n, @Const DoublePointer x);
@Namespace("caffe") public static native @Name("caffe_cpu_asum") double caffe_cpu_asum_double(int n, @Const DoubleBuffer x);
@Namespace("caffe") public static native @Name("caffe_cpu_asum") double caffe_cpu_asum_double(int n, @Const double[] x);
// the branchless, type-safe version from
// http://stackoverflow.com/questions/1903954/is-there-a-standard-sign-function-signum-sgn-in-c-c
@Namespace("caffe") public static native @Name("caffe_sign") byte caffe_sign_float(float val);
@Namespace("caffe") public static native @Name("caffe_sign") byte caffe_sign_double(double val);
// The following two macros are modifications of DEFINE_VSL_UNARY_FUNC
// in include/caffe/util/mkl_alternate.hpp authored by @Rowland Depp.
// Please refer to commit 7e8ef25c7 of the boost-eigen branch.
// Git cherry picking that commit caused a conflict hard to resolve and
// copying that file in convenient for code reviewing.
// So they have to be pasted here temporarily.
// #define DEFINE_CAFFE_CPU_UNARY_FUNC(name, operation)
// template
// void caffe_cpu_##name(const int n, const Dtype* x, Dtype* y) {
// CHECK_GT(n, 0); CHECK(x); CHECK(y);
// for (int i = 0; i < n; ++i) {
// operation;
// }
// }
// output is 1 for the positives, 0 for zero, and -1 for the negatives
// This returns a nonzero value if the input has its sign bit set.
// The name sngbit is meant to avoid conflicts with std::signbit in the macro.
// The extra parens are needed because CUDA < 6.5 defines signbit as a macro,
// and we don't want that to expand here when CUDA headers are also included.
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_float(int n, float alpha, @Const FloatPointer x, FloatPointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_float(int n, float alpha, @Const FloatBuffer x, FloatBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_float(int n, float alpha, @Const float[] x, float[] y);
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_double(int n, double alpha, @Const DoublePointer x, DoublePointer y);
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_double(int n, double alpha, @Const DoubleBuffer x, DoubleBuffer y);
@Namespace("caffe") public static native @Name("caffe_cpu_scale") void caffe_cpu_scale_double(int n, double alpha, @Const double[] x, double[] y);
// #ifndef CPU_ONLY // GPU
// #endif // !CPU_ONLY
// namespace caffe
// #endif // CAFFE_UTIL_MATH_FUNCTIONS_H_
// Parsed from caffe/syncedmem.hpp
// #ifndef CAFFE_SYNCEDMEM_HPP_
// #define CAFFE_SYNCEDMEM_HPP_
// #include
// #include "caffe/common.hpp"
// If CUDA is available and in GPU mode, host memory will be allocated pinned,
// using cudaMallocHost. It avoids dynamic pinning for transfers (DMA).
// The improvement in performance seems negligible in the single GPU case,
// but might be more significant for parallel training. Most importantly,
// it improved stability for large models on many GPUs.
@Namespace("caffe") public static native void CaffeMallocHost(@Cast("void**") PointerPointer ptr, @Cast("size_t") long size, @Cast("bool*") BoolPointer use_cuda);
@Namespace("caffe") public static native void CaffeMallocHost(@Cast("void**") @ByPtrPtr Pointer ptr, @Cast("size_t") long size, @Cast("bool*") BoolPointer use_cuda);
@Namespace("caffe") public static native void CaffeFreeHost(Pointer ptr, @Cast("bool") boolean use_cuda);
/**
* @brief Manages memory allocation and synchronization between the host (CPU)
* and device (GPU).
*
* TODO(dox): more thorough description.
*/
@Namespace("caffe") @NoOffset public static class SyncedMemory extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public SyncedMemory(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public SyncedMemory(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public SyncedMemory position(int position) {
return (SyncedMemory)super.position(position);
}
public SyncedMemory() { allocate(); }
private native void allocate();
public SyncedMemory(@Cast("size_t") long size) { allocate(size); }
private native void allocate(@Cast("size_t") long size);
public native @Const Pointer cpu_data();
public native void set_cpu_data(Pointer data);
public native @Const Pointer gpu_data();
public native void set_gpu_data(Pointer data);
public native Pointer mutable_cpu_data();
public native Pointer mutable_gpu_data();
/** enum caffe::SyncedMemory::SyncedHead */
public static final int UNINITIALIZED = 0, HEAD_AT_CPU = 1, HEAD_AT_GPU = 2, SYNCED = 3;
public native @Cast("caffe::SyncedMemory::SyncedHead") int head();
public native @Cast("size_t") long size();
} // class SyncedMemory
// namespace caffe
// #endif // CAFFE_SYNCEDMEM_HPP_
// Parsed from caffe/blob.hpp
// #ifndef CAFFE_BLOB_HPP_
// #define CAFFE_BLOB_HPP_
// #include
// #include
// #include
// #include "caffe/common.hpp"
// #include "caffe/proto/caffe.pb.h"
// #include "caffe/syncedmem.hpp"
@MemberGetter public static native int kMaxBlobAxes();
/**
* @brief A wrapper around SyncedMemory holders serving as the basic
* computational unit through which Layer%s, Net%s, and Solver%s
* interact.
*
* TODO(dox): more thorough description.
*/
@Name("caffe::Blob") @NoOffset public static class FloatBlob extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatBlob(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public FloatBlob(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public FloatBlob position(int position) {
return (FloatBlob)super.position(position);
}
public FloatBlob() { allocate(); }
private native void allocate();
/** @brief Deprecated; use Blob(const vector& shape)
. */
public FloatBlob(int num, int channels, int height,
int width) { allocate(num, channels, height, width); }
private native void allocate(int num, int channels, int height,
int width);
public FloatBlob(@StdVector IntPointer shape) { allocate(shape); }
private native void allocate(@StdVector IntPointer shape);
public FloatBlob(@StdVector IntBuffer shape) { allocate(shape); }
private native void allocate(@StdVector IntBuffer shape);
public FloatBlob(@StdVector int[] shape) { allocate(shape); }
private native void allocate(@StdVector int[] shape);
/** @brief Deprecated; use Reshape(const vector& shape)
. */
public native void Reshape(int num, int channels, int height,
int width);
/**
* @brief Change the dimensions of the blob, allocating new memory if
* necessary.
*
* This function can be called both to create an initial allocation
* of memory, and to adjust the dimensions of a top blob during Layer::Reshape
* or Layer::Forward. When changing the size of blob, memory will only be
* reallocated if sufficient memory does not already exist, and excess memory
* will never be freed.
*
* Note that reshaping an input blob and immediately calling Net::Backward is
* an error; either Net::Forward or Net::Reshape need to be called to
* propagate the new input shape to higher layers.
*/
public native void Reshape(@StdVector IntPointer shape);
public native void Reshape(@StdVector IntBuffer shape);
public native void Reshape(@StdVector int[] shape);
public native void Reshape(@Const @ByRef BlobShape shape);
public native void ReshapeLike(@Const @ByRef FloatBlob other);
public native @StdString BytePointer shape_string();
public native @StdVector IntPointer shape();
/**
* @brief Returns the dimension of the index-th axis (or the negative index-th
* axis from the end, if index is negative).
*
* @param index the axis index, which may be negative as it will be
* "canonicalized" using CanonicalAxisIndex.
* Dies on out of range index.
*/
public native int shape(int index);
public native int num_axes();
public native int count();
/**
* @brief Compute the volume of a slice; i.e., the product of dimensions
* among a range of axes.
*
* @param start_axis The first axis to include in the slice.
*
* @param end_axis The first axis to exclude from the slice.
*/
public native int count(int start_axis, int end_axis);
/**
* @brief Compute the volume of a slice spanning from a particular first
* axis to the final axis.
*
* @param start_axis The first axis to include in the slice.
*/
public native int count(int start_axis);
/**
* @brief Returns the 'canonical' version of a (usually) user-specified axis,
* allowing for negative indexing (e.g., -1 for the last axis).
*
* @param axis_index the axis index.
* If 0 <= index < num_axes(), return index.
* If -num_axes <= index <= -1, return (num_axes() - (-index)),
* e.g., the last axis index (num_axes() - 1) if index == -1,
* the second to last if index == -2, etc.
* Dies on out of range index.
*/
public native int CanonicalAxisIndex(int axis_index);
/** @brief Deprecated legacy shape accessor num: use shape(0) instead. */
public native int num();
/** @brief Deprecated legacy shape accessor channels: use shape(1) instead. */
public native int channels();
/** @brief Deprecated legacy shape accessor height: use shape(2) instead. */
public native int height();
/** @brief Deprecated legacy shape accessor width: use shape(3) instead. */
public native int width();
public native int LegacyShape(int index);
public native int offset(int n, int c/*=0*/, int h/*=0*/,
int w/*=0*/);
public native int offset(int n);
public native int offset(@StdVector IntPointer indices);
public native int offset(@StdVector IntBuffer indices);
public native int offset(@StdVector int[] indices);
/**
* @brief Copy from a source Blob.
*
* @param source the Blob to copy from
* @param copy_diff if false, copy the data; if true, copy the diff
* @param reshape if false, require this Blob to be pre-shaped to the shape
* of other (and die otherwise); if true, Reshape this Blob to other's
* shape if necessary
*/
public native void CopyFrom(@Const @ByRef FloatBlob source, @Cast("bool") boolean copy_diff/*=false*/,
@Cast("bool") boolean reshape/*=false*/);
public native void CopyFrom(@Const @ByRef FloatBlob source);
public native float data_at(int n, int c, int h,
int w);
public native float diff_at(int n, int c, int h,
int w);
public native float data_at(@StdVector IntPointer index);
public native float data_at(@StdVector IntBuffer index);
public native float data_at(@StdVector int[] index);
public native float diff_at(@StdVector IntPointer index);
public native float diff_at(@StdVector IntBuffer index);
public native float diff_at(@StdVector int[] index);
public native @SharedPtr SyncedMemory data();
public native @SharedPtr SyncedMemory diff();
public native @Const FloatPointer cpu_data();
public native void set_cpu_data(FloatPointer data);
public native void set_cpu_data(FloatBuffer data);
public native void set_cpu_data(float[] data);
public native @Const IntPointer gpu_shape();
public native @Const FloatPointer gpu_data();
public native @Const FloatPointer cpu_diff();
public native @Const FloatPointer gpu_diff();
public native FloatPointer mutable_cpu_data();
public native FloatPointer mutable_gpu_data();
public native FloatPointer mutable_cpu_diff();
public native FloatPointer mutable_gpu_diff();
public native void Update();
public native void FromProto(@Const @ByRef BlobProto proto, @Cast("bool") boolean reshape/*=true*/);
public native void FromProto(@Const @ByRef BlobProto proto);
public native void ToProto(BlobProto proto, @Cast("bool") boolean write_diff/*=false*/);
public native void ToProto(BlobProto proto);
/** @brief Compute the sum of absolute values (L1 norm) of the data. */
public native float asum_data();
/** @brief Compute the sum of absolute values (L1 norm) of the diff. */
public native float asum_diff();
/** @brief Compute the sum of squares (L2 norm squared) of the data. */
public native float sumsq_data();
/** @brief Compute the sum of squares (L2 norm squared) of the diff. */
public native float sumsq_diff();
/** @brief Scale the blob data by a constant factor. */
public native void scale_data(float scale_factor);
/** @brief Scale the blob diff by a constant factor. */
public native void scale_diff(float scale_factor);
/**
* @brief Set the data_ shared_ptr to point to the SyncedMemory holding the
* data_ of Blob other -- useful in Layer%s which simply perform a copy
* in their Forward pass.
*
* This deallocates the SyncedMemory holding this Blob's data_, as
* shared_ptr calls its destructor when reset with the "=" operator.
*/
public native void ShareData(@Const @ByRef FloatBlob other);
/**
* @brief Set the diff_ shared_ptr to point to the SyncedMemory holding the
* diff_ of Blob other -- useful in Layer%s which simply perform a copy
* in their Forward pass.
*
* This deallocates the SyncedMemory holding this Blob's diff_, as
* shared_ptr calls its destructor when reset with the "=" operator.
*/
public native void ShareDiff(@Const @ByRef FloatBlob other);
public native @Cast("bool") boolean ShapeEquals(@Const @ByRef BlobProto other);
}
@Name("caffe::Blob") @NoOffset public static class DoubleBlob extends Pointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleBlob(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(int)}. */
public DoubleBlob(int size) { allocateArray(size); }
private native void allocateArray(int size);
@Override public DoubleBlob position(int position) {
return (DoubleBlob)super.position(position);
}
public DoubleBlob() { allocate(); }
private native void allocate();
/** @brief Deprecated; use Blob(const vector& shape)
. */
public DoubleBlob(int num, int channels, int height,
int width) { allocate(num, channels, height, width); }
private native void allocate(int num, int channels, int height,
int width);
public DoubleBlob(@StdVector IntPointer shape) { allocate(shape); }
private native void allocate(@StdVector IntPointer shape);
public DoubleBlob(@StdVector IntBuffer shape) { allocate(shape); }
private native void allocate(@StdVector IntBuffer shape);
public DoubleBlob(@StdVector int[] shape) { allocate(shape); }
private native void allocate(@StdVector int[] shape);
/** @brief Deprecated; use Reshape(const vector& shape)
. */
public native void Reshape(int num, int channels, int height,
int width);
/**
* @brief Change the dimensions of the blob, allocating new memory if
* necessary.
*
* This function can be called both to create an initial allocation
* of memory, and to adjust the dimensions of a top blob during Layer::Reshape
* or Layer::Forward. When changing the size of blob, memory will only be
* reallocated if sufficient memory does not already exist, and excess memory
* will never be freed.
*
* Note that reshaping an input blob and immediately calling Net::Backward is
* an error; either Net::Forward or Net::Reshape need to be called to
* propagate the new input shape to higher layers.
*/
public native void Reshape(@StdVector IntPointer shape);
public native void Reshape(@StdVector IntBuffer shape);
public native void Reshape(@StdVector int[] shape);
public native void Reshape(@Const @ByRef BlobShape shape);
public native void ReshapeLike(@Const @ByRef DoubleBlob other);
public native @StdString BytePointer shape_string();
public native @StdVector IntPointer shape();
/**
* @brief Returns the dimension of the index-th axis (or the negative index-th
* axis from the end, if index is negative).
*
* @param index the axis index, which may be negative as it will be
* "canonicalized" using CanonicalAxisIndex.
* Dies on out of range index.
*/
public native int shape(int index);
public native int num_axes();
public native int count();
/**
* @brief Compute the volume of a slice; i.e., the product of dimensions
* among a range of axes.
*
* @param start_axis The first axis to include in the slice.
*
* @param end_axis The first axis to exclude from the slice.
*/
public native int count(int start_axis, int end_axis);
/**
* @brief Compute the volume of a slice spanning from a particular first
* axis to the final axis.
*
* @param start_axis The first axis to include in the slice.
*/
public native int count(int start_axis);
/**
* @brief Returns the 'canonical' version of a (usually) user-specified axis,
* allowing for negative indexing (e.g., -1 for the last axis).
*
* @param axis_index the axis index.
* If 0 <= index < num_axes(), return index.
* If -num_axes <= index <= -1, return (num_axes() - (-index)),
* e.g., the last axis index (num_axes() - 1) if index == -1,
* the second to last if index == -2, etc.
* Dies on out of range index.
*/
public native int CanonicalAxisIndex(int axis_index);
/** @brief Deprecated legacy shape accessor num: use shape(0) instead. */
public native int num();
/** @brief Deprecated legacy shape accessor channels: use shape(1) instead. */
public native int channels();
/** @brief Deprecated legacy shape accessor height: use shape(2) instead. */
public native int height();
/** @brief Deprecated legacy shape accessor width: use shape(3) instead. */
public native int width();
public native int LegacyShape(int index);
public native int offset(int n, int c/*=0*/, int h/*=0*/,
int w/*=0*/);
public native int offset(int n);
public native int offset(@StdVector IntPointer indices);
public native int offset(@StdVector IntBuffer indices);
public native int offset(@StdVector int[] indices);
/**
* @brief Copy from a source Blob.
*
* @param source the Blob to copy from
* @param copy_diff if false, copy the data; if true, copy the diff
* @param reshape if false, require this Blob to be pre-shaped to the shape
* of other (and die otherwise); if true, Reshape this Blob to other's
* shape if necessary
*/
public native void CopyFrom(@Const @ByRef DoubleBlob source, @Cast("bool") boolean copy_diff/*=false*/,
@Cast("bool") boolean reshape/*=false*/);
public native void CopyFrom(@Const @ByRef DoubleBlob source);
public native double data_at(int n, int c, int h,
int w);
public native double diff_at(int n, int c, int h,
int w);
public native double data_at(@StdVector IntPointer index);
public native double data_at(@StdVector IntBuffer index);
public native double data_at(@StdVector int[] index);
public native double diff_at(@StdVector IntPointer index);
public native double diff_at(@StdVector IntBuffer index);
public native double diff_at(@StdVector int[] index);
public native @SharedPtr SyncedMemory data();
public native @SharedPtr SyncedMemory diff();
public native @Const DoublePointer cpu_data();
public native void set_cpu_data(DoublePointer data);
public native void set_cpu_data(DoubleBuffer data);
public native void set_cpu_data(double[] data);
public native @Const IntPointer gpu_shape();
public native @Const DoublePointer gpu_data();
public native @Const DoublePointer cpu_diff();
public native @Const DoublePointer gpu_diff();
public native DoublePointer mutable_cpu_data();
public native DoublePointer mutable_gpu_data();
public native DoublePointer mutable_cpu_diff();
public native DoublePointer mutable_gpu_diff();
public native void Update();
public native void FromProto(@Const @ByRef BlobProto proto, @Cast("bool") boolean reshape/*=true*/);
public native void FromProto(@Const @ByRef BlobProto proto);
public native void ToProto(BlobProto proto, @Cast("bool") boolean write_diff/*=false*/);
public native void ToProto(BlobProto proto);
/** @brief Compute the sum of absolute values (L1 norm) of the data. */
public native double asum_data();
/** @brief Compute the sum of absolute values (L1 norm) of the diff. */
public native double asum_diff();
/** @brief Compute the sum of squares (L2 norm squared) of the data. */
public native double sumsq_data();
/** @brief Compute the sum of squares (L2 norm squared) of the diff. */
public native double sumsq_diff();
/** @brief Scale the blob data by a constant factor. */
public native void scale_data(double scale_factor);
/** @brief Scale the blob diff by a constant factor. */
public native void scale_diff(double scale_factor);
/**
* @brief Set the data_ shared_ptr to point to the SyncedMemory holding the
* data_ of Blob other -- useful in Layer%s which simply perform a copy
* in their Forward pass.
*
* This deallocates the SyncedMemory holding this Blob's data_, as
* shared_ptr calls its destructor when reset with the "=" operator.
*/
public native void ShareData(@Const @ByRef DoubleBlob other);
/**
* @brief Set the diff_ shared_ptr to point to the SyncedMemory holding the
* diff_ of Blob other -- useful in Layer%s which simply perform a copy
* in their Forward pass.
*
* This deallocates the SyncedMemory holding this Blob's diff_, as
* shared_ptr calls its destructor when reset with the "=" operator.
*/
public native void ShareDiff(@Const @ByRef DoubleBlob other);
public native @Cast("bool") boolean ShapeEquals(@Const @ByRef BlobProto other);
} // class Blob
// namespace caffe
// #endif // CAFFE_BLOB_HPP_
// Parsed from caffe/data_transformer.hpp
// #ifndef CAFFE_DATA_TRANSFORMER_HPP
// #define CAFFE_DATA_TRANSFORMER_HPP
// #include
// #include "caffe/blob.hpp"
// #include "caffe/common.hpp"
// #include "caffe/proto/caffe.pb.h"
/**
* @brief Applies common transformations to the input data, such as
* scaling, mirroring, substracting the image mean...
*/
@Name("caffe::DataTransformer") @NoOffset public static class FloatDataTransformer extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public FloatDataTransformer() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatDataTransformer(Pointer p) { super(p); }
public FloatDataTransformer(@Const @ByRef TransformationParameter param, @Cast("caffe::Phase") int phase) { allocate(param, phase); }
private native void allocate(@Const @ByRef TransformationParameter param, @Cast("caffe::Phase") int phase);
/**
* @brief Initialize the Random number generations if needed by the
* transformation.
*/
public native void InitRand();
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to the data.
*
* @param datum
* Datum containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See data_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef Datum datum, FloatBlob transformed_blob);
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a vector of Datum.
*
* @param datum_vector
* A vector of Datum containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See memory_layer.cpp for an example.
*/
// #ifdef USE_OPENCV
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a vector of Mat.
*
* @param mat_vector
* A vector of Mat containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See memory_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef MatVector mat_vector,
FloatBlob transformed_blob);
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a cv::Mat
*
* @param cv_img
* cv::Mat containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See image_data_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef Mat cv_img, FloatBlob transformed_blob);
// #endif // USE_OPENCV
/**
* @brief Applies the same transformation defined in the data layer's
* transform_param block to all the num images in a input_blob.
*
* @param input_blob
* A Blob containing the data to be transformed. It applies the same
* transformation to all the num images in the blob.
* @param transformed_blob
* This is destination blob, it will contain as many images as the
* input blob. It can be part of top blob's data.
*/
public native void Transform(FloatBlob input_blob, FloatBlob transformed_blob);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
*
* @param datum
* Datum containing the data to be transformed.
*/
public native @StdVector IntPointer InferBlobShape(@Const @ByRef Datum datum);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
* It uses the first element to infer the shape of the blob.
*
* @param datum_vector
* A vector of Datum containing the data to be transformed.
*/
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
* It uses the first element to infer the shape of the blob.
*
* @param mat_vector
* A vector of Mat containing the data to be transformed.
*/
// #ifdef USE_OPENCV
public native @StdVector IntPointer InferBlobShape(@Const @ByRef MatVector mat_vector);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
*
* @param cv_img
* cv::Mat containing the data to be transformed.
*/
public native @StdVector IntPointer InferBlobShape(@Const @ByRef Mat cv_img);
}
@Name("caffe::DataTransformer") @NoOffset public static class DoubleDataTransformer extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public DoubleDataTransformer() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleDataTransformer(Pointer p) { super(p); }
public DoubleDataTransformer(@Const @ByRef TransformationParameter param, @Cast("caffe::Phase") int phase) { allocate(param, phase); }
private native void allocate(@Const @ByRef TransformationParameter param, @Cast("caffe::Phase") int phase);
/**
* @brief Initialize the Random number generations if needed by the
* transformation.
*/
public native void InitRand();
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to the data.
*
* @param datum
* Datum containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See data_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef Datum datum, DoubleBlob transformed_blob);
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a vector of Datum.
*
* @param datum_vector
* A vector of Datum containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See memory_layer.cpp for an example.
*/
// #ifdef USE_OPENCV
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a vector of Mat.
*
* @param mat_vector
* A vector of Mat containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See memory_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef MatVector mat_vector,
DoubleBlob transformed_blob);
/**
* @brief Applies the transformation defined in the data layer's
* transform_param block to a cv::Mat
*
* @param cv_img
* cv::Mat containing the data to be transformed.
* @param transformed_blob
* This is destination blob. It can be part of top blob's data if
* set_cpu_data() is used. See image_data_layer.cpp for an example.
*/
public native void Transform(@Const @ByRef Mat cv_img, DoubleBlob transformed_blob);
// #endif // USE_OPENCV
/**
* @brief Applies the same transformation defined in the data layer's
* transform_param block to all the num images in a input_blob.
*
* @param input_blob
* A Blob containing the data to be transformed. It applies the same
* transformation to all the num images in the blob.
* @param transformed_blob
* This is destination blob, it will contain as many images as the
* input blob. It can be part of top blob's data.
*/
public native void Transform(DoubleBlob input_blob, DoubleBlob transformed_blob);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
*
* @param datum
* Datum containing the data to be transformed.
*/
public native @StdVector IntPointer InferBlobShape(@Const @ByRef Datum datum);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
* It uses the first element to infer the shape of the blob.
*
* @param datum_vector
* A vector of Datum containing the data to be transformed.
*/
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
* It uses the first element to infer the shape of the blob.
*
* @param mat_vector
* A vector of Mat containing the data to be transformed.
*/
// #ifdef USE_OPENCV
public native @StdVector IntPointer InferBlobShape(@Const @ByRef MatVector mat_vector);
/**
* @brief Infers the shape of transformed_blob will have when
* the transformation is applied to the data.
*
* @param cv_img
* cv::Mat containing the data to be transformed.
*/
public native @StdVector IntPointer InferBlobShape(@Const @ByRef Mat cv_img);
}
// namespace caffe
// #endif // CAFFE_DATA_TRANSFORMER_HPP_
// Parsed from caffe/filler.hpp
// Fillers are random number generators that fills a blob using the specified
// algorithm. The expectation is that they are only going to be used during
// initialization time and will not involve any GPUs.
// #ifndef CAFFE_FILLER_HPP
// #define CAFFE_FILLER_HPP
// #include
// #include "caffe/blob.hpp"
// #include "caffe/proto/caffe.pb.h"
// #include "caffe/syncedmem.hpp"
// #include "caffe/util/math_functions.hpp"
/** @brief Fills a Blob with constant or randomly-generated data. */
@Name("caffe::Filler") @NoOffset public static class FloatFiller extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public FloatFiller() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatFiller(Pointer p) { super(p); }
public native void Fill(FloatBlob blob);
}
@Name("caffe::Filler") @NoOffset public static class DoubleFiller extends Pointer {
static { Loader.load(); }
/** Empty constructor. */
public DoubleFiller() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DoubleFiller(Pointer p) { super(p); }
public native void Fill(DoubleBlob blob);
} // class Filler
/** @brief Fills a Blob with constant values @f$ x = 0 @f$. */
@Name("caffe::ConstantFiller") public static class FloatConstantFiller extends FloatFiller {
static { Loader.load(); }
/** Empty constructor. */
public FloatConstantFiller() { }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FloatConstantFiller(Pointer p) { super(p); }
public FloatConstantFiller(@Const @ByRef FillerParameter param) { allocate(param); }
private native void allocate(@Const @ByRef FillerParameter param);
public native void Fill(FloatBlob blob);
}
@Name("caffe::ConstantFiller