- getTestIterList() {
- return java.util.Collections.unmodifiableList(testIter_);
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public int getTestIterCount() {
- return testIter_.size();
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public int getTestIter(int index) {
- return testIter_.get(index);
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public Builder setTestIter(
- int index, int value) {
- ensureTestIterIsMutable();
- testIter_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public Builder addTestIter(int value) {
- ensureTestIterIsMutable();
- testIter_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public Builder addAllTestIter(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureTestIterIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, testIter_);
- onChanged();
- return this;
- }
- /**
- * repeated int32 test_iter = 3;
- *
- *
- * The number of iterations for each test net.
- *
- */
- public Builder clearTestIter() {
- testIter_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- onChanged();
- return this;
- }
-
- private int testInterval_ ;
- /**
- * optional int32 test_interval = 4 [default = 0];
- *
- *
- * The number of iterations between two testing phases.
- *
- */
- public boolean hasTestInterval() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- /**
- * optional int32 test_interval = 4 [default = 0];
- *
- *
- * The number of iterations between two testing phases.
- *
- */
- public int getTestInterval() {
- return testInterval_;
- }
- /**
- * optional int32 test_interval = 4 [default = 0];
- *
- *
- * The number of iterations between two testing phases.
- *
- */
- public Builder setTestInterval(int value) {
- bitField0_ |= 0x00000200;
- testInterval_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 test_interval = 4 [default = 0];
- *
- *
- * The number of iterations between two testing phases.
- *
- */
- public Builder clearTestInterval() {
- bitField0_ = (bitField0_ & ~0x00000200);
- testInterval_ = 0;
- onChanged();
- return this;
- }
-
- private boolean testComputeLoss_ ;
- /**
- * optional bool test_compute_loss = 19 [default = false];
- */
- public boolean hasTestComputeLoss() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
- }
- /**
- * optional bool test_compute_loss = 19 [default = false];
- */
- public boolean getTestComputeLoss() {
- return testComputeLoss_;
- }
- /**
- * optional bool test_compute_loss = 19 [default = false];
- */
- public Builder setTestComputeLoss(boolean value) {
- bitField0_ |= 0x00000400;
- testComputeLoss_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bool test_compute_loss = 19 [default = false];
- */
- public Builder clearTestComputeLoss() {
- bitField0_ = (bitField0_ & ~0x00000400);
- testComputeLoss_ = false;
- onChanged();
- return this;
- }
-
- private boolean testInitialization_ = true;
- /**
- * optional bool test_initialization = 32 [default = true];
- *
- *
- * If true, run an initial test pass before the first iteration,
- * ensuring memory availability and printing the starting value of the loss.
- *
- */
- public boolean hasTestInitialization() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- /**
- * optional bool test_initialization = 32 [default = true];
- *
- *
- * If true, run an initial test pass before the first iteration,
- * ensuring memory availability and printing the starting value of the loss.
- *
- */
- public boolean getTestInitialization() {
- return testInitialization_;
- }
- /**
- * optional bool test_initialization = 32 [default = true];
- *
- *
- * If true, run an initial test pass before the first iteration,
- * ensuring memory availability and printing the starting value of the loss.
- *
- */
- public Builder setTestInitialization(boolean value) {
- bitField0_ |= 0x00000800;
- testInitialization_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bool test_initialization = 32 [default = true];
- *
- *
- * If true, run an initial test pass before the first iteration,
- * ensuring memory availability and printing the starting value of the loss.
- *
- */
- public Builder clearTestInitialization() {
- bitField0_ = (bitField0_ & ~0x00000800);
- testInitialization_ = true;
- onChanged();
- return this;
- }
-
- private float baseLr_ ;
- /**
- * optional float base_lr = 5;
- *
- *
- * The base learning rate
- *
- */
- public boolean hasBaseLr() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
- /**
- * optional float base_lr = 5;
- *
- *
- * The base learning rate
- *
- */
- public float getBaseLr() {
- return baseLr_;
- }
- /**
- * optional float base_lr = 5;
- *
- *
- * The base learning rate
- *
- */
- public Builder setBaseLr(float value) {
- bitField0_ |= 0x00001000;
- baseLr_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float base_lr = 5;
- *
- *
- * The base learning rate
- *
- */
- public Builder clearBaseLr() {
- bitField0_ = (bitField0_ & ~0x00001000);
- baseLr_ = 0F;
- onChanged();
- return this;
- }
-
- private int display_ ;
- /**
- * optional int32 display = 6;
- *
- *
- * the number of iterations between displaying info. If display = 0, no info
- * will be displayed.
- *
- */
- public boolean hasDisplay() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- /**
- * optional int32 display = 6;
- *
- *
- * the number of iterations between displaying info. If display = 0, no info
- * will be displayed.
- *
- */
- public int getDisplay() {
- return display_;
- }
- /**
- * optional int32 display = 6;
- *
- *
- * the number of iterations between displaying info. If display = 0, no info
- * will be displayed.
- *
- */
- public Builder setDisplay(int value) {
- bitField0_ |= 0x00002000;
- display_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 display = 6;
- *
- *
- * the number of iterations between displaying info. If display = 0, no info
- * will be displayed.
- *
- */
- public Builder clearDisplay() {
- bitField0_ = (bitField0_ & ~0x00002000);
- display_ = 0;
- onChanged();
- return this;
- }
-
- private int averageLoss_ = 1;
- /**
- * optional int32 average_loss = 33 [default = 1];
- *
- *
- * Display the loss averaged over the last average_loss iterations
- *
- */
- public boolean hasAverageLoss() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
- }
- /**
- * optional int32 average_loss = 33 [default = 1];
- *
- *
- * Display the loss averaged over the last average_loss iterations
- *
- */
- public int getAverageLoss() {
- return averageLoss_;
- }
- /**
- * optional int32 average_loss = 33 [default = 1];
- *
- *
- * Display the loss averaged over the last average_loss iterations
- *
- */
- public Builder setAverageLoss(int value) {
- bitField0_ |= 0x00004000;
- averageLoss_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 average_loss = 33 [default = 1];
- *
- *
- * Display the loss averaged over the last average_loss iterations
- *
- */
- public Builder clearAverageLoss() {
- bitField0_ = (bitField0_ & ~0x00004000);
- averageLoss_ = 1;
- onChanged();
- return this;
- }
-
- private int maxIter_ ;
- /**
- * optional int32 max_iter = 7;
- *
- *
- * the maximum number of iterations
- *
- */
- public boolean hasMaxIter() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
- }
- /**
- * optional int32 max_iter = 7;
- *
- *
- * the maximum number of iterations
- *
- */
- public int getMaxIter() {
- return maxIter_;
- }
- /**
- * optional int32 max_iter = 7;
- *
- *
- * the maximum number of iterations
- *
- */
- public Builder setMaxIter(int value) {
- bitField0_ |= 0x00008000;
- maxIter_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 max_iter = 7;
- *
- *
- * the maximum number of iterations
- *
- */
- public Builder clearMaxIter() {
- bitField0_ = (bitField0_ & ~0x00008000);
- maxIter_ = 0;
- onChanged();
- return this;
- }
-
- private int iterSize_ = 1;
- /**
- * optional int32 iter_size = 36 [default = 1];
- *
- *
- * accumulate gradients over `iter_size` x `batch_size` instances
- *
- */
- public boolean hasIterSize() {
- return ((bitField0_ & 0x00010000) == 0x00010000);
- }
- /**
- * optional int32 iter_size = 36 [default = 1];
- *
- *
- * accumulate gradients over `iter_size` x `batch_size` instances
- *
- */
- public int getIterSize() {
- return iterSize_;
- }
- /**
- * optional int32 iter_size = 36 [default = 1];
- *
- *
- * accumulate gradients over `iter_size` x `batch_size` instances
- *
- */
- public Builder setIterSize(int value) {
- bitField0_ |= 0x00010000;
- iterSize_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 iter_size = 36 [default = 1];
- *
- *
- * accumulate gradients over `iter_size` x `batch_size` instances
- *
- */
- public Builder clearIterSize() {
- bitField0_ = (bitField0_ & ~0x00010000);
- iterSize_ = 1;
- onChanged();
- return this;
- }
-
- private java.lang.Object lrPolicy_ = "";
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public boolean hasLrPolicy() {
- return ((bitField0_ & 0x00020000) == 0x00020000);
- }
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public java.lang.String getLrPolicy() {
- java.lang.Object ref = lrPolicy_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- lrPolicy_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public com.google.protobuf.ByteString
- getLrPolicyBytes() {
- java.lang.Object ref = lrPolicy_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- lrPolicy_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public Builder setLrPolicy(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00020000;
- lrPolicy_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public Builder clearLrPolicy() {
- bitField0_ = (bitField0_ & ~0x00020000);
- lrPolicy_ = getDefaultInstance().getLrPolicy();
- onChanged();
- return this;
- }
- /**
- * optional string lr_policy = 8;
- *
- *
- * The learning rate decay policy. The currently implemented learning rate
- * policies are as follows:
- * - fixed: always return base_lr.
- * - step: return base_lr * gamma ^ (floor(iter / step))
- * - exp: return base_lr * gamma ^ iter
- * - inv: return base_lr * (1 + gamma * iter) ^ (- power)
- * - multistep: similar to step but it allows non uniform steps defined by
- * stepvalue
- * - poly: the effective learning rate follows a polynomial decay, to be
- * zero by the max_iter. return base_lr (1 - iter/max_iter) ^ (power)
- * - sigmoid: the effective learning rate follows a sigmod decay
- * return base_lr ( 1/(1 + exp(-gamma * (iter - stepsize))))
- * where base_lr, max_iter, gamma, step, stepvalue and power are defined
- * in the solver parameter protocol buffer, and iter is the current iteration.
- *
- */
- public Builder setLrPolicyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00020000;
- lrPolicy_ = value;
- onChanged();
- return this;
- }
-
- private float gamma_ ;
- /**
- * optional float gamma = 9;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public boolean hasGamma() {
- return ((bitField0_ & 0x00040000) == 0x00040000);
- }
- /**
- * optional float gamma = 9;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public float getGamma() {
- return gamma_;
- }
- /**
- * optional float gamma = 9;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public Builder setGamma(float value) {
- bitField0_ |= 0x00040000;
- gamma_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float gamma = 9;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public Builder clearGamma() {
- bitField0_ = (bitField0_ & ~0x00040000);
- gamma_ = 0F;
- onChanged();
- return this;
- }
-
- private float power_ ;
- /**
- * optional float power = 10;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public boolean hasPower() {
- return ((bitField0_ & 0x00080000) == 0x00080000);
- }
- /**
- * optional float power = 10;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public float getPower() {
- return power_;
- }
- /**
- * optional float power = 10;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public Builder setPower(float value) {
- bitField0_ |= 0x00080000;
- power_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float power = 10;
- *
- *
- * The parameter to compute the learning rate.
- *
- */
- public Builder clearPower() {
- bitField0_ = (bitField0_ & ~0x00080000);
- power_ = 0F;
- onChanged();
- return this;
- }
-
- private float momentum_ ;
- /**
- * optional float momentum = 11;
- *
- *
- * The momentum value.
- *
- */
- public boolean hasMomentum() {
- return ((bitField0_ & 0x00100000) == 0x00100000);
- }
- /**
- * optional float momentum = 11;
- *
- *
- * The momentum value.
- *
- */
- public float getMomentum() {
- return momentum_;
- }
- /**
- * optional float momentum = 11;
- *
- *
- * The momentum value.
- *
- */
- public Builder setMomentum(float value) {
- bitField0_ |= 0x00100000;
- momentum_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float momentum = 11;
- *
- *
- * The momentum value.
- *
- */
- public Builder clearMomentum() {
- bitField0_ = (bitField0_ & ~0x00100000);
- momentum_ = 0F;
- onChanged();
- return this;
- }
-
- private float weightDecay_ ;
- /**
- * optional float weight_decay = 12;
- *
- *
- * The weight decay.
- *
- */
- public boolean hasWeightDecay() {
- return ((bitField0_ & 0x00200000) == 0x00200000);
- }
- /**
- * optional float weight_decay = 12;
- *
- *
- * The weight decay.
- *
- */
- public float getWeightDecay() {
- return weightDecay_;
- }
- /**
- * optional float weight_decay = 12;
- *
- *
- * The weight decay.
- *
- */
- public Builder setWeightDecay(float value) {
- bitField0_ |= 0x00200000;
- weightDecay_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float weight_decay = 12;
- *
- *
- * The weight decay.
- *
- */
- public Builder clearWeightDecay() {
- bitField0_ = (bitField0_ & ~0x00200000);
- weightDecay_ = 0F;
- onChanged();
- return this;
- }
-
- private java.lang.Object regularizationType_ = "L2";
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public boolean hasRegularizationType() {
- return ((bitField0_ & 0x00400000) == 0x00400000);
- }
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public java.lang.String getRegularizationType() {
- java.lang.Object ref = regularizationType_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- regularizationType_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public com.google.protobuf.ByteString
- getRegularizationTypeBytes() {
- java.lang.Object ref = regularizationType_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- regularizationType_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public Builder setRegularizationType(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00400000;
- regularizationType_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public Builder clearRegularizationType() {
- bitField0_ = (bitField0_ & ~0x00400000);
- regularizationType_ = getDefaultInstance().getRegularizationType();
- onChanged();
- return this;
- }
- /**
- * optional string regularization_type = 29 [default = "L2"];
- *
- *
- * regularization types supported: L1 and L2
- * controlled by weight_decay
- *
- */
- public Builder setRegularizationTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00400000;
- regularizationType_ = value;
- onChanged();
- return this;
- }
-
- private int stepsize_ ;
- /**
- * optional int32 stepsize = 13;
- *
- *
- * the stepsize for learning rate policy "step"
- *
- */
- public boolean hasStepsize() {
- return ((bitField0_ & 0x00800000) == 0x00800000);
- }
- /**
- * optional int32 stepsize = 13;
- *
- *
- * the stepsize for learning rate policy "step"
- *
- */
- public int getStepsize() {
- return stepsize_;
- }
- /**
- * optional int32 stepsize = 13;
- *
- *
- * the stepsize for learning rate policy "step"
- *
- */
- public Builder setStepsize(int value) {
- bitField0_ |= 0x00800000;
- stepsize_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 stepsize = 13;
- *
- *
- * the stepsize for learning rate policy "step"
- *
- */
- public Builder clearStepsize() {
- bitField0_ = (bitField0_ & ~0x00800000);
- stepsize_ = 0;
- onChanged();
- return this;
- }
-
- private java.util.List stepvalue_ = java.util.Collections.emptyList();
- private void ensureStepvalueIsMutable() {
- if (!((bitField0_ & 0x01000000) == 0x01000000)) {
- stepvalue_ = new java.util.ArrayList(stepvalue_);
- bitField0_ |= 0x01000000;
- }
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public java.util.List
- getStepvalueList() {
- return java.util.Collections.unmodifiableList(stepvalue_);
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public int getStepvalueCount() {
- return stepvalue_.size();
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public int getStepvalue(int index) {
- return stepvalue_.get(index);
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public Builder setStepvalue(
- int index, int value) {
- ensureStepvalueIsMutable();
- stepvalue_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public Builder addStepvalue(int value) {
- ensureStepvalueIsMutable();
- stepvalue_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public Builder addAllStepvalue(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureStepvalueIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, stepvalue_);
- onChanged();
- return this;
- }
- /**
- * repeated int32 stepvalue = 34;
- *
- *
- * the stepsize for learning rate policy "multistep"
- *
- */
- public Builder clearStepvalue() {
- stepvalue_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x01000000);
- onChanged();
- return this;
- }
-
- private float clipGradients_ = -1F;
- /**
- * optional float clip_gradients = 35 [default = -1];
- *
- *
- * Set clip_gradients to >= 0 to clip parameter gradients to that L2 norm,
- * whenever their actual L2 norm is larger.
- *
- */
- public boolean hasClipGradients() {
- return ((bitField0_ & 0x02000000) == 0x02000000);
- }
- /**
- * optional float clip_gradients = 35 [default = -1];
- *
- *
- * Set clip_gradients to >= 0 to clip parameter gradients to that L2 norm,
- * whenever their actual L2 norm is larger.
- *
- */
- public float getClipGradients() {
- return clipGradients_;
- }
- /**
- * optional float clip_gradients = 35 [default = -1];
- *
- *
- * Set clip_gradients to >= 0 to clip parameter gradients to that L2 norm,
- * whenever their actual L2 norm is larger.
- *
- */
- public Builder setClipGradients(float value) {
- bitField0_ |= 0x02000000;
- clipGradients_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float clip_gradients = 35 [default = -1];
- *
- *
- * Set clip_gradients to >= 0 to clip parameter gradients to that L2 norm,
- * whenever their actual L2 norm is larger.
- *
- */
- public Builder clearClipGradients() {
- bitField0_ = (bitField0_ & ~0x02000000);
- clipGradients_ = -1F;
- onChanged();
- return this;
- }
-
- private int snapshot_ ;
- /**
- * optional int32 snapshot = 14 [default = 0];
- *
- *
- * The snapshot interval
- *
- */
- public boolean hasSnapshot() {
- return ((bitField0_ & 0x04000000) == 0x04000000);
- }
- /**
- * optional int32 snapshot = 14 [default = 0];
- *
- *
- * The snapshot interval
- *
- */
- public int getSnapshot() {
- return snapshot_;
- }
- /**
- * optional int32 snapshot = 14 [default = 0];
- *
- *
- * The snapshot interval
- *
- */
- public Builder setSnapshot(int value) {
- bitField0_ |= 0x04000000;
- snapshot_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 snapshot = 14 [default = 0];
- *
- *
- * The snapshot interval
- *
- */
- public Builder clearSnapshot() {
- bitField0_ = (bitField0_ & ~0x04000000);
- snapshot_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object snapshotPrefix_ = "";
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public boolean hasSnapshotPrefix() {
- return ((bitField0_ & 0x08000000) == 0x08000000);
- }
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public java.lang.String getSnapshotPrefix() {
- java.lang.Object ref = snapshotPrefix_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- snapshotPrefix_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public com.google.protobuf.ByteString
- getSnapshotPrefixBytes() {
- java.lang.Object ref = snapshotPrefix_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- snapshotPrefix_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public Builder setSnapshotPrefix(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x08000000;
- snapshotPrefix_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public Builder clearSnapshotPrefix() {
- bitField0_ = (bitField0_ & ~0x08000000);
- snapshotPrefix_ = getDefaultInstance().getSnapshotPrefix();
- onChanged();
- return this;
- }
- /**
- * optional string snapshot_prefix = 15;
- *
- *
- * The prefix for the snapshot.
- *
- */
- public Builder setSnapshotPrefixBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x08000000;
- snapshotPrefix_ = value;
- onChanged();
- return this;
- }
-
- private boolean snapshotDiff_ ;
- /**
- * optional bool snapshot_diff = 16 [default = false];
- *
- *
- * whether to snapshot diff in the results or not. Snapshotting diff will help
- * debugging but the final protocol buffer size will be much larger.
- *
- */
- public boolean hasSnapshotDiff() {
- return ((bitField0_ & 0x10000000) == 0x10000000);
- }
- /**
- * optional bool snapshot_diff = 16 [default = false];
- *
- *
- * whether to snapshot diff in the results or not. Snapshotting diff will help
- * debugging but the final protocol buffer size will be much larger.
- *
- */
- public boolean getSnapshotDiff() {
- return snapshotDiff_;
- }
- /**
- * optional bool snapshot_diff = 16 [default = false];
- *
- *
- * whether to snapshot diff in the results or not. Snapshotting diff will help
- * debugging but the final protocol buffer size will be much larger.
- *
- */
- public Builder setSnapshotDiff(boolean value) {
- bitField0_ |= 0x10000000;
- snapshotDiff_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bool snapshot_diff = 16 [default = false];
- *
- *
- * whether to snapshot diff in the results or not. Snapshotting diff will help
- * debugging but the final protocol buffer size will be much larger.
- *
- */
- public Builder clearSnapshotDiff() {
- bitField0_ = (bitField0_ & ~0x10000000);
- snapshotDiff_ = false;
- onChanged();
- return this;
- }
-
- private int snapshotFormat_ = 1;
- /**
- * optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
- */
- public boolean hasSnapshotFormat() {
- return ((bitField0_ & 0x20000000) == 0x20000000);
- }
- /**
- * optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
- */
- public caffe.Caffe.SolverParameter.SnapshotFormat getSnapshotFormat() {
- caffe.Caffe.SolverParameter.SnapshotFormat result = caffe.Caffe.SolverParameter.SnapshotFormat.valueOf(snapshotFormat_);
- return result == null ? caffe.Caffe.SolverParameter.SnapshotFormat.BINARYPROTO : result;
- }
- /**
- * optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
- */
- public Builder setSnapshotFormat(caffe.Caffe.SolverParameter.SnapshotFormat value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x20000000;
- snapshotFormat_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
- */
- public Builder clearSnapshotFormat() {
- bitField0_ = (bitField0_ & ~0x20000000);
- snapshotFormat_ = 1;
- onChanged();
- return this;
- }
-
- private int solverMode_ = 1;
- /**
- * optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
- */
- public boolean hasSolverMode() {
- return ((bitField0_ & 0x40000000) == 0x40000000);
- }
- /**
- * optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
- */
- public caffe.Caffe.SolverParameter.SolverMode getSolverMode() {
- caffe.Caffe.SolverParameter.SolverMode result = caffe.Caffe.SolverParameter.SolverMode.valueOf(solverMode_);
- return result == null ? caffe.Caffe.SolverParameter.SolverMode.GPU : result;
- }
- /**
- * optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
- */
- public Builder setSolverMode(caffe.Caffe.SolverParameter.SolverMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x40000000;
- solverMode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
- */
- public Builder clearSolverMode() {
- bitField0_ = (bitField0_ & ~0x40000000);
- solverMode_ = 1;
- onChanged();
- return this;
- }
-
- private int deviceId_ ;
- /**
- * optional int32 device_id = 18 [default = 0];
- *
- *
- * the device_id will that be used in GPU mode. Use device_id = 0 in default.
- *
- */
- public boolean hasDeviceId() {
- return ((bitField0_ & 0x80000000) == 0x80000000);
- }
- /**
- * optional int32 device_id = 18 [default = 0];
- *
- *
- * the device_id will that be used in GPU mode. Use device_id = 0 in default.
- *
- */
- public int getDeviceId() {
- return deviceId_;
- }
- /**
- * optional int32 device_id = 18 [default = 0];
- *
- *
- * the device_id will that be used in GPU mode. Use device_id = 0 in default.
- *
- */
- public Builder setDeviceId(int value) {
- bitField0_ |= 0x80000000;
- deviceId_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 device_id = 18 [default = 0];
- *
- *
- * the device_id will that be used in GPU mode. Use device_id = 0 in default.
- *
- */
- public Builder clearDeviceId() {
- bitField0_ = (bitField0_ & ~0x80000000);
- deviceId_ = 0;
- onChanged();
- return this;
- }
-
- private long randomSeed_ = -1L;
- /**
- * optional int64 random_seed = 20 [default = -1];
- *
- *
- * If non-negative, the seed with which the Solver will initialize the Caffe
- * random number generator -- useful for reproducible results. Otherwise,
- * (and by default) initialize using a seed derived from the system clock.
- *
- */
- public boolean hasRandomSeed() {
- return ((bitField1_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 random_seed = 20 [default = -1];
- *
- *
- * If non-negative, the seed with which the Solver will initialize the Caffe
- * random number generator -- useful for reproducible results. Otherwise,
- * (and by default) initialize using a seed derived from the system clock.
- *
- */
- public long getRandomSeed() {
- return randomSeed_;
- }
- /**
- * optional int64 random_seed = 20 [default = -1];
- *
- *
- * If non-negative, the seed with which the Solver will initialize the Caffe
- * random number generator -- useful for reproducible results. Otherwise,
- * (and by default) initialize using a seed derived from the system clock.
- *
- */
- public Builder setRandomSeed(long value) {
- bitField1_ |= 0x00000001;
- randomSeed_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int64 random_seed = 20 [default = -1];
- *
- *
- * If non-negative, the seed with which the Solver will initialize the Caffe
- * random number generator -- useful for reproducible results. Otherwise,
- * (and by default) initialize using a seed derived from the system clock.
- *
- */
- public Builder clearRandomSeed() {
- bitField1_ = (bitField1_ & ~0x00000001);
- randomSeed_ = -1L;
- onChanged();
- return this;
- }
-
- private int solverType_ = 0;
- /**
- * optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
- */
- public boolean hasSolverType() {
- return ((bitField1_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
- */
- public caffe.Caffe.SolverParameter.SolverType getSolverType() {
- caffe.Caffe.SolverParameter.SolverType result = caffe.Caffe.SolverParameter.SolverType.valueOf(solverType_);
- return result == null ? caffe.Caffe.SolverParameter.SolverType.SGD : result;
- }
- /**
- * optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
- */
- public Builder setSolverType(caffe.Caffe.SolverParameter.SolverType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField1_ |= 0x00000002;
- solverType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
- */
- public Builder clearSolverType() {
- bitField1_ = (bitField1_ & ~0x00000002);
- solverType_ = 0;
- onChanged();
- return this;
- }
-
- private float delta_ = 1e-08F;
- /**
- * optional float delta = 31 [default = 1e-08];
- *
- *
- * numerical stability for RMSProp, AdaGrad and AdaDelta and Adam
- *
- */
- public boolean hasDelta() {
- return ((bitField1_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional float delta = 31 [default = 1e-08];
- *
- *
- * numerical stability for RMSProp, AdaGrad and AdaDelta and Adam
- *
- */
- public float getDelta() {
- return delta_;
- }
- /**
- * optional float delta = 31 [default = 1e-08];
- *
- *
- * numerical stability for RMSProp, AdaGrad and AdaDelta and Adam
- *
- */
- public Builder setDelta(float value) {
- bitField1_ |= 0x00000004;
- delta_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float delta = 31 [default = 1e-08];
- *
- *
- * numerical stability for RMSProp, AdaGrad and AdaDelta and Adam
- *
- */
- public Builder clearDelta() {
- bitField1_ = (bitField1_ & ~0x00000004);
- delta_ = 1e-08F;
- onChanged();
- return this;
- }
-
- private float momentum2_ = 0.999F;
- /**
- * optional float momentum2 = 39 [default = 0.999];
- *
- *
- * parameters for the Adam solver
- *
- */
- public boolean hasMomentum2() {
- return ((bitField1_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional float momentum2 = 39 [default = 0.999];
- *
- *
- * parameters for the Adam solver
- *
- */
- public float getMomentum2() {
- return momentum2_;
- }
- /**
- * optional float momentum2 = 39 [default = 0.999];
- *
- *
- * parameters for the Adam solver
- *
- */
- public Builder setMomentum2(float value) {
- bitField1_ |= 0x00000008;
- momentum2_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float momentum2 = 39 [default = 0.999];
- *
- *
- * parameters for the Adam solver
- *
- */
- public Builder clearMomentum2() {
- bitField1_ = (bitField1_ & ~0x00000008);
- momentum2_ = 0.999F;
- onChanged();
- return this;
- }
-
- private float rmsDecay_ ;
- /**
- * optional float rms_decay = 38;
- *
- *
- * RMSProp decay value
- * MeanSquare(t) = rms_decay*MeanSquare(t-1) + (1-rms_decay)*SquareGradient(t)
- *
- */
- public boolean hasRmsDecay() {
- return ((bitField1_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional float rms_decay = 38;
- *
- *
- * RMSProp decay value
- * MeanSquare(t) = rms_decay*MeanSquare(t-1) + (1-rms_decay)*SquareGradient(t)
- *
- */
- public float getRmsDecay() {
- return rmsDecay_;
- }
- /**
- * optional float rms_decay = 38;
- *
- *
- * RMSProp decay value
- * MeanSquare(t) = rms_decay*MeanSquare(t-1) + (1-rms_decay)*SquareGradient(t)
- *
- */
- public Builder setRmsDecay(float value) {
- bitField1_ |= 0x00000010;
- rmsDecay_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float rms_decay = 38;
- *
- *
- * RMSProp decay value
- * MeanSquare(t) = rms_decay*MeanSquare(t-1) + (1-rms_decay)*SquareGradient(t)
- *
- */
- public Builder clearRmsDecay() {
- bitField1_ = (bitField1_ & ~0x00000010);
- rmsDecay_ = 0F;
- onChanged();
- return this;
- }
-
- private boolean debugInfo_ ;
- /**
- * optional bool debug_info = 23 [default = false];
- *
- *
- * If true, print information about the state of the net that may help with
- * debugging learning problems.
- *
- */
- public boolean hasDebugInfo() {
- return ((bitField1_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional bool debug_info = 23 [default = false];
- *
- *
- * If true, print information about the state of the net that may help with
- * debugging learning problems.
- *
- */
- public boolean getDebugInfo() {
- return debugInfo_;
- }
- /**
- * optional bool debug_info = 23 [default = false];
- *
- *
- * If true, print information about the state of the net that may help with
- * debugging learning problems.
- *
- */
- public Builder setDebugInfo(boolean value) {
- bitField1_ |= 0x00000020;
- debugInfo_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bool debug_info = 23 [default = false];
- *
- *
- * If true, print information about the state of the net that may help with
- * debugging learning problems.
- *
- */
- public Builder clearDebugInfo() {
- bitField1_ = (bitField1_ & ~0x00000020);
- debugInfo_ = false;
- onChanged();
- return this;
- }
-
- private boolean snapshotAfterTrain_ = true;
- /**
- * optional bool snapshot_after_train = 28 [default = true];
- *
- *
- * If false, don't save a snapshot after training finishes.
- *
- */
- public boolean hasSnapshotAfterTrain() {
- return ((bitField1_ & 0x00000040) == 0x00000040);
- }
- /**
- * optional bool snapshot_after_train = 28 [default = true];
- *
- *
- * If false, don't save a snapshot after training finishes.
- *
- */
- public boolean getSnapshotAfterTrain() {
- return snapshotAfterTrain_;
- }
- /**
- * optional bool snapshot_after_train = 28 [default = true];
- *
- *
- * If false, don't save a snapshot after training finishes.
- *
- */
- public Builder setSnapshotAfterTrain(boolean value) {
- bitField1_ |= 0x00000040;
- snapshotAfterTrain_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bool snapshot_after_train = 28 [default = true];
- *
- *
- * If false, don't save a snapshot after training finishes.
- *
- */
- public Builder clearSnapshotAfterTrain() {
- bitField1_ = (bitField1_ & ~0x00000040);
- snapshotAfterTrain_ = true;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.SolverParameter)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.SolverParameter)
- private static final caffe.Caffe.SolverParameter DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.SolverParameter();
- }
-
- public static caffe.Caffe.SolverParameter getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public SolverParameter parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new SolverParameter(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public caffe.Caffe.SolverParameter getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SolverStateOrBuilder extends
- // @@protoc_insertion_point(interface_extends:caffe.SolverState)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- boolean hasIter();
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- int getIter();
-
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- boolean hasLearnedNet();
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- java.lang.String getLearnedNet();
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- com.google.protobuf.ByteString
- getLearnedNetBytes();
-
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- java.util.List
- getHistoryList();
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- caffe.Caffe.BlobProto getHistory(int index);
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- int getHistoryCount();
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getHistoryOrBuilderList();
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- caffe.Caffe.BlobProtoOrBuilder getHistoryOrBuilder(
- int index);
-
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- boolean hasCurrentStep();
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- int getCurrentStep();
- }
- /**
- * Protobuf type {@code caffe.SolverState}
- *
- *
- * A message that stores the solver snapshots
- *
- */
- public static final class SolverState extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:caffe.SolverState)
- SolverStateOrBuilder {
- // Use SolverState.newBuilder() to construct.
- private SolverState(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private SolverState() {
- iter_ = 0;
- learnedNet_ = "";
- history_ = java.util.Collections.emptyList();
- currentStep_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private SolverState(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- iter_ = input.readInt32();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- learnedNet_ = bs;
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- history_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- history_.add(input.readMessage(caffe.Caffe.BlobProto.parser(), extensionRegistry));
- break;
- }
- case 32: {
- bitField0_ |= 0x00000004;
- currentStep_ = input.readInt32();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- history_ = java.util.Collections.unmodifiableList(history_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_SolverState_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_SolverState_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.SolverState.class, caffe.Caffe.SolverState.Builder.class);
- }
-
- private int bitField0_;
- public static final int ITER_FIELD_NUMBER = 1;
- private int iter_;
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public boolean hasIter() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public int getIter() {
- return iter_;
- }
-
- public static final int LEARNED_NET_FIELD_NUMBER = 2;
- private volatile java.lang.Object learnedNet_;
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public boolean hasLearnedNet() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public java.lang.String getLearnedNet() {
- java.lang.Object ref = learnedNet_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- learnedNet_ = s;
- }
- return s;
- }
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public com.google.protobuf.ByteString
- getLearnedNetBytes() {
- java.lang.Object ref = learnedNet_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- learnedNet_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int HISTORY_FIELD_NUMBER = 3;
- private java.util.List history_;
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public java.util.List getHistoryList() {
- return history_;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getHistoryOrBuilderList() {
- return history_;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public int getHistoryCount() {
- return history_.size();
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProto getHistory(int index) {
- return history_.get(index);
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProtoOrBuilder getHistoryOrBuilder(
- int index) {
- return history_.get(index);
- }
-
- public static final int CURRENT_STEP_FIELD_NUMBER = 4;
- private int currentStep_;
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public boolean hasCurrentStep() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public int getCurrentStep() {
- return currentStep_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt32(1, iter_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, learnedNet_);
- }
- for (int i = 0; i < history_.size(); i++) {
- output.writeMessage(3, history_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt32(4, currentStep_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, iter_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, learnedNet_);
- }
- for (int i = 0; i < history_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, history_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, currentStep_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static caffe.Caffe.SolverState parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.SolverState parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.SolverState parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.SolverState parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.SolverState parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.SolverState parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.SolverState parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static caffe.Caffe.SolverState parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.SolverState parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.SolverState parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(caffe.Caffe.SolverState prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code caffe.SolverState}
- *
- *
- * A message that stores the solver snapshots
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:caffe.SolverState)
- caffe.Caffe.SolverStateOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_SolverState_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_SolverState_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.SolverState.class, caffe.Caffe.SolverState.Builder.class);
- }
-
- // Construct using caffe.Caffe.SolverState.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getHistoryFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- iter_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- learnedNet_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- if (historyBuilder_ == null) {
- history_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- historyBuilder_.clear();
- }
- currentStep_ = 0;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return caffe.Caffe.internal_static_caffe_SolverState_descriptor;
- }
-
- public caffe.Caffe.SolverState getDefaultInstanceForType() {
- return caffe.Caffe.SolverState.getDefaultInstance();
- }
-
- public caffe.Caffe.SolverState build() {
- caffe.Caffe.SolverState result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public caffe.Caffe.SolverState buildPartial() {
- caffe.Caffe.SolverState result = new caffe.Caffe.SolverState(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.iter_ = iter_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.learnedNet_ = learnedNet_;
- if (historyBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- history_ = java.util.Collections.unmodifiableList(history_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.history_ = history_;
- } else {
- result.history_ = historyBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
- result.currentStep_ = currentStep_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof caffe.Caffe.SolverState) {
- return mergeFrom((caffe.Caffe.SolverState)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(caffe.Caffe.SolverState other) {
- if (other == caffe.Caffe.SolverState.getDefaultInstance()) return this;
- if (other.hasIter()) {
- setIter(other.getIter());
- }
- if (other.hasLearnedNet()) {
- bitField0_ |= 0x00000002;
- learnedNet_ = other.learnedNet_;
- onChanged();
- }
- if (historyBuilder_ == null) {
- if (!other.history_.isEmpty()) {
- if (history_.isEmpty()) {
- history_ = other.history_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureHistoryIsMutable();
- history_.addAll(other.history_);
- }
- onChanged();
- }
- } else {
- if (!other.history_.isEmpty()) {
- if (historyBuilder_.isEmpty()) {
- historyBuilder_.dispose();
- historyBuilder_ = null;
- history_ = other.history_;
- bitField0_ = (bitField0_ & ~0x00000004);
- historyBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getHistoryFieldBuilder() : null;
- } else {
- historyBuilder_.addAllMessages(other.history_);
- }
- }
- }
- if (other.hasCurrentStep()) {
- setCurrentStep(other.getCurrentStep());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- caffe.Caffe.SolverState parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (caffe.Caffe.SolverState) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int iter_ ;
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public boolean hasIter() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public int getIter() {
- return iter_;
- }
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public Builder setIter(int value) {
- bitField0_ |= 0x00000001;
- iter_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 iter = 1;
- *
- *
- * The current iteration
- *
- */
- public Builder clearIter() {
- bitField0_ = (bitField0_ & ~0x00000001);
- iter_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object learnedNet_ = "";
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public boolean hasLearnedNet() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public java.lang.String getLearnedNet() {
- java.lang.Object ref = learnedNet_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- learnedNet_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public com.google.protobuf.ByteString
- getLearnedNetBytes() {
- java.lang.Object ref = learnedNet_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- learnedNet_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public Builder setLearnedNet(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- learnedNet_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public Builder clearLearnedNet() {
- bitField0_ = (bitField0_ & ~0x00000002);
- learnedNet_ = getDefaultInstance().getLearnedNet();
- onChanged();
- return this;
- }
- /**
- * optional string learned_net = 2;
- *
- *
- * The file that stores the learned net.
- *
- */
- public Builder setLearnedNetBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- learnedNet_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List history_ =
- java.util.Collections.emptyList();
- private void ensureHistoryIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- history_ = new java.util.ArrayList(history_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder> historyBuilder_;
-
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public java.util.List getHistoryList() {
- if (historyBuilder_ == null) {
- return java.util.Collections.unmodifiableList(history_);
- } else {
- return historyBuilder_.getMessageList();
- }
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public int getHistoryCount() {
- if (historyBuilder_ == null) {
- return history_.size();
- } else {
- return historyBuilder_.getCount();
- }
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProto getHistory(int index) {
- if (historyBuilder_ == null) {
- return history_.get(index);
- } else {
- return historyBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder setHistory(
- int index, caffe.Caffe.BlobProto value) {
- if (historyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureHistoryIsMutable();
- history_.set(index, value);
- onChanged();
- } else {
- historyBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder setHistory(
- int index, caffe.Caffe.BlobProto.Builder builderForValue) {
- if (historyBuilder_ == null) {
- ensureHistoryIsMutable();
- history_.set(index, builderForValue.build());
- onChanged();
- } else {
- historyBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder addHistory(caffe.Caffe.BlobProto value) {
- if (historyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureHistoryIsMutable();
- history_.add(value);
- onChanged();
- } else {
- historyBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder addHistory(
- int index, caffe.Caffe.BlobProto value) {
- if (historyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureHistoryIsMutable();
- history_.add(index, value);
- onChanged();
- } else {
- historyBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder addHistory(
- caffe.Caffe.BlobProto.Builder builderForValue) {
- if (historyBuilder_ == null) {
- ensureHistoryIsMutable();
- history_.add(builderForValue.build());
- onChanged();
- } else {
- historyBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder addHistory(
- int index, caffe.Caffe.BlobProto.Builder builderForValue) {
- if (historyBuilder_ == null) {
- ensureHistoryIsMutable();
- history_.add(index, builderForValue.build());
- onChanged();
- } else {
- historyBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder addAllHistory(
- java.lang.Iterable extends caffe.Caffe.BlobProto> values) {
- if (historyBuilder_ == null) {
- ensureHistoryIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, history_);
- onChanged();
- } else {
- historyBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder clearHistory() {
- if (historyBuilder_ == null) {
- history_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- historyBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public Builder removeHistory(int index) {
- if (historyBuilder_ == null) {
- ensureHistoryIsMutable();
- history_.remove(index);
- onChanged();
- } else {
- historyBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProto.Builder getHistoryBuilder(
- int index) {
- return getHistoryFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProtoOrBuilder getHistoryOrBuilder(
- int index) {
- if (historyBuilder_ == null) {
- return history_.get(index); } else {
- return historyBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getHistoryOrBuilderList() {
- if (historyBuilder_ != null) {
- return historyBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(history_);
- }
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProto.Builder addHistoryBuilder() {
- return getHistoryFieldBuilder().addBuilder(
- caffe.Caffe.BlobProto.getDefaultInstance());
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public caffe.Caffe.BlobProto.Builder addHistoryBuilder(
- int index) {
- return getHistoryFieldBuilder().addBuilder(
- index, caffe.Caffe.BlobProto.getDefaultInstance());
- }
- /**
- * repeated .caffe.BlobProto history = 3;
- *
- *
- * The history for sgd solvers
- *
- */
- public java.util.List
- getHistoryBuilderList() {
- return getHistoryFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder>
- getHistoryFieldBuilder() {
- if (historyBuilder_ == null) {
- historyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder>(
- history_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- history_ = null;
- }
- return historyBuilder_;
- }
-
- private int currentStep_ ;
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public boolean hasCurrentStep() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public int getCurrentStep() {
- return currentStep_;
- }
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public Builder setCurrentStep(int value) {
- bitField0_ |= 0x00000008;
- currentStep_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 current_step = 4 [default = 0];
- *
- *
- * The current step for learning rate
- *
- */
- public Builder clearCurrentStep() {
- bitField0_ = (bitField0_ & ~0x00000008);
- currentStep_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.SolverState)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.SolverState)
- private static final caffe.Caffe.SolverState DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.SolverState();
- }
-
- public static caffe.Caffe.SolverState getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public SolverState parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new SolverState(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public caffe.Caffe.SolverState getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface NetStateOrBuilder extends
- // @@protoc_insertion_point(interface_extends:caffe.NetState)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- boolean hasPhase();
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- caffe.Caffe.Phase getPhase();
-
- /**
- * optional int32 level = 2 [default = 0];
- */
- boolean hasLevel();
- /**
- * optional int32 level = 2 [default = 0];
- */
- int getLevel();
-
- /**
- * repeated string stage = 3;
- */
- com.google.protobuf.ProtocolStringList
- getStageList();
- /**
- * repeated string stage = 3;
- */
- int getStageCount();
- /**
- * repeated string stage = 3;
- */
- java.lang.String getStage(int index);
- /**
- * repeated string stage = 3;
- */
- com.google.protobuf.ByteString
- getStageBytes(int index);
- }
- /**
- * Protobuf type {@code caffe.NetState}
- */
- public static final class NetState extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:caffe.NetState)
- NetStateOrBuilder {
- // Use NetState.newBuilder() to construct.
- private NetState(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private NetState() {
- phase_ = 1;
- level_ = 0;
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private NetState(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- int rawValue = input.readEnum();
- caffe.Caffe.Phase value = caffe.Caffe.Phase.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- bitField0_ |= 0x00000001;
- phase_ = rawValue;
- }
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- level_ = input.readInt32();
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- stage_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- stage_.add(bs);
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- stage_ = stage_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_NetState_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_NetState_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.NetState.class, caffe.Caffe.NetState.Builder.class);
- }
-
- private int bitField0_;
- public static final int PHASE_FIELD_NUMBER = 1;
- private int phase_;
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TEST : result;
- }
-
- public static final int LEVEL_FIELD_NUMBER = 2;
- private int level_;
- /**
- * optional int32 level = 2 [default = 0];
- */
- public boolean hasLevel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional int32 level = 2 [default = 0];
- */
- public int getLevel() {
- return level_;
- }
-
- public static final int STAGE_FIELD_NUMBER = 3;
- private com.google.protobuf.LazyStringList stage_;
- /**
- * repeated string stage = 3;
- */
- public com.google.protobuf.ProtocolStringList
- getStageList() {
- return stage_;
- }
- /**
- * repeated string stage = 3;
- */
- public int getStageCount() {
- return stage_.size();
- }
- /**
- * repeated string stage = 3;
- */
- public java.lang.String getStage(int index) {
- return stage_.get(index);
- }
- /**
- * repeated string stage = 3;
- */
- public com.google.protobuf.ByteString
- getStageBytes(int index) {
- return stage_.getByteString(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, phase_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt32(2, level_);
- }
- for (int i = 0; i < stage_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, stage_.getRaw(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, phase_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, level_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < stage_.size(); i++) {
- dataSize += computeStringSizeNoTag(stage_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getStageList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static caffe.Caffe.NetState parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.NetState parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.NetState parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.NetState parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.NetState parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.NetState parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.NetState parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static caffe.Caffe.NetState parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.NetState parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.NetState parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(caffe.Caffe.NetState prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code caffe.NetState}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:caffe.NetState)
- caffe.Caffe.NetStateOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_NetState_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_NetState_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.NetState.class, caffe.Caffe.NetState.Builder.class);
- }
-
- // Construct using caffe.Caffe.NetState.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- phase_ = 1;
- bitField0_ = (bitField0_ & ~0x00000001);
- level_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return caffe.Caffe.internal_static_caffe_NetState_descriptor;
- }
-
- public caffe.Caffe.NetState getDefaultInstanceForType() {
- return caffe.Caffe.NetState.getDefaultInstance();
- }
-
- public caffe.Caffe.NetState build() {
- caffe.Caffe.NetState result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public caffe.Caffe.NetState buildPartial() {
- caffe.Caffe.NetState result = new caffe.Caffe.NetState(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.phase_ = phase_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.level_ = level_;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- stage_ = stage_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.stage_ = stage_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof caffe.Caffe.NetState) {
- return mergeFrom((caffe.Caffe.NetState)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(caffe.Caffe.NetState other) {
- if (other == caffe.Caffe.NetState.getDefaultInstance()) return this;
- if (other.hasPhase()) {
- setPhase(other.getPhase());
- }
- if (other.hasLevel()) {
- setLevel(other.getLevel());
- }
- if (!other.stage_.isEmpty()) {
- if (stage_.isEmpty()) {
- stage_ = other.stage_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureStageIsMutable();
- stage_.addAll(other.stage_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- caffe.Caffe.NetState parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (caffe.Caffe.NetState) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int phase_ = 1;
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TEST : result;
- }
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public Builder setPhase(caffe.Caffe.Phase value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- phase_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.Phase phase = 1 [default = TEST];
- */
- public Builder clearPhase() {
- bitField0_ = (bitField0_ & ~0x00000001);
- phase_ = 1;
- onChanged();
- return this;
- }
-
- private int level_ ;
- /**
- * optional int32 level = 2 [default = 0];
- */
- public boolean hasLevel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional int32 level = 2 [default = 0];
- */
- public int getLevel() {
- return level_;
- }
- /**
- * optional int32 level = 2 [default = 0];
- */
- public Builder setLevel(int value) {
- bitField0_ |= 0x00000002;
- level_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 level = 2 [default = 0];
- */
- public Builder clearLevel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- level_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureStageIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- stage_ = new com.google.protobuf.LazyStringArrayList(stage_);
- bitField0_ |= 0x00000004;
- }
- }
- /**
- * repeated string stage = 3;
- */
- public com.google.protobuf.ProtocolStringList
- getStageList() {
- return stage_.getUnmodifiableView();
- }
- /**
- * repeated string stage = 3;
- */
- public int getStageCount() {
- return stage_.size();
- }
- /**
- * repeated string stage = 3;
- */
- public java.lang.String getStage(int index) {
- return stage_.get(index);
- }
- /**
- * repeated string stage = 3;
- */
- public com.google.protobuf.ByteString
- getStageBytes(int index) {
- return stage_.getByteString(index);
- }
- /**
- * repeated string stage = 3;
- */
- public Builder setStage(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 3;
- */
- public Builder addStage(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 3;
- */
- public Builder addAllStage(
- java.lang.Iterable values) {
- ensureStageIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, stage_);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 3;
- */
- public Builder clearStage() {
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 3;
- */
- public Builder addStageBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.add(value);
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.NetState)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.NetState)
- private static final caffe.Caffe.NetState DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.NetState();
- }
-
- public static caffe.Caffe.NetState getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public NetState parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new NetState(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public caffe.Caffe.NetState getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface NetStateRuleOrBuilder extends
- // @@protoc_insertion_point(interface_extends:caffe.NetStateRule)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- boolean hasPhase();
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- caffe.Caffe.Phase getPhase();
-
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- boolean hasMinLevel();
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- int getMinLevel();
-
- /**
- * optional int32 max_level = 3;
- */
- boolean hasMaxLevel();
- /**
- * optional int32 max_level = 3;
- */
- int getMaxLevel();
-
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- com.google.protobuf.ProtocolStringList
- getStageList();
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- int getStageCount();
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- java.lang.String getStage(int index);
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- com.google.protobuf.ByteString
- getStageBytes(int index);
-
- /**
- * repeated string not_stage = 5;
- */
- com.google.protobuf.ProtocolStringList
- getNotStageList();
- /**
- * repeated string not_stage = 5;
- */
- int getNotStageCount();
- /**
- * repeated string not_stage = 5;
- */
- java.lang.String getNotStage(int index);
- /**
- * repeated string not_stage = 5;
- */
- com.google.protobuf.ByteString
- getNotStageBytes(int index);
- }
- /**
- * Protobuf type {@code caffe.NetStateRule}
- */
- public static final class NetStateRule extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:caffe.NetStateRule)
- NetStateRuleOrBuilder {
- // Use NetStateRule.newBuilder() to construct.
- private NetStateRule(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private NetStateRule() {
- phase_ = 0;
- minLevel_ = 0;
- maxLevel_ = 0;
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- notStage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private NetStateRule(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- int rawValue = input.readEnum();
- caffe.Caffe.Phase value = caffe.Caffe.Phase.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- bitField0_ |= 0x00000001;
- phase_ = rawValue;
- }
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- minLevel_ = input.readInt32();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- maxLevel_ = input.readInt32();
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- stage_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000008;
- }
- stage_.add(bs);
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- notStage_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000010;
- }
- notStage_.add(bs);
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- stage_ = stage_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- notStage_ = notStage_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_NetStateRule_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_NetStateRule_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.NetStateRule.class, caffe.Caffe.NetStateRule.Builder.class);
- }
-
- private int bitField0_;
- public static final int PHASE_FIELD_NUMBER = 1;
- private int phase_;
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TRAIN : result;
- }
-
- public static final int MIN_LEVEL_FIELD_NUMBER = 2;
- private int minLevel_;
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public boolean hasMinLevel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public int getMinLevel() {
- return minLevel_;
- }
-
- public static final int MAX_LEVEL_FIELD_NUMBER = 3;
- private int maxLevel_;
- /**
- * optional int32 max_level = 3;
- */
- public boolean hasMaxLevel() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional int32 max_level = 3;
- */
- public int getMaxLevel() {
- return maxLevel_;
- }
-
- public static final int STAGE_FIELD_NUMBER = 4;
- private com.google.protobuf.LazyStringList stage_;
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public com.google.protobuf.ProtocolStringList
- getStageList() {
- return stage_;
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public int getStageCount() {
- return stage_.size();
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public java.lang.String getStage(int index) {
- return stage_.get(index);
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public com.google.protobuf.ByteString
- getStageBytes(int index) {
- return stage_.getByteString(index);
- }
-
- public static final int NOT_STAGE_FIELD_NUMBER = 5;
- private com.google.protobuf.LazyStringList notStage_;
- /**
- * repeated string not_stage = 5;
- */
- public com.google.protobuf.ProtocolStringList
- getNotStageList() {
- return notStage_;
- }
- /**
- * repeated string not_stage = 5;
- */
- public int getNotStageCount() {
- return notStage_.size();
- }
- /**
- * repeated string not_stage = 5;
- */
- public java.lang.String getNotStage(int index) {
- return notStage_.get(index);
- }
- /**
- * repeated string not_stage = 5;
- */
- public com.google.protobuf.ByteString
- getNotStageBytes(int index) {
- return notStage_.getByteString(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, phase_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt32(2, minLevel_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt32(3, maxLevel_);
- }
- for (int i = 0; i < stage_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, stage_.getRaw(i));
- }
- for (int i = 0; i < notStage_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 5, notStage_.getRaw(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, phase_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, minLevel_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, maxLevel_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < stage_.size(); i++) {
- dataSize += computeStringSizeNoTag(stage_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getStageList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < notStage_.size(); i++) {
- dataSize += computeStringSizeNoTag(notStage_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getNotStageList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static caffe.Caffe.NetStateRule parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.NetStateRule parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.NetStateRule parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.NetStateRule parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.NetStateRule parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.NetStateRule parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.NetStateRule parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static caffe.Caffe.NetStateRule parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.NetStateRule parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.NetStateRule parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(caffe.Caffe.NetStateRule prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code caffe.NetStateRule}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:caffe.NetStateRule)
- caffe.Caffe.NetStateRuleOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_NetStateRule_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_NetStateRule_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.NetStateRule.class, caffe.Caffe.NetStateRule.Builder.class);
- }
-
- // Construct using caffe.Caffe.NetStateRule.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- phase_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- minLevel_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
- maxLevel_ = 0;
- bitField0_ = (bitField0_ & ~0x00000004);
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- notStage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return caffe.Caffe.internal_static_caffe_NetStateRule_descriptor;
- }
-
- public caffe.Caffe.NetStateRule getDefaultInstanceForType() {
- return caffe.Caffe.NetStateRule.getDefaultInstance();
- }
-
- public caffe.Caffe.NetStateRule build() {
- caffe.Caffe.NetStateRule result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public caffe.Caffe.NetStateRule buildPartial() {
- caffe.Caffe.NetStateRule result = new caffe.Caffe.NetStateRule(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.phase_ = phase_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.minLevel_ = minLevel_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.maxLevel_ = maxLevel_;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- stage_ = stage_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.stage_ = stage_;
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- notStage_ = notStage_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.notStage_ = notStage_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof caffe.Caffe.NetStateRule) {
- return mergeFrom((caffe.Caffe.NetStateRule)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(caffe.Caffe.NetStateRule other) {
- if (other == caffe.Caffe.NetStateRule.getDefaultInstance()) return this;
- if (other.hasPhase()) {
- setPhase(other.getPhase());
- }
- if (other.hasMinLevel()) {
- setMinLevel(other.getMinLevel());
- }
- if (other.hasMaxLevel()) {
- setMaxLevel(other.getMaxLevel());
- }
- if (!other.stage_.isEmpty()) {
- if (stage_.isEmpty()) {
- stage_ = other.stage_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureStageIsMutable();
- stage_.addAll(other.stage_);
- }
- onChanged();
- }
- if (!other.notStage_.isEmpty()) {
- if (notStage_.isEmpty()) {
- notStage_ = other.notStage_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureNotStageIsMutable();
- notStage_.addAll(other.notStage_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- caffe.Caffe.NetStateRule parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (caffe.Caffe.NetStateRule) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int phase_ = 0;
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TRAIN : result;
- }
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public Builder setPhase(caffe.Caffe.Phase value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- phase_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.Phase phase = 1;
- *
- *
- * Set phase to require the NetState have a particular phase (TRAIN or TEST)
- * to meet this rule.
- *
- */
- public Builder clearPhase() {
- bitField0_ = (bitField0_ & ~0x00000001);
- phase_ = 0;
- onChanged();
- return this;
- }
-
- private int minLevel_ ;
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public boolean hasMinLevel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public int getMinLevel() {
- return minLevel_;
- }
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public Builder setMinLevel(int value) {
- bitField0_ |= 0x00000002;
- minLevel_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 min_level = 2;
- *
- *
- * Set the minimum and/or maximum levels in which the layer should be used.
- * Leave undefined to meet the rule regardless of level.
- *
- */
- public Builder clearMinLevel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- minLevel_ = 0;
- onChanged();
- return this;
- }
-
- private int maxLevel_ ;
- /**
- * optional int32 max_level = 3;
- */
- public boolean hasMaxLevel() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional int32 max_level = 3;
- */
- public int getMaxLevel() {
- return maxLevel_;
- }
- /**
- * optional int32 max_level = 3;
- */
- public Builder setMaxLevel(int value) {
- bitField0_ |= 0x00000004;
- maxLevel_ = value;
- onChanged();
- return this;
- }
- /**
- * optional int32 max_level = 3;
- */
- public Builder clearMaxLevel() {
- bitField0_ = (bitField0_ & ~0x00000004);
- maxLevel_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureStageIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- stage_ = new com.google.protobuf.LazyStringArrayList(stage_);
- bitField0_ |= 0x00000008;
- }
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public com.google.protobuf.ProtocolStringList
- getStageList() {
- return stage_.getUnmodifiableView();
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public int getStageCount() {
- return stage_.size();
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public java.lang.String getStage(int index) {
- return stage_.get(index);
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public com.google.protobuf.ByteString
- getStageBytes(int index) {
- return stage_.getByteString(index);
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public Builder setStage(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public Builder addStage(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public Builder addAllStage(
- java.lang.Iterable values) {
- ensureStageIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, stage_);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public Builder clearStage() {
- stage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
- /**
- * repeated string stage = 4;
- *
- *
- * Customizable sets of stages to include or exclude.
- * The net must have ALL of the specified stages and NONE of the specified
- * "not_stage"s to meet the rule.
- * (Use multiple NetStateRules to specify conjunctions of stages.)
- *
- */
- public Builder addStageBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureStageIsMutable();
- stage_.add(value);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList notStage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureNotStageIsMutable() {
- if (!((bitField0_ & 0x00000010) == 0x00000010)) {
- notStage_ = new com.google.protobuf.LazyStringArrayList(notStage_);
- bitField0_ |= 0x00000010;
- }
- }
- /**
- * repeated string not_stage = 5;
- */
- public com.google.protobuf.ProtocolStringList
- getNotStageList() {
- return notStage_.getUnmodifiableView();
- }
- /**
- * repeated string not_stage = 5;
- */
- public int getNotStageCount() {
- return notStage_.size();
- }
- /**
- * repeated string not_stage = 5;
- */
- public java.lang.String getNotStage(int index) {
- return notStage_.get(index);
- }
- /**
- * repeated string not_stage = 5;
- */
- public com.google.protobuf.ByteString
- getNotStageBytes(int index) {
- return notStage_.getByteString(index);
- }
- /**
- * repeated string not_stage = 5;
- */
- public Builder setNotStage(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNotStageIsMutable();
- notStage_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string not_stage = 5;
- */
- public Builder addNotStage(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNotStageIsMutable();
- notStage_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string not_stage = 5;
- */
- public Builder addAllNotStage(
- java.lang.Iterable values) {
- ensureNotStageIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, notStage_);
- onChanged();
- return this;
- }
- /**
- * repeated string not_stage = 5;
- */
- public Builder clearNotStage() {
- notStage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
- /**
- * repeated string not_stage = 5;
- */
- public Builder addNotStageBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNotStageIsMutable();
- notStage_.add(value);
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.NetStateRule)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.NetStateRule)
- private static final caffe.Caffe.NetStateRule DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.NetStateRule();
- }
-
- public static caffe.Caffe.NetStateRule getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public NetStateRule parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new NetStateRule(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public caffe.Caffe.NetStateRule getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ParamSpecOrBuilder extends
- // @@protoc_insertion_point(interface_extends:caffe.ParamSpec)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- boolean hasName();
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- java.lang.String getName();
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- boolean hasShareMode();
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- caffe.Caffe.ParamSpec.DimCheckMode getShareMode();
-
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- boolean hasLrMult();
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- float getLrMult();
-
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- boolean hasDecayMult();
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- float getDecayMult();
- }
- /**
- * Protobuf type {@code caffe.ParamSpec}
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public static final class ParamSpec extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:caffe.ParamSpec)
- ParamSpecOrBuilder {
- // Use ParamSpec.newBuilder() to construct.
- private ParamSpec(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private ParamSpec() {
- name_ = "";
- shareMode_ = 0;
- lrMult_ = 1F;
- decayMult_ = 1F;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ParamSpec(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- name_ = bs;
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- caffe.Caffe.ParamSpec.DimCheckMode value = caffe.Caffe.ParamSpec.DimCheckMode.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- shareMode_ = rawValue;
- }
- break;
- }
- case 29: {
- bitField0_ |= 0x00000004;
- lrMult_ = input.readFloat();
- break;
- }
- case 37: {
- bitField0_ |= 0x00000008;
- decayMult_ = input.readFloat();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_ParamSpec_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_ParamSpec_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.ParamSpec.class, caffe.Caffe.ParamSpec.Builder.class);
- }
-
- /**
- * Protobuf enum {@code caffe.ParamSpec.DimCheckMode}
- */
- public enum DimCheckMode
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * STRICT = 0;
- *
- *
- * STRICT (default) requires that num, channels, height, width each match.
- *
- */
- STRICT(0, 0),
- /**
- * PERMISSIVE = 1;
- *
- *
- * PERMISSIVE requires only the count (num*channels*height*width) to match.
- *
- */
- PERMISSIVE(1, 1),
- ;
-
- /**
- * STRICT = 0;
- *
- *
- * STRICT (default) requires that num, channels, height, width each match.
- *
- */
- public static final int STRICT_VALUE = 0;
- /**
- * PERMISSIVE = 1;
- *
- *
- * PERMISSIVE requires only the count (num*channels*height*width) to match.
- *
- */
- public static final int PERMISSIVE_VALUE = 1;
-
-
- public final int getNumber() {
- return value;
- }
-
- public static DimCheckMode valueOf(int value) {
- switch (value) {
- case 0: return STRICT;
- case 1: return PERMISSIVE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- DimCheckMode> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public DimCheckMode findValueByNumber(int number) {
- return DimCheckMode.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return caffe.Caffe.ParamSpec.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final DimCheckMode[] VALUES = values();
-
- public static DimCheckMode valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private DimCheckMode(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:caffe.ParamSpec.DimCheckMode)
- }
-
- private int bitField0_;
- public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SHARE_MODE_FIELD_NUMBER = 2;
- private int shareMode_;
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public boolean hasShareMode() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public caffe.Caffe.ParamSpec.DimCheckMode getShareMode() {
- caffe.Caffe.ParamSpec.DimCheckMode result = caffe.Caffe.ParamSpec.DimCheckMode.valueOf(shareMode_);
- return result == null ? caffe.Caffe.ParamSpec.DimCheckMode.STRICT : result;
- }
-
- public static final int LR_MULT_FIELD_NUMBER = 3;
- private float lrMult_;
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public boolean hasLrMult() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public float getLrMult() {
- return lrMult_;
- }
-
- public static final int DECAY_MULT_FIELD_NUMBER = 4;
- private float decayMult_;
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public boolean hasDecayMult() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public float getDecayMult() {
- return decayMult_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, shareMode_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeFloat(3, lrMult_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeFloat(4, decayMult_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, shareMode_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, lrMult_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, decayMult_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static caffe.Caffe.ParamSpec parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.ParamSpec parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.ParamSpec parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.ParamSpec parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.ParamSpec parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.ParamSpec parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.ParamSpec parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static caffe.Caffe.ParamSpec parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.ParamSpec parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.ParamSpec parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(caffe.Caffe.ParamSpec prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code caffe.ParamSpec}
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:caffe.ParamSpec)
- caffe.Caffe.ParamSpecOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_ParamSpec_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_ParamSpec_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.ParamSpec.class, caffe.Caffe.ParamSpec.Builder.class);
- }
-
- // Construct using caffe.Caffe.ParamSpec.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- shareMode_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
- lrMult_ = 1F;
- bitField0_ = (bitField0_ & ~0x00000004);
- decayMult_ = 1F;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return caffe.Caffe.internal_static_caffe_ParamSpec_descriptor;
- }
-
- public caffe.Caffe.ParamSpec getDefaultInstanceForType() {
- return caffe.Caffe.ParamSpec.getDefaultInstance();
- }
-
- public caffe.Caffe.ParamSpec build() {
- caffe.Caffe.ParamSpec result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public caffe.Caffe.ParamSpec buildPartial() {
- caffe.Caffe.ParamSpec result = new caffe.Caffe.ParamSpec(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.shareMode_ = shareMode_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.lrMult_ = lrMult_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.decayMult_ = decayMult_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof caffe.Caffe.ParamSpec) {
- return mergeFrom((caffe.Caffe.ParamSpec)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(caffe.Caffe.ParamSpec other) {
- if (other == caffe.Caffe.ParamSpec.getDefaultInstance()) return this;
- if (other.hasName()) {
- bitField0_ |= 0x00000001;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasShareMode()) {
- setShareMode(other.getShareMode());
- }
- if (other.hasLrMult()) {
- setLrMult(other.getLrMult());
- }
- if (other.hasDecayMult()) {
- setDecayMult(other.getDecayMult());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- caffe.Caffe.ParamSpec parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (caffe.Caffe.ParamSpec) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object name_ = "";
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * optional string name = 1;
- *
- *
- * The names of the parameter blobs -- useful for sharing parameters among
- * layers, but never required otherwise. To share a parameter between two
- * layers, give it a (non-empty) name.
- *
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- name_ = value;
- onChanged();
- return this;
- }
-
- private int shareMode_ = 0;
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public boolean hasShareMode() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public caffe.Caffe.ParamSpec.DimCheckMode getShareMode() {
- caffe.Caffe.ParamSpec.DimCheckMode result = caffe.Caffe.ParamSpec.DimCheckMode.valueOf(shareMode_);
- return result == null ? caffe.Caffe.ParamSpec.DimCheckMode.STRICT : result;
- }
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public Builder setShareMode(caffe.Caffe.ParamSpec.DimCheckMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- shareMode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.ParamSpec.DimCheckMode share_mode = 2;
- *
- *
- * Whether to require shared weights to have the same shape, or just the same
- * count -- defaults to STRICT if unspecified.
- *
- */
- public Builder clearShareMode() {
- bitField0_ = (bitField0_ & ~0x00000002);
- shareMode_ = 0;
- onChanged();
- return this;
- }
-
- private float lrMult_ = 1F;
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public boolean hasLrMult() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public float getLrMult() {
- return lrMult_;
- }
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public Builder setLrMult(float value) {
- bitField0_ |= 0x00000004;
- lrMult_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float lr_mult = 3 [default = 1];
- *
- *
- * The multiplier on the global learning rate for this parameter.
- *
- */
- public Builder clearLrMult() {
- bitField0_ = (bitField0_ & ~0x00000004);
- lrMult_ = 1F;
- onChanged();
- return this;
- }
-
- private float decayMult_ = 1F;
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public boolean hasDecayMult() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public float getDecayMult() {
- return decayMult_;
- }
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public Builder setDecayMult(float value) {
- bitField0_ |= 0x00000008;
- decayMult_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float decay_mult = 4 [default = 1];
- *
- *
- * The multiplier on the global weight decay for this parameter.
- *
- */
- public Builder clearDecayMult() {
- bitField0_ = (bitField0_ & ~0x00000008);
- decayMult_ = 1F;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.ParamSpec)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.ParamSpec)
- private static final caffe.Caffe.ParamSpec DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.ParamSpec();
- }
-
- public static caffe.Caffe.ParamSpec getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public ParamSpec parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new ParamSpec(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public caffe.Caffe.ParamSpec getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface LayerParameterOrBuilder extends
- // @@protoc_insertion_point(interface_extends:caffe.LayerParameter)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- boolean hasName();
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- java.lang.String getName();
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- boolean hasType();
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- java.lang.String getType();
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- com.google.protobuf.ByteString
- getTypeBytes();
-
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- com.google.protobuf.ProtocolStringList
- getBottomList();
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- int getBottomCount();
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- java.lang.String getBottom(int index);
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- com.google.protobuf.ByteString
- getBottomBytes(int index);
-
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- com.google.protobuf.ProtocolStringList
- getTopList();
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- int getTopCount();
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- java.lang.String getTop(int index);
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- com.google.protobuf.ByteString
- getTopBytes(int index);
-
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- boolean hasPhase();
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- caffe.Caffe.Phase getPhase();
-
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- java.util.List getLossWeightList();
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- int getLossWeightCount();
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- float getLossWeight(int index);
-
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- java.util.List
- getParamList();
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- caffe.Caffe.ParamSpec getParam(int index);
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- int getParamCount();
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- java.util.List extends caffe.Caffe.ParamSpecOrBuilder>
- getParamOrBuilderList();
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- caffe.Caffe.ParamSpecOrBuilder getParamOrBuilder(
- int index);
-
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- java.util.List
- getBlobsList();
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- caffe.Caffe.BlobProto getBlobs(int index);
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- int getBlobsCount();
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getBlobsOrBuilderList();
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- caffe.Caffe.BlobProtoOrBuilder getBlobsOrBuilder(
- int index);
-
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- java.util.List getPropagateDownList();
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- int getPropagateDownCount();
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- boolean getPropagateDown(int index);
-
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- java.util.List
- getIncludeList();
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- caffe.Caffe.NetStateRule getInclude(int index);
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- int getIncludeCount();
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getIncludeOrBuilderList();
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- caffe.Caffe.NetStateRuleOrBuilder getIncludeOrBuilder(
- int index);
-
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- java.util.List
- getExcludeList();
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- caffe.Caffe.NetStateRule getExclude(int index);
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- int getExcludeCount();
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getExcludeOrBuilderList();
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- caffe.Caffe.NetStateRuleOrBuilder getExcludeOrBuilder(
- int index);
-
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- boolean hasTransformParam();
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- caffe.Caffe.TransformationParameter getTransformParam();
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- caffe.Caffe.TransformationParameterOrBuilder getTransformParamOrBuilder();
-
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- boolean hasLossParam();
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- caffe.Caffe.LossParameter getLossParam();
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- caffe.Caffe.LossParameterOrBuilder getLossParamOrBuilder();
-
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- boolean hasAccuracyParam();
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- caffe.Caffe.AccuracyParameter getAccuracyParam();
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- caffe.Caffe.AccuracyParameterOrBuilder getAccuracyParamOrBuilder();
-
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- boolean hasArgmaxParam();
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- caffe.Caffe.ArgMaxParameter getArgmaxParam();
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- caffe.Caffe.ArgMaxParameterOrBuilder getArgmaxParamOrBuilder();
-
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- boolean hasConcatParam();
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- caffe.Caffe.ConcatParameter getConcatParam();
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- caffe.Caffe.ConcatParameterOrBuilder getConcatParamOrBuilder();
-
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- boolean hasContrastiveLossParam();
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- caffe.Caffe.ContrastiveLossParameter getContrastiveLossParam();
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- caffe.Caffe.ContrastiveLossParameterOrBuilder getContrastiveLossParamOrBuilder();
-
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- boolean hasConvolutionParam();
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- caffe.Caffe.ConvolutionParameter getConvolutionParam();
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- caffe.Caffe.ConvolutionParameterOrBuilder getConvolutionParamOrBuilder();
-
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- boolean hasDataParam();
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- caffe.Caffe.DataParameter getDataParam();
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- caffe.Caffe.DataParameterOrBuilder getDataParamOrBuilder();
-
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- boolean hasDropoutParam();
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- caffe.Caffe.DropoutParameter getDropoutParam();
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- caffe.Caffe.DropoutParameterOrBuilder getDropoutParamOrBuilder();
-
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- boolean hasDummyDataParam();
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- caffe.Caffe.DummyDataParameter getDummyDataParam();
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- caffe.Caffe.DummyDataParameterOrBuilder getDummyDataParamOrBuilder();
-
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- boolean hasEltwiseParam();
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- caffe.Caffe.EltwiseParameter getEltwiseParam();
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- caffe.Caffe.EltwiseParameterOrBuilder getEltwiseParamOrBuilder();
-
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- boolean hasEmbedParam();
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- caffe.Caffe.EmbedParameter getEmbedParam();
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- caffe.Caffe.EmbedParameterOrBuilder getEmbedParamOrBuilder();
-
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- boolean hasExpParam();
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- caffe.Caffe.ExpParameter getExpParam();
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- caffe.Caffe.ExpParameterOrBuilder getExpParamOrBuilder();
-
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- boolean hasFlattenParam();
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- caffe.Caffe.FlattenParameter getFlattenParam();
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- caffe.Caffe.FlattenParameterOrBuilder getFlattenParamOrBuilder();
-
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- boolean hasHdf5DataParam();
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- caffe.Caffe.HDF5DataParameter getHdf5DataParam();
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- caffe.Caffe.HDF5DataParameterOrBuilder getHdf5DataParamOrBuilder();
-
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- boolean hasHdf5OutputParam();
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- caffe.Caffe.HDF5OutputParameter getHdf5OutputParam();
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- caffe.Caffe.HDF5OutputParameterOrBuilder getHdf5OutputParamOrBuilder();
-
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- boolean hasHingeLossParam();
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- caffe.Caffe.HingeLossParameter getHingeLossParam();
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- caffe.Caffe.HingeLossParameterOrBuilder getHingeLossParamOrBuilder();
-
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- boolean hasImageDataParam();
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- caffe.Caffe.ImageDataParameter getImageDataParam();
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- caffe.Caffe.ImageDataParameterOrBuilder getImageDataParamOrBuilder();
-
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- boolean hasInfogainLossParam();
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- caffe.Caffe.InfogainLossParameter getInfogainLossParam();
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- caffe.Caffe.InfogainLossParameterOrBuilder getInfogainLossParamOrBuilder();
-
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- boolean hasInnerProductParam();
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- caffe.Caffe.InnerProductParameter getInnerProductParam();
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- caffe.Caffe.InnerProductParameterOrBuilder getInnerProductParamOrBuilder();
-
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- boolean hasLogParam();
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- caffe.Caffe.LogParameter getLogParam();
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- caffe.Caffe.LogParameterOrBuilder getLogParamOrBuilder();
-
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- boolean hasLrnParam();
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- caffe.Caffe.LRNParameter getLrnParam();
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- caffe.Caffe.LRNParameterOrBuilder getLrnParamOrBuilder();
-
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- boolean hasMemoryDataParam();
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- caffe.Caffe.MemoryDataParameter getMemoryDataParam();
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- caffe.Caffe.MemoryDataParameterOrBuilder getMemoryDataParamOrBuilder();
-
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- boolean hasMvnParam();
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- caffe.Caffe.MVNParameter getMvnParam();
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- caffe.Caffe.MVNParameterOrBuilder getMvnParamOrBuilder();
-
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- boolean hasPoolingParam();
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- caffe.Caffe.PoolingParameter getPoolingParam();
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- caffe.Caffe.PoolingParameterOrBuilder getPoolingParamOrBuilder();
-
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- boolean hasPowerParam();
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- caffe.Caffe.PowerParameter getPowerParam();
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- caffe.Caffe.PowerParameterOrBuilder getPowerParamOrBuilder();
-
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- boolean hasPreluParam();
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- caffe.Caffe.PReLUParameter getPreluParam();
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- caffe.Caffe.PReLUParameterOrBuilder getPreluParamOrBuilder();
-
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- boolean hasPythonParam();
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- caffe.Caffe.PythonParameter getPythonParam();
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- caffe.Caffe.PythonParameterOrBuilder getPythonParamOrBuilder();
-
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- boolean hasReductionParam();
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- caffe.Caffe.ReductionParameter getReductionParam();
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- caffe.Caffe.ReductionParameterOrBuilder getReductionParamOrBuilder();
-
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- boolean hasReluParam();
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- caffe.Caffe.ReLUParameter getReluParam();
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- caffe.Caffe.ReLUParameterOrBuilder getReluParamOrBuilder();
-
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- boolean hasReshapeParam();
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- caffe.Caffe.ReshapeParameter getReshapeParam();
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- caffe.Caffe.ReshapeParameterOrBuilder getReshapeParamOrBuilder();
-
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- boolean hasSigmoidParam();
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- caffe.Caffe.SigmoidParameter getSigmoidParam();
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- caffe.Caffe.SigmoidParameterOrBuilder getSigmoidParamOrBuilder();
-
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- boolean hasSoftmaxParam();
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- caffe.Caffe.SoftmaxParameter getSoftmaxParam();
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- caffe.Caffe.SoftmaxParameterOrBuilder getSoftmaxParamOrBuilder();
-
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- boolean hasSppParam();
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- caffe.Caffe.SPPParameter getSppParam();
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- caffe.Caffe.SPPParameterOrBuilder getSppParamOrBuilder();
-
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- boolean hasSliceParam();
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- caffe.Caffe.SliceParameter getSliceParam();
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- caffe.Caffe.SliceParameterOrBuilder getSliceParamOrBuilder();
-
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- boolean hasTanhParam();
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- caffe.Caffe.TanHParameter getTanhParam();
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- caffe.Caffe.TanHParameterOrBuilder getTanhParamOrBuilder();
-
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- boolean hasThresholdParam();
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- caffe.Caffe.ThresholdParameter getThresholdParam();
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- caffe.Caffe.ThresholdParameterOrBuilder getThresholdParamOrBuilder();
-
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- boolean hasTileParam();
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- caffe.Caffe.TileParameter getTileParam();
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- caffe.Caffe.TileParameterOrBuilder getTileParamOrBuilder();
-
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- boolean hasWindowDataParam();
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- caffe.Caffe.WindowDataParameter getWindowDataParam();
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- caffe.Caffe.WindowDataParameterOrBuilder getWindowDataParamOrBuilder();
- }
- /**
- * Protobuf type {@code caffe.LayerParameter}
- *
- *
- * NOTE
- * Update the next available ID when you add a new LayerParameter field.
- * LayerParameter next available layer-specific ID: 139 (last added: tile_param)
- *
- */
- public static final class LayerParameter extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:caffe.LayerParameter)
- LayerParameterOrBuilder {
- // Use LayerParameter.newBuilder() to construct.
- private LayerParameter(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private LayerParameter() {
- name_ = "";
- type_ = "";
- bottom_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- top_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- phase_ = 0;
- lossWeight_ = java.util.Collections.emptyList();
- param_ = java.util.Collections.emptyList();
- blobs_ = java.util.Collections.emptyList();
- propagateDown_ = java.util.Collections.emptyList();
- include_ = java.util.Collections.emptyList();
- exclude_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private LayerParameter(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- int mutable_bitField1_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- name_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- type_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- bottom_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- bottom_.add(bs);
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- top_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000008;
- }
- top_.add(bs);
- break;
- }
- case 45: {
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- lossWeight_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000020;
- }
- lossWeight_.add(input.readFloat());
- break;
- }
- case 42: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
- lossWeight_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000020;
- }
- while (input.getBytesUntilLimit() > 0) {
- lossWeight_.add(input.readFloat());
- }
- input.popLimit(limit);
- break;
- }
- case 50: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- param_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000040;
- }
- param_.add(input.readMessage(caffe.Caffe.ParamSpec.parser(), extensionRegistry));
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- blobs_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000080;
- }
- blobs_.add(input.readMessage(caffe.Caffe.BlobProto.parser(), extensionRegistry));
- break;
- }
- case 66: {
- if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
- include_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000200;
- }
- include_.add(input.readMessage(caffe.Caffe.NetStateRule.parser(), extensionRegistry));
- break;
- }
- case 74: {
- if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- exclude_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000400;
- }
- exclude_.add(input.readMessage(caffe.Caffe.NetStateRule.parser(), extensionRegistry));
- break;
- }
- case 80: {
- int rawValue = input.readEnum();
- caffe.Caffe.Phase value = caffe.Caffe.Phase.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(10, rawValue);
- } else {
- bitField0_ |= 0x00000004;
- phase_ = rawValue;
- }
- break;
- }
- case 88: {
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- propagateDown_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000100;
- }
- propagateDown_.add(input.readBool());
- break;
- }
- case 90: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
- propagateDown_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000100;
- }
- while (input.getBytesUntilLimit() > 0) {
- propagateDown_.add(input.readBool());
- }
- input.popLimit(limit);
- break;
- }
- case 802: {
- caffe.Caffe.TransformationParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = transformParam_.toBuilder();
- }
- transformParam_ = input.readMessage(caffe.Caffe.TransformationParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(transformParam_);
- transformParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- case 810: {
- caffe.Caffe.LossParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- subBuilder = lossParam_.toBuilder();
- }
- lossParam_ = input.readMessage(caffe.Caffe.LossParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(lossParam_);
- lossParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000010;
- break;
- }
- case 818: {
- caffe.Caffe.AccuracyParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- subBuilder = accuracyParam_.toBuilder();
- }
- accuracyParam_ = input.readMessage(caffe.Caffe.AccuracyParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(accuracyParam_);
- accuracyParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000020;
- break;
- }
- case 826: {
- caffe.Caffe.ArgMaxParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- subBuilder = argmaxParam_.toBuilder();
- }
- argmaxParam_ = input.readMessage(caffe.Caffe.ArgMaxParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(argmaxParam_);
- argmaxParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000040;
- break;
- }
- case 834: {
- caffe.Caffe.ConcatParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- subBuilder = concatParam_.toBuilder();
- }
- concatParam_ = input.readMessage(caffe.Caffe.ConcatParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(concatParam_);
- concatParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000080;
- break;
- }
- case 842: {
- caffe.Caffe.ContrastiveLossParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- subBuilder = contrastiveLossParam_.toBuilder();
- }
- contrastiveLossParam_ = input.readMessage(caffe.Caffe.ContrastiveLossParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(contrastiveLossParam_);
- contrastiveLossParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000100;
- break;
- }
- case 850: {
- caffe.Caffe.ConvolutionParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- subBuilder = convolutionParam_.toBuilder();
- }
- convolutionParam_ = input.readMessage(caffe.Caffe.ConvolutionParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(convolutionParam_);
- convolutionParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000200;
- break;
- }
- case 858: {
- caffe.Caffe.DataParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- subBuilder = dataParam_.toBuilder();
- }
- dataParam_ = input.readMessage(caffe.Caffe.DataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(dataParam_);
- dataParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000400;
- break;
- }
- case 866: {
- caffe.Caffe.DropoutParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- subBuilder = dropoutParam_.toBuilder();
- }
- dropoutParam_ = input.readMessage(caffe.Caffe.DropoutParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(dropoutParam_);
- dropoutParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000800;
- break;
- }
- case 874: {
- caffe.Caffe.DummyDataParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- subBuilder = dummyDataParam_.toBuilder();
- }
- dummyDataParam_ = input.readMessage(caffe.Caffe.DummyDataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(dummyDataParam_);
- dummyDataParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00001000;
- break;
- }
- case 882: {
- caffe.Caffe.EltwiseParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- subBuilder = eltwiseParam_.toBuilder();
- }
- eltwiseParam_ = input.readMessage(caffe.Caffe.EltwiseParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(eltwiseParam_);
- eltwiseParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00002000;
- break;
- }
- case 890: {
- caffe.Caffe.ExpParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00008000) == 0x00008000)) {
- subBuilder = expParam_.toBuilder();
- }
- expParam_ = input.readMessage(caffe.Caffe.ExpParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(expParam_);
- expParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00008000;
- break;
- }
- case 898: {
- caffe.Caffe.HDF5DataParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00020000) == 0x00020000)) {
- subBuilder = hdf5DataParam_.toBuilder();
- }
- hdf5DataParam_ = input.readMessage(caffe.Caffe.HDF5DataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(hdf5DataParam_);
- hdf5DataParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00020000;
- break;
- }
- case 906: {
- caffe.Caffe.HDF5OutputParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
- subBuilder = hdf5OutputParam_.toBuilder();
- }
- hdf5OutputParam_ = input.readMessage(caffe.Caffe.HDF5OutputParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(hdf5OutputParam_);
- hdf5OutputParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00040000;
- break;
- }
- case 914: {
- caffe.Caffe.HingeLossParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00080000) == 0x00080000)) {
- subBuilder = hingeLossParam_.toBuilder();
- }
- hingeLossParam_ = input.readMessage(caffe.Caffe.HingeLossParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(hingeLossParam_);
- hingeLossParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00080000;
- break;
- }
- case 922: {
- caffe.Caffe.ImageDataParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00100000) == 0x00100000)) {
- subBuilder = imageDataParam_.toBuilder();
- }
- imageDataParam_ = input.readMessage(caffe.Caffe.ImageDataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(imageDataParam_);
- imageDataParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00100000;
- break;
- }
- case 930: {
- caffe.Caffe.InfogainLossParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00200000) == 0x00200000)) {
- subBuilder = infogainLossParam_.toBuilder();
- }
- infogainLossParam_ = input.readMessage(caffe.Caffe.InfogainLossParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(infogainLossParam_);
- infogainLossParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00200000;
- break;
- }
- case 938: {
- caffe.Caffe.InnerProductParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00400000) == 0x00400000)) {
- subBuilder = innerProductParam_.toBuilder();
- }
- innerProductParam_ = input.readMessage(caffe.Caffe.InnerProductParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(innerProductParam_);
- innerProductParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00400000;
- break;
- }
- case 946: {
- caffe.Caffe.LRNParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x01000000) == 0x01000000)) {
- subBuilder = lrnParam_.toBuilder();
- }
- lrnParam_ = input.readMessage(caffe.Caffe.LRNParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(lrnParam_);
- lrnParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x01000000;
- break;
- }
- case 954: {
- caffe.Caffe.MemoryDataParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x02000000) == 0x02000000)) {
- subBuilder = memoryDataParam_.toBuilder();
- }
- memoryDataParam_ = input.readMessage(caffe.Caffe.MemoryDataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(memoryDataParam_);
- memoryDataParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x02000000;
- break;
- }
- case 962: {
- caffe.Caffe.MVNParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x04000000) == 0x04000000)) {
- subBuilder = mvnParam_.toBuilder();
- }
- mvnParam_ = input.readMessage(caffe.Caffe.MVNParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(mvnParam_);
- mvnParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x04000000;
- break;
- }
- case 970: {
- caffe.Caffe.PoolingParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x08000000) == 0x08000000)) {
- subBuilder = poolingParam_.toBuilder();
- }
- poolingParam_ = input.readMessage(caffe.Caffe.PoolingParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(poolingParam_);
- poolingParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x08000000;
- break;
- }
- case 978: {
- caffe.Caffe.PowerParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x10000000) == 0x10000000)) {
- subBuilder = powerParam_.toBuilder();
- }
- powerParam_ = input.readMessage(caffe.Caffe.PowerParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(powerParam_);
- powerParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x10000000;
- break;
- }
- case 986: {
- caffe.Caffe.ReLUParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000001) == 0x00000001)) {
- subBuilder = reluParam_.toBuilder();
- }
- reluParam_ = input.readMessage(caffe.Caffe.ReLUParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(reluParam_);
- reluParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000001;
- break;
- }
- case 994: {
- caffe.Caffe.SigmoidParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000004) == 0x00000004)) {
- subBuilder = sigmoidParam_.toBuilder();
- }
- sigmoidParam_ = input.readMessage(caffe.Caffe.SigmoidParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(sigmoidParam_);
- sigmoidParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000004;
- break;
- }
- case 1002: {
- caffe.Caffe.SoftmaxParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000008) == 0x00000008)) {
- subBuilder = softmaxParam_.toBuilder();
- }
- softmaxParam_ = input.readMessage(caffe.Caffe.SoftmaxParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(softmaxParam_);
- softmaxParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000008;
- break;
- }
- case 1010: {
- caffe.Caffe.SliceParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000020) == 0x00000020)) {
- subBuilder = sliceParam_.toBuilder();
- }
- sliceParam_ = input.readMessage(caffe.Caffe.SliceParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(sliceParam_);
- sliceParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000020;
- break;
- }
- case 1018: {
- caffe.Caffe.TanHParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000040) == 0x00000040)) {
- subBuilder = tanhParam_.toBuilder();
- }
- tanhParam_ = input.readMessage(caffe.Caffe.TanHParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(tanhParam_);
- tanhParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000040;
- break;
- }
- case 1026: {
- caffe.Caffe.ThresholdParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000080) == 0x00000080)) {
- subBuilder = thresholdParam_.toBuilder();
- }
- thresholdParam_ = input.readMessage(caffe.Caffe.ThresholdParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(thresholdParam_);
- thresholdParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000080;
- break;
- }
- case 1034: {
- caffe.Caffe.WindowDataParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000200) == 0x00000200)) {
- subBuilder = windowDataParam_.toBuilder();
- }
- windowDataParam_ = input.readMessage(caffe.Caffe.WindowDataParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(windowDataParam_);
- windowDataParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000200;
- break;
- }
- case 1042: {
- caffe.Caffe.PythonParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x40000000) == 0x40000000)) {
- subBuilder = pythonParam_.toBuilder();
- }
- pythonParam_ = input.readMessage(caffe.Caffe.PythonParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(pythonParam_);
- pythonParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x40000000;
- break;
- }
- case 1050: {
- caffe.Caffe.PReLUParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x20000000) == 0x20000000)) {
- subBuilder = preluParam_.toBuilder();
- }
- preluParam_ = input.readMessage(caffe.Caffe.PReLUParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(preluParam_);
- preluParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x20000000;
- break;
- }
- case 1058: {
- caffe.Caffe.SPPParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000010) == 0x00000010)) {
- subBuilder = sppParam_.toBuilder();
- }
- sppParam_ = input.readMessage(caffe.Caffe.SPPParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(sppParam_);
- sppParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000010;
- break;
- }
- case 1066: {
- caffe.Caffe.ReshapeParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000002) == 0x00000002)) {
- subBuilder = reshapeParam_.toBuilder();
- }
- reshapeParam_ = input.readMessage(caffe.Caffe.ReshapeParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(reshapeParam_);
- reshapeParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000002;
- break;
- }
- case 1074: {
- caffe.Caffe.LogParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00800000) == 0x00800000)) {
- subBuilder = logParam_.toBuilder();
- }
- logParam_ = input.readMessage(caffe.Caffe.LogParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(logParam_);
- logParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00800000;
- break;
- }
- case 1082: {
- caffe.Caffe.FlattenParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00010000) == 0x00010000)) {
- subBuilder = flattenParam_.toBuilder();
- }
- flattenParam_ = input.readMessage(caffe.Caffe.FlattenParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(flattenParam_);
- flattenParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00010000;
- break;
- }
- case 1090: {
- caffe.Caffe.ReductionParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x80000000) == 0x80000000)) {
- subBuilder = reductionParam_.toBuilder();
- }
- reductionParam_ = input.readMessage(caffe.Caffe.ReductionParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(reductionParam_);
- reductionParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x80000000;
- break;
- }
- case 1098: {
- caffe.Caffe.EmbedParameter.Builder subBuilder = null;
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- subBuilder = embedParam_.toBuilder();
- }
- embedParam_ = input.readMessage(caffe.Caffe.EmbedParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(embedParam_);
- embedParam_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00004000;
- break;
- }
- case 1106: {
- caffe.Caffe.TileParameter.Builder subBuilder = null;
- if (((bitField1_ & 0x00000100) == 0x00000100)) {
- subBuilder = tileParam_.toBuilder();
- }
- tileParam_ = input.readMessage(caffe.Caffe.TileParameter.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(tileParam_);
- tileParam_ = subBuilder.buildPartial();
- }
- bitField1_ |= 0x00000100;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- bottom_ = bottom_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- top_ = top_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- lossWeight_ = java.util.Collections.unmodifiableList(lossWeight_);
- }
- if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- param_ = java.util.Collections.unmodifiableList(param_);
- }
- if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- blobs_ = java.util.Collections.unmodifiableList(blobs_);
- }
- if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
- include_ = java.util.Collections.unmodifiableList(include_);
- }
- if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- exclude_ = java.util.Collections.unmodifiableList(exclude_);
- }
- if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- propagateDown_ = java.util.Collections.unmodifiableList(propagateDown_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_LayerParameter_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_LayerParameter_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.LayerParameter.class, caffe.Caffe.LayerParameter.Builder.class);
- }
-
- private int bitField0_;
- private int bitField1_;
- public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TYPE_FIELD_NUMBER = 2;
- private volatile java.lang.Object type_;
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- type_ = s;
- }
- return s;
- }
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BOTTOM_FIELD_NUMBER = 3;
- private com.google.protobuf.LazyStringList bottom_;
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public com.google.protobuf.ProtocolStringList
- getBottomList() {
- return bottom_;
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public int getBottomCount() {
- return bottom_.size();
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public java.lang.String getBottom(int index) {
- return bottom_.get(index);
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public com.google.protobuf.ByteString
- getBottomBytes(int index) {
- return bottom_.getByteString(index);
- }
-
- public static final int TOP_FIELD_NUMBER = 4;
- private com.google.protobuf.LazyStringList top_;
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public com.google.protobuf.ProtocolStringList
- getTopList() {
- return top_;
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public int getTopCount() {
- return top_.size();
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public java.lang.String getTop(int index) {
- return top_.get(index);
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public com.google.protobuf.ByteString
- getTopBytes(int index) {
- return top_.getByteString(index);
- }
-
- public static final int PHASE_FIELD_NUMBER = 10;
- private int phase_;
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TRAIN : result;
- }
-
- public static final int LOSS_WEIGHT_FIELD_NUMBER = 5;
- private java.util.List lossWeight_;
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public java.util.List
- getLossWeightList() {
- return lossWeight_;
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public int getLossWeightCount() {
- return lossWeight_.size();
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public float getLossWeight(int index) {
- return lossWeight_.get(index);
- }
-
- public static final int PARAM_FIELD_NUMBER = 6;
- private java.util.List param_;
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public java.util.List getParamList() {
- return param_;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public java.util.List extends caffe.Caffe.ParamSpecOrBuilder>
- getParamOrBuilderList() {
- return param_;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public int getParamCount() {
- return param_.size();
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpec getParam(int index) {
- return param_.get(index);
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpecOrBuilder getParamOrBuilder(
- int index) {
- return param_.get(index);
- }
-
- public static final int BLOBS_FIELD_NUMBER = 7;
- private java.util.List blobs_;
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public java.util.List getBlobsList() {
- return blobs_;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getBlobsOrBuilderList() {
- return blobs_;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public int getBlobsCount() {
- return blobs_.size();
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProto getBlobs(int index) {
- return blobs_.get(index);
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProtoOrBuilder getBlobsOrBuilder(
- int index) {
- return blobs_.get(index);
- }
-
- public static final int PROPAGATE_DOWN_FIELD_NUMBER = 11;
- private java.util.List propagateDown_;
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public java.util.List
- getPropagateDownList() {
- return propagateDown_;
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public int getPropagateDownCount() {
- return propagateDown_.size();
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public boolean getPropagateDown(int index) {
- return propagateDown_.get(index);
- }
-
- public static final int INCLUDE_FIELD_NUMBER = 8;
- private java.util.List include_;
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public java.util.List getIncludeList() {
- return include_;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getIncludeOrBuilderList() {
- return include_;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public int getIncludeCount() {
- return include_.size();
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRule getInclude(int index) {
- return include_.get(index);
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRuleOrBuilder getIncludeOrBuilder(
- int index) {
- return include_.get(index);
- }
-
- public static final int EXCLUDE_FIELD_NUMBER = 9;
- private java.util.List exclude_;
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public java.util.List getExcludeList() {
- return exclude_;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getExcludeOrBuilderList() {
- return exclude_;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public int getExcludeCount() {
- return exclude_.size();
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRule getExclude(int index) {
- return exclude_.get(index);
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRuleOrBuilder getExcludeOrBuilder(
- int index) {
- return exclude_.get(index);
- }
-
- public static final int TRANSFORM_PARAM_FIELD_NUMBER = 100;
- private caffe.Caffe.TransformationParameter transformParam_;
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public boolean hasTransformParam() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public caffe.Caffe.TransformationParameter getTransformParam() {
- return transformParam_ == null ? caffe.Caffe.TransformationParameter.getDefaultInstance() : transformParam_;
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public caffe.Caffe.TransformationParameterOrBuilder getTransformParamOrBuilder() {
- return transformParam_ == null ? caffe.Caffe.TransformationParameter.getDefaultInstance() : transformParam_;
- }
-
- public static final int LOSS_PARAM_FIELD_NUMBER = 101;
- private caffe.Caffe.LossParameter lossParam_;
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public boolean hasLossParam() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public caffe.Caffe.LossParameter getLossParam() {
- return lossParam_ == null ? caffe.Caffe.LossParameter.getDefaultInstance() : lossParam_;
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public caffe.Caffe.LossParameterOrBuilder getLossParamOrBuilder() {
- return lossParam_ == null ? caffe.Caffe.LossParameter.getDefaultInstance() : lossParam_;
- }
-
- public static final int ACCURACY_PARAM_FIELD_NUMBER = 102;
- private caffe.Caffe.AccuracyParameter accuracyParam_;
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public boolean hasAccuracyParam() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public caffe.Caffe.AccuracyParameter getAccuracyParam() {
- return accuracyParam_ == null ? caffe.Caffe.AccuracyParameter.getDefaultInstance() : accuracyParam_;
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public caffe.Caffe.AccuracyParameterOrBuilder getAccuracyParamOrBuilder() {
- return accuracyParam_ == null ? caffe.Caffe.AccuracyParameter.getDefaultInstance() : accuracyParam_;
- }
-
- public static final int ARGMAX_PARAM_FIELD_NUMBER = 103;
- private caffe.Caffe.ArgMaxParameter argmaxParam_;
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public boolean hasArgmaxParam() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public caffe.Caffe.ArgMaxParameter getArgmaxParam() {
- return argmaxParam_ == null ? caffe.Caffe.ArgMaxParameter.getDefaultInstance() : argmaxParam_;
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public caffe.Caffe.ArgMaxParameterOrBuilder getArgmaxParamOrBuilder() {
- return argmaxParam_ == null ? caffe.Caffe.ArgMaxParameter.getDefaultInstance() : argmaxParam_;
- }
-
- public static final int CONCAT_PARAM_FIELD_NUMBER = 104;
- private caffe.Caffe.ConcatParameter concatParam_;
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public boolean hasConcatParam() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public caffe.Caffe.ConcatParameter getConcatParam() {
- return concatParam_ == null ? caffe.Caffe.ConcatParameter.getDefaultInstance() : concatParam_;
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public caffe.Caffe.ConcatParameterOrBuilder getConcatParamOrBuilder() {
- return concatParam_ == null ? caffe.Caffe.ConcatParameter.getDefaultInstance() : concatParam_;
- }
-
- public static final int CONTRASTIVE_LOSS_PARAM_FIELD_NUMBER = 105;
- private caffe.Caffe.ContrastiveLossParameter contrastiveLossParam_;
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public boolean hasContrastiveLossParam() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public caffe.Caffe.ContrastiveLossParameter getContrastiveLossParam() {
- return contrastiveLossParam_ == null ? caffe.Caffe.ContrastiveLossParameter.getDefaultInstance() : contrastiveLossParam_;
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public caffe.Caffe.ContrastiveLossParameterOrBuilder getContrastiveLossParamOrBuilder() {
- return contrastiveLossParam_ == null ? caffe.Caffe.ContrastiveLossParameter.getDefaultInstance() : contrastiveLossParam_;
- }
-
- public static final int CONVOLUTION_PARAM_FIELD_NUMBER = 106;
- private caffe.Caffe.ConvolutionParameter convolutionParam_;
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public boolean hasConvolutionParam() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public caffe.Caffe.ConvolutionParameter getConvolutionParam() {
- return convolutionParam_ == null ? caffe.Caffe.ConvolutionParameter.getDefaultInstance() : convolutionParam_;
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public caffe.Caffe.ConvolutionParameterOrBuilder getConvolutionParamOrBuilder() {
- return convolutionParam_ == null ? caffe.Caffe.ConvolutionParameter.getDefaultInstance() : convolutionParam_;
- }
-
- public static final int DATA_PARAM_FIELD_NUMBER = 107;
- private caffe.Caffe.DataParameter dataParam_;
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public boolean hasDataParam() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public caffe.Caffe.DataParameter getDataParam() {
- return dataParam_ == null ? caffe.Caffe.DataParameter.getDefaultInstance() : dataParam_;
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public caffe.Caffe.DataParameterOrBuilder getDataParamOrBuilder() {
- return dataParam_ == null ? caffe.Caffe.DataParameter.getDefaultInstance() : dataParam_;
- }
-
- public static final int DROPOUT_PARAM_FIELD_NUMBER = 108;
- private caffe.Caffe.DropoutParameter dropoutParam_;
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public boolean hasDropoutParam() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public caffe.Caffe.DropoutParameter getDropoutParam() {
- return dropoutParam_ == null ? caffe.Caffe.DropoutParameter.getDefaultInstance() : dropoutParam_;
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public caffe.Caffe.DropoutParameterOrBuilder getDropoutParamOrBuilder() {
- return dropoutParam_ == null ? caffe.Caffe.DropoutParameter.getDefaultInstance() : dropoutParam_;
- }
-
- public static final int DUMMY_DATA_PARAM_FIELD_NUMBER = 109;
- private caffe.Caffe.DummyDataParameter dummyDataParam_;
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public boolean hasDummyDataParam() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public caffe.Caffe.DummyDataParameter getDummyDataParam() {
- return dummyDataParam_ == null ? caffe.Caffe.DummyDataParameter.getDefaultInstance() : dummyDataParam_;
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public caffe.Caffe.DummyDataParameterOrBuilder getDummyDataParamOrBuilder() {
- return dummyDataParam_ == null ? caffe.Caffe.DummyDataParameter.getDefaultInstance() : dummyDataParam_;
- }
-
- public static final int ELTWISE_PARAM_FIELD_NUMBER = 110;
- private caffe.Caffe.EltwiseParameter eltwiseParam_;
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public boolean hasEltwiseParam() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public caffe.Caffe.EltwiseParameter getEltwiseParam() {
- return eltwiseParam_ == null ? caffe.Caffe.EltwiseParameter.getDefaultInstance() : eltwiseParam_;
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public caffe.Caffe.EltwiseParameterOrBuilder getEltwiseParamOrBuilder() {
- return eltwiseParam_ == null ? caffe.Caffe.EltwiseParameter.getDefaultInstance() : eltwiseParam_;
- }
-
- public static final int EMBED_PARAM_FIELD_NUMBER = 137;
- private caffe.Caffe.EmbedParameter embedParam_;
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public boolean hasEmbedParam() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public caffe.Caffe.EmbedParameter getEmbedParam() {
- return embedParam_ == null ? caffe.Caffe.EmbedParameter.getDefaultInstance() : embedParam_;
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public caffe.Caffe.EmbedParameterOrBuilder getEmbedParamOrBuilder() {
- return embedParam_ == null ? caffe.Caffe.EmbedParameter.getDefaultInstance() : embedParam_;
- }
-
- public static final int EXP_PARAM_FIELD_NUMBER = 111;
- private caffe.Caffe.ExpParameter expParam_;
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public boolean hasExpParam() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public caffe.Caffe.ExpParameter getExpParam() {
- return expParam_ == null ? caffe.Caffe.ExpParameter.getDefaultInstance() : expParam_;
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public caffe.Caffe.ExpParameterOrBuilder getExpParamOrBuilder() {
- return expParam_ == null ? caffe.Caffe.ExpParameter.getDefaultInstance() : expParam_;
- }
-
- public static final int FLATTEN_PARAM_FIELD_NUMBER = 135;
- private caffe.Caffe.FlattenParameter flattenParam_;
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public boolean hasFlattenParam() {
- return ((bitField0_ & 0x00010000) == 0x00010000);
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public caffe.Caffe.FlattenParameter getFlattenParam() {
- return flattenParam_ == null ? caffe.Caffe.FlattenParameter.getDefaultInstance() : flattenParam_;
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public caffe.Caffe.FlattenParameterOrBuilder getFlattenParamOrBuilder() {
- return flattenParam_ == null ? caffe.Caffe.FlattenParameter.getDefaultInstance() : flattenParam_;
- }
-
- public static final int HDF5_DATA_PARAM_FIELD_NUMBER = 112;
- private caffe.Caffe.HDF5DataParameter hdf5DataParam_;
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public boolean hasHdf5DataParam() {
- return ((bitField0_ & 0x00020000) == 0x00020000);
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public caffe.Caffe.HDF5DataParameter getHdf5DataParam() {
- return hdf5DataParam_ == null ? caffe.Caffe.HDF5DataParameter.getDefaultInstance() : hdf5DataParam_;
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public caffe.Caffe.HDF5DataParameterOrBuilder getHdf5DataParamOrBuilder() {
- return hdf5DataParam_ == null ? caffe.Caffe.HDF5DataParameter.getDefaultInstance() : hdf5DataParam_;
- }
-
- public static final int HDF5_OUTPUT_PARAM_FIELD_NUMBER = 113;
- private caffe.Caffe.HDF5OutputParameter hdf5OutputParam_;
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public boolean hasHdf5OutputParam() {
- return ((bitField0_ & 0x00040000) == 0x00040000);
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public caffe.Caffe.HDF5OutputParameter getHdf5OutputParam() {
- return hdf5OutputParam_ == null ? caffe.Caffe.HDF5OutputParameter.getDefaultInstance() : hdf5OutputParam_;
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public caffe.Caffe.HDF5OutputParameterOrBuilder getHdf5OutputParamOrBuilder() {
- return hdf5OutputParam_ == null ? caffe.Caffe.HDF5OutputParameter.getDefaultInstance() : hdf5OutputParam_;
- }
-
- public static final int HINGE_LOSS_PARAM_FIELD_NUMBER = 114;
- private caffe.Caffe.HingeLossParameter hingeLossParam_;
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public boolean hasHingeLossParam() {
- return ((bitField0_ & 0x00080000) == 0x00080000);
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public caffe.Caffe.HingeLossParameter getHingeLossParam() {
- return hingeLossParam_ == null ? caffe.Caffe.HingeLossParameter.getDefaultInstance() : hingeLossParam_;
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public caffe.Caffe.HingeLossParameterOrBuilder getHingeLossParamOrBuilder() {
- return hingeLossParam_ == null ? caffe.Caffe.HingeLossParameter.getDefaultInstance() : hingeLossParam_;
- }
-
- public static final int IMAGE_DATA_PARAM_FIELD_NUMBER = 115;
- private caffe.Caffe.ImageDataParameter imageDataParam_;
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public boolean hasImageDataParam() {
- return ((bitField0_ & 0x00100000) == 0x00100000);
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public caffe.Caffe.ImageDataParameter getImageDataParam() {
- return imageDataParam_ == null ? caffe.Caffe.ImageDataParameter.getDefaultInstance() : imageDataParam_;
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public caffe.Caffe.ImageDataParameterOrBuilder getImageDataParamOrBuilder() {
- return imageDataParam_ == null ? caffe.Caffe.ImageDataParameter.getDefaultInstance() : imageDataParam_;
- }
-
- public static final int INFOGAIN_LOSS_PARAM_FIELD_NUMBER = 116;
- private caffe.Caffe.InfogainLossParameter infogainLossParam_;
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public boolean hasInfogainLossParam() {
- return ((bitField0_ & 0x00200000) == 0x00200000);
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public caffe.Caffe.InfogainLossParameter getInfogainLossParam() {
- return infogainLossParam_ == null ? caffe.Caffe.InfogainLossParameter.getDefaultInstance() : infogainLossParam_;
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public caffe.Caffe.InfogainLossParameterOrBuilder getInfogainLossParamOrBuilder() {
- return infogainLossParam_ == null ? caffe.Caffe.InfogainLossParameter.getDefaultInstance() : infogainLossParam_;
- }
-
- public static final int INNER_PRODUCT_PARAM_FIELD_NUMBER = 117;
- private caffe.Caffe.InnerProductParameter innerProductParam_;
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public boolean hasInnerProductParam() {
- return ((bitField0_ & 0x00400000) == 0x00400000);
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public caffe.Caffe.InnerProductParameter getInnerProductParam() {
- return innerProductParam_ == null ? caffe.Caffe.InnerProductParameter.getDefaultInstance() : innerProductParam_;
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public caffe.Caffe.InnerProductParameterOrBuilder getInnerProductParamOrBuilder() {
- return innerProductParam_ == null ? caffe.Caffe.InnerProductParameter.getDefaultInstance() : innerProductParam_;
- }
-
- public static final int LOG_PARAM_FIELD_NUMBER = 134;
- private caffe.Caffe.LogParameter logParam_;
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public boolean hasLogParam() {
- return ((bitField0_ & 0x00800000) == 0x00800000);
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public caffe.Caffe.LogParameter getLogParam() {
- return logParam_ == null ? caffe.Caffe.LogParameter.getDefaultInstance() : logParam_;
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public caffe.Caffe.LogParameterOrBuilder getLogParamOrBuilder() {
- return logParam_ == null ? caffe.Caffe.LogParameter.getDefaultInstance() : logParam_;
- }
-
- public static final int LRN_PARAM_FIELD_NUMBER = 118;
- private caffe.Caffe.LRNParameter lrnParam_;
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public boolean hasLrnParam() {
- return ((bitField0_ & 0x01000000) == 0x01000000);
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public caffe.Caffe.LRNParameter getLrnParam() {
- return lrnParam_ == null ? caffe.Caffe.LRNParameter.getDefaultInstance() : lrnParam_;
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public caffe.Caffe.LRNParameterOrBuilder getLrnParamOrBuilder() {
- return lrnParam_ == null ? caffe.Caffe.LRNParameter.getDefaultInstance() : lrnParam_;
- }
-
- public static final int MEMORY_DATA_PARAM_FIELD_NUMBER = 119;
- private caffe.Caffe.MemoryDataParameter memoryDataParam_;
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public boolean hasMemoryDataParam() {
- return ((bitField0_ & 0x02000000) == 0x02000000);
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public caffe.Caffe.MemoryDataParameter getMemoryDataParam() {
- return memoryDataParam_ == null ? caffe.Caffe.MemoryDataParameter.getDefaultInstance() : memoryDataParam_;
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public caffe.Caffe.MemoryDataParameterOrBuilder getMemoryDataParamOrBuilder() {
- return memoryDataParam_ == null ? caffe.Caffe.MemoryDataParameter.getDefaultInstance() : memoryDataParam_;
- }
-
- public static final int MVN_PARAM_FIELD_NUMBER = 120;
- private caffe.Caffe.MVNParameter mvnParam_;
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public boolean hasMvnParam() {
- return ((bitField0_ & 0x04000000) == 0x04000000);
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public caffe.Caffe.MVNParameter getMvnParam() {
- return mvnParam_ == null ? caffe.Caffe.MVNParameter.getDefaultInstance() : mvnParam_;
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public caffe.Caffe.MVNParameterOrBuilder getMvnParamOrBuilder() {
- return mvnParam_ == null ? caffe.Caffe.MVNParameter.getDefaultInstance() : mvnParam_;
- }
-
- public static final int POOLING_PARAM_FIELD_NUMBER = 121;
- private caffe.Caffe.PoolingParameter poolingParam_;
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public boolean hasPoolingParam() {
- return ((bitField0_ & 0x08000000) == 0x08000000);
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public caffe.Caffe.PoolingParameter getPoolingParam() {
- return poolingParam_ == null ? caffe.Caffe.PoolingParameter.getDefaultInstance() : poolingParam_;
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public caffe.Caffe.PoolingParameterOrBuilder getPoolingParamOrBuilder() {
- return poolingParam_ == null ? caffe.Caffe.PoolingParameter.getDefaultInstance() : poolingParam_;
- }
-
- public static final int POWER_PARAM_FIELD_NUMBER = 122;
- private caffe.Caffe.PowerParameter powerParam_;
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public boolean hasPowerParam() {
- return ((bitField0_ & 0x10000000) == 0x10000000);
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public caffe.Caffe.PowerParameter getPowerParam() {
- return powerParam_ == null ? caffe.Caffe.PowerParameter.getDefaultInstance() : powerParam_;
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public caffe.Caffe.PowerParameterOrBuilder getPowerParamOrBuilder() {
- return powerParam_ == null ? caffe.Caffe.PowerParameter.getDefaultInstance() : powerParam_;
- }
-
- public static final int PRELU_PARAM_FIELD_NUMBER = 131;
- private caffe.Caffe.PReLUParameter preluParam_;
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public boolean hasPreluParam() {
- return ((bitField0_ & 0x20000000) == 0x20000000);
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public caffe.Caffe.PReLUParameter getPreluParam() {
- return preluParam_ == null ? caffe.Caffe.PReLUParameter.getDefaultInstance() : preluParam_;
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public caffe.Caffe.PReLUParameterOrBuilder getPreluParamOrBuilder() {
- return preluParam_ == null ? caffe.Caffe.PReLUParameter.getDefaultInstance() : preluParam_;
- }
-
- public static final int PYTHON_PARAM_FIELD_NUMBER = 130;
- private caffe.Caffe.PythonParameter pythonParam_;
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public boolean hasPythonParam() {
- return ((bitField0_ & 0x40000000) == 0x40000000);
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public caffe.Caffe.PythonParameter getPythonParam() {
- return pythonParam_ == null ? caffe.Caffe.PythonParameter.getDefaultInstance() : pythonParam_;
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public caffe.Caffe.PythonParameterOrBuilder getPythonParamOrBuilder() {
- return pythonParam_ == null ? caffe.Caffe.PythonParameter.getDefaultInstance() : pythonParam_;
- }
-
- public static final int REDUCTION_PARAM_FIELD_NUMBER = 136;
- private caffe.Caffe.ReductionParameter reductionParam_;
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public boolean hasReductionParam() {
- return ((bitField0_ & 0x80000000) == 0x80000000);
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public caffe.Caffe.ReductionParameter getReductionParam() {
- return reductionParam_ == null ? caffe.Caffe.ReductionParameter.getDefaultInstance() : reductionParam_;
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public caffe.Caffe.ReductionParameterOrBuilder getReductionParamOrBuilder() {
- return reductionParam_ == null ? caffe.Caffe.ReductionParameter.getDefaultInstance() : reductionParam_;
- }
-
- public static final int RELU_PARAM_FIELD_NUMBER = 123;
- private caffe.Caffe.ReLUParameter reluParam_;
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public boolean hasReluParam() {
- return ((bitField1_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public caffe.Caffe.ReLUParameter getReluParam() {
- return reluParam_ == null ? caffe.Caffe.ReLUParameter.getDefaultInstance() : reluParam_;
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public caffe.Caffe.ReLUParameterOrBuilder getReluParamOrBuilder() {
- return reluParam_ == null ? caffe.Caffe.ReLUParameter.getDefaultInstance() : reluParam_;
- }
-
- public static final int RESHAPE_PARAM_FIELD_NUMBER = 133;
- private caffe.Caffe.ReshapeParameter reshapeParam_;
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public boolean hasReshapeParam() {
- return ((bitField1_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public caffe.Caffe.ReshapeParameter getReshapeParam() {
- return reshapeParam_ == null ? caffe.Caffe.ReshapeParameter.getDefaultInstance() : reshapeParam_;
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public caffe.Caffe.ReshapeParameterOrBuilder getReshapeParamOrBuilder() {
- return reshapeParam_ == null ? caffe.Caffe.ReshapeParameter.getDefaultInstance() : reshapeParam_;
- }
-
- public static final int SIGMOID_PARAM_FIELD_NUMBER = 124;
- private caffe.Caffe.SigmoidParameter sigmoidParam_;
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public boolean hasSigmoidParam() {
- return ((bitField1_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public caffe.Caffe.SigmoidParameter getSigmoidParam() {
- return sigmoidParam_ == null ? caffe.Caffe.SigmoidParameter.getDefaultInstance() : sigmoidParam_;
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public caffe.Caffe.SigmoidParameterOrBuilder getSigmoidParamOrBuilder() {
- return sigmoidParam_ == null ? caffe.Caffe.SigmoidParameter.getDefaultInstance() : sigmoidParam_;
- }
-
- public static final int SOFTMAX_PARAM_FIELD_NUMBER = 125;
- private caffe.Caffe.SoftmaxParameter softmaxParam_;
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public boolean hasSoftmaxParam() {
- return ((bitField1_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public caffe.Caffe.SoftmaxParameter getSoftmaxParam() {
- return softmaxParam_ == null ? caffe.Caffe.SoftmaxParameter.getDefaultInstance() : softmaxParam_;
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public caffe.Caffe.SoftmaxParameterOrBuilder getSoftmaxParamOrBuilder() {
- return softmaxParam_ == null ? caffe.Caffe.SoftmaxParameter.getDefaultInstance() : softmaxParam_;
- }
-
- public static final int SPP_PARAM_FIELD_NUMBER = 132;
- private caffe.Caffe.SPPParameter sppParam_;
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public boolean hasSppParam() {
- return ((bitField1_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public caffe.Caffe.SPPParameter getSppParam() {
- return sppParam_ == null ? caffe.Caffe.SPPParameter.getDefaultInstance() : sppParam_;
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public caffe.Caffe.SPPParameterOrBuilder getSppParamOrBuilder() {
- return sppParam_ == null ? caffe.Caffe.SPPParameter.getDefaultInstance() : sppParam_;
- }
-
- public static final int SLICE_PARAM_FIELD_NUMBER = 126;
- private caffe.Caffe.SliceParameter sliceParam_;
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public boolean hasSliceParam() {
- return ((bitField1_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public caffe.Caffe.SliceParameter getSliceParam() {
- return sliceParam_ == null ? caffe.Caffe.SliceParameter.getDefaultInstance() : sliceParam_;
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public caffe.Caffe.SliceParameterOrBuilder getSliceParamOrBuilder() {
- return sliceParam_ == null ? caffe.Caffe.SliceParameter.getDefaultInstance() : sliceParam_;
- }
-
- public static final int TANH_PARAM_FIELD_NUMBER = 127;
- private caffe.Caffe.TanHParameter tanhParam_;
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public boolean hasTanhParam() {
- return ((bitField1_ & 0x00000040) == 0x00000040);
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public caffe.Caffe.TanHParameter getTanhParam() {
- return tanhParam_ == null ? caffe.Caffe.TanHParameter.getDefaultInstance() : tanhParam_;
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public caffe.Caffe.TanHParameterOrBuilder getTanhParamOrBuilder() {
- return tanhParam_ == null ? caffe.Caffe.TanHParameter.getDefaultInstance() : tanhParam_;
- }
-
- public static final int THRESHOLD_PARAM_FIELD_NUMBER = 128;
- private caffe.Caffe.ThresholdParameter thresholdParam_;
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public boolean hasThresholdParam() {
- return ((bitField1_ & 0x00000080) == 0x00000080);
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public caffe.Caffe.ThresholdParameter getThresholdParam() {
- return thresholdParam_ == null ? caffe.Caffe.ThresholdParameter.getDefaultInstance() : thresholdParam_;
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public caffe.Caffe.ThresholdParameterOrBuilder getThresholdParamOrBuilder() {
- return thresholdParam_ == null ? caffe.Caffe.ThresholdParameter.getDefaultInstance() : thresholdParam_;
- }
-
- public static final int TILE_PARAM_FIELD_NUMBER = 138;
- private caffe.Caffe.TileParameter tileParam_;
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public boolean hasTileParam() {
- return ((bitField1_ & 0x00000100) == 0x00000100);
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public caffe.Caffe.TileParameter getTileParam() {
- return tileParam_ == null ? caffe.Caffe.TileParameter.getDefaultInstance() : tileParam_;
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public caffe.Caffe.TileParameterOrBuilder getTileParamOrBuilder() {
- return tileParam_ == null ? caffe.Caffe.TileParameter.getDefaultInstance() : tileParam_;
- }
-
- public static final int WINDOW_DATA_PARAM_FIELD_NUMBER = 129;
- private caffe.Caffe.WindowDataParameter windowDataParam_;
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public boolean hasWindowDataParam() {
- return ((bitField1_ & 0x00000200) == 0x00000200);
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public caffe.Caffe.WindowDataParameter getWindowDataParam() {
- return windowDataParam_ == null ? caffe.Caffe.WindowDataParameter.getDefaultInstance() : windowDataParam_;
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public caffe.Caffe.WindowDataParameterOrBuilder getWindowDataParamOrBuilder() {
- return windowDataParam_ == null ? caffe.Caffe.WindowDataParameter.getDefaultInstance() : windowDataParam_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, type_);
- }
- for (int i = 0; i < bottom_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, bottom_.getRaw(i));
- }
- for (int i = 0; i < top_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, top_.getRaw(i));
- }
- for (int i = 0; i < lossWeight_.size(); i++) {
- output.writeFloat(5, lossWeight_.get(i));
- }
- for (int i = 0; i < param_.size(); i++) {
- output.writeMessage(6, param_.get(i));
- }
- for (int i = 0; i < blobs_.size(); i++) {
- output.writeMessage(7, blobs_.get(i));
- }
- for (int i = 0; i < include_.size(); i++) {
- output.writeMessage(8, include_.get(i));
- }
- for (int i = 0; i < exclude_.size(); i++) {
- output.writeMessage(9, exclude_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(10, phase_);
- }
- for (int i = 0; i < propagateDown_.size(); i++) {
- output.writeBool(11, propagateDown_.get(i));
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(100, getTransformParam());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(101, getLossParam());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeMessage(102, getAccuracyParam());
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeMessage(103, getArgmaxParam());
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(104, getConcatParam());
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeMessage(105, getContrastiveLossParam());
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeMessage(106, getConvolutionParam());
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeMessage(107, getDataParam());
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeMessage(108, getDropoutParam());
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeMessage(109, getDummyDataParam());
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeMessage(110, getEltwiseParam());
- }
- if (((bitField0_ & 0x00008000) == 0x00008000)) {
- output.writeMessage(111, getExpParam());
- }
- if (((bitField0_ & 0x00020000) == 0x00020000)) {
- output.writeMessage(112, getHdf5DataParam());
- }
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
- output.writeMessage(113, getHdf5OutputParam());
- }
- if (((bitField0_ & 0x00080000) == 0x00080000)) {
- output.writeMessage(114, getHingeLossParam());
- }
- if (((bitField0_ & 0x00100000) == 0x00100000)) {
- output.writeMessage(115, getImageDataParam());
- }
- if (((bitField0_ & 0x00200000) == 0x00200000)) {
- output.writeMessage(116, getInfogainLossParam());
- }
- if (((bitField0_ & 0x00400000) == 0x00400000)) {
- output.writeMessage(117, getInnerProductParam());
- }
- if (((bitField0_ & 0x01000000) == 0x01000000)) {
- output.writeMessage(118, getLrnParam());
- }
- if (((bitField0_ & 0x02000000) == 0x02000000)) {
- output.writeMessage(119, getMemoryDataParam());
- }
- if (((bitField0_ & 0x04000000) == 0x04000000)) {
- output.writeMessage(120, getMvnParam());
- }
- if (((bitField0_ & 0x08000000) == 0x08000000)) {
- output.writeMessage(121, getPoolingParam());
- }
- if (((bitField0_ & 0x10000000) == 0x10000000)) {
- output.writeMessage(122, getPowerParam());
- }
- if (((bitField1_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(123, getReluParam());
- }
- if (((bitField1_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(124, getSigmoidParam());
- }
- if (((bitField1_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(125, getSoftmaxParam());
- }
- if (((bitField1_ & 0x00000020) == 0x00000020)) {
- output.writeMessage(126, getSliceParam());
- }
- if (((bitField1_ & 0x00000040) == 0x00000040)) {
- output.writeMessage(127, getTanhParam());
- }
- if (((bitField1_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(128, getThresholdParam());
- }
- if (((bitField1_ & 0x00000200) == 0x00000200)) {
- output.writeMessage(129, getWindowDataParam());
- }
- if (((bitField0_ & 0x40000000) == 0x40000000)) {
- output.writeMessage(130, getPythonParam());
- }
- if (((bitField0_ & 0x20000000) == 0x20000000)) {
- output.writeMessage(131, getPreluParam());
- }
- if (((bitField1_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(132, getSppParam());
- }
- if (((bitField1_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(133, getReshapeParam());
- }
- if (((bitField0_ & 0x00800000) == 0x00800000)) {
- output.writeMessage(134, getLogParam());
- }
- if (((bitField0_ & 0x00010000) == 0x00010000)) {
- output.writeMessage(135, getFlattenParam());
- }
- if (((bitField0_ & 0x80000000) == 0x80000000)) {
- output.writeMessage(136, getReductionParam());
- }
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeMessage(137, getEmbedParam());
- }
- if (((bitField1_ & 0x00000100) == 0x00000100)) {
- output.writeMessage(138, getTileParam());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, type_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < bottom_.size(); i++) {
- dataSize += computeStringSizeNoTag(bottom_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getBottomList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < top_.size(); i++) {
- dataSize += computeStringSizeNoTag(top_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getTopList().size();
- }
- {
- int dataSize = 0;
- dataSize = 4 * getLossWeightList().size();
- size += dataSize;
- size += 1 * getLossWeightList().size();
- }
- for (int i = 0; i < param_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, param_.get(i));
- }
- for (int i = 0; i < blobs_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, blobs_.get(i));
- }
- for (int i = 0; i < include_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, include_.get(i));
- }
- for (int i = 0; i < exclude_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, exclude_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(10, phase_);
- }
- {
- int dataSize = 0;
- dataSize = 1 * getPropagateDownList().size();
- size += dataSize;
- size += 1 * getPropagateDownList().size();
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(100, getTransformParam());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(101, getLossParam());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(102, getAccuracyParam());
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(103, getArgmaxParam());
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(104, getConcatParam());
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(105, getContrastiveLossParam());
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(106, getConvolutionParam());
- }
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(107, getDataParam());
- }
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(108, getDropoutParam());
- }
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(109, getDummyDataParam());
- }
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(110, getEltwiseParam());
- }
- if (((bitField0_ & 0x00008000) == 0x00008000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(111, getExpParam());
- }
- if (((bitField0_ & 0x00020000) == 0x00020000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(112, getHdf5DataParam());
- }
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(113, getHdf5OutputParam());
- }
- if (((bitField0_ & 0x00080000) == 0x00080000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(114, getHingeLossParam());
- }
- if (((bitField0_ & 0x00100000) == 0x00100000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(115, getImageDataParam());
- }
- if (((bitField0_ & 0x00200000) == 0x00200000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(116, getInfogainLossParam());
- }
- if (((bitField0_ & 0x00400000) == 0x00400000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(117, getInnerProductParam());
- }
- if (((bitField0_ & 0x01000000) == 0x01000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(118, getLrnParam());
- }
- if (((bitField0_ & 0x02000000) == 0x02000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(119, getMemoryDataParam());
- }
- if (((bitField0_ & 0x04000000) == 0x04000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(120, getMvnParam());
- }
- if (((bitField0_ & 0x08000000) == 0x08000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(121, getPoolingParam());
- }
- if (((bitField0_ & 0x10000000) == 0x10000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(122, getPowerParam());
- }
- if (((bitField1_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(123, getReluParam());
- }
- if (((bitField1_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(124, getSigmoidParam());
- }
- if (((bitField1_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(125, getSoftmaxParam());
- }
- if (((bitField1_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(126, getSliceParam());
- }
- if (((bitField1_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(127, getTanhParam());
- }
- if (((bitField1_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(128, getThresholdParam());
- }
- if (((bitField1_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(129, getWindowDataParam());
- }
- if (((bitField0_ & 0x40000000) == 0x40000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(130, getPythonParam());
- }
- if (((bitField0_ & 0x20000000) == 0x20000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(131, getPreluParam());
- }
- if (((bitField1_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(132, getSppParam());
- }
- if (((bitField1_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(133, getReshapeParam());
- }
- if (((bitField0_ & 0x00800000) == 0x00800000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(134, getLogParam());
- }
- if (((bitField0_ & 0x00010000) == 0x00010000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(135, getFlattenParam());
- }
- if (((bitField0_ & 0x80000000) == 0x80000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(136, getReductionParam());
- }
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(137, getEmbedParam());
- }
- if (((bitField1_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(138, getTileParam());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static caffe.Caffe.LayerParameter parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.LayerParameter parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.LayerParameter parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static caffe.Caffe.LayerParameter parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static caffe.Caffe.LayerParameter parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.LayerParameter parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.LayerParameter parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static caffe.Caffe.LayerParameter parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static caffe.Caffe.LayerParameter parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static caffe.Caffe.LayerParameter parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(caffe.Caffe.LayerParameter prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code caffe.LayerParameter}
- *
- *
- * NOTE
- * Update the next available ID when you add a new LayerParameter field.
- * LayerParameter next available layer-specific ID: 139 (last added: tile_param)
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:caffe.LayerParameter)
- caffe.Caffe.LayerParameterOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return caffe.Caffe.internal_static_caffe_LayerParameter_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return caffe.Caffe.internal_static_caffe_LayerParameter_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- caffe.Caffe.LayerParameter.class, caffe.Caffe.LayerParameter.Builder.class);
- }
-
- // Construct using caffe.Caffe.LayerParameter.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getParamFieldBuilder();
- getBlobsFieldBuilder();
- getIncludeFieldBuilder();
- getExcludeFieldBuilder();
- getTransformParamFieldBuilder();
- getLossParamFieldBuilder();
- getAccuracyParamFieldBuilder();
- getArgmaxParamFieldBuilder();
- getConcatParamFieldBuilder();
- getContrastiveLossParamFieldBuilder();
- getConvolutionParamFieldBuilder();
- getDataParamFieldBuilder();
- getDropoutParamFieldBuilder();
- getDummyDataParamFieldBuilder();
- getEltwiseParamFieldBuilder();
- getEmbedParamFieldBuilder();
- getExpParamFieldBuilder();
- getFlattenParamFieldBuilder();
- getHdf5DataParamFieldBuilder();
- getHdf5OutputParamFieldBuilder();
- getHingeLossParamFieldBuilder();
- getImageDataParamFieldBuilder();
- getInfogainLossParamFieldBuilder();
- getInnerProductParamFieldBuilder();
- getLogParamFieldBuilder();
- getLrnParamFieldBuilder();
- getMemoryDataParamFieldBuilder();
- getMvnParamFieldBuilder();
- getPoolingParamFieldBuilder();
- getPowerParamFieldBuilder();
- getPreluParamFieldBuilder();
- getPythonParamFieldBuilder();
- getReductionParamFieldBuilder();
- getReluParamFieldBuilder();
- getReshapeParamFieldBuilder();
- getSigmoidParamFieldBuilder();
- getSoftmaxParamFieldBuilder();
- getSppParamFieldBuilder();
- getSliceParamFieldBuilder();
- getTanhParamFieldBuilder();
- getThresholdParamFieldBuilder();
- getTileParamFieldBuilder();
- getWindowDataParamFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- bottom_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- top_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- phase_ = 0;
- bitField0_ = (bitField0_ & ~0x00000010);
- lossWeight_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- if (paramBuilder_ == null) {
- param_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- paramBuilder_.clear();
- }
- if (blobsBuilder_ == null) {
- blobs_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- blobsBuilder_.clear();
- }
- propagateDown_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- if (includeBuilder_ == null) {
- include_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
- } else {
- includeBuilder_.clear();
- }
- if (excludeBuilder_ == null) {
- exclude_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
- } else {
- excludeBuilder_.clear();
- }
- if (transformParamBuilder_ == null) {
- transformParam_ = null;
- } else {
- transformParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000800);
- if (lossParamBuilder_ == null) {
- lossParam_ = null;
- } else {
- lossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00001000);
- if (accuracyParamBuilder_ == null) {
- accuracyParam_ = null;
- } else {
- accuracyParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00002000);
- if (argmaxParamBuilder_ == null) {
- argmaxParam_ = null;
- } else {
- argmaxParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00004000);
- if (concatParamBuilder_ == null) {
- concatParam_ = null;
- } else {
- concatParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00008000);
- if (contrastiveLossParamBuilder_ == null) {
- contrastiveLossParam_ = null;
- } else {
- contrastiveLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00010000);
- if (convolutionParamBuilder_ == null) {
- convolutionParam_ = null;
- } else {
- convolutionParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00020000);
- if (dataParamBuilder_ == null) {
- dataParam_ = null;
- } else {
- dataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00040000);
- if (dropoutParamBuilder_ == null) {
- dropoutParam_ = null;
- } else {
- dropoutParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00080000);
- if (dummyDataParamBuilder_ == null) {
- dummyDataParam_ = null;
- } else {
- dummyDataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00100000);
- if (eltwiseParamBuilder_ == null) {
- eltwiseParam_ = null;
- } else {
- eltwiseParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00200000);
- if (embedParamBuilder_ == null) {
- embedParam_ = null;
- } else {
- embedParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00400000);
- if (expParamBuilder_ == null) {
- expParam_ = null;
- } else {
- expParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00800000);
- if (flattenParamBuilder_ == null) {
- flattenParam_ = null;
- } else {
- flattenParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x01000000);
- if (hdf5DataParamBuilder_ == null) {
- hdf5DataParam_ = null;
- } else {
- hdf5DataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x02000000);
- if (hdf5OutputParamBuilder_ == null) {
- hdf5OutputParam_ = null;
- } else {
- hdf5OutputParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x04000000);
- if (hingeLossParamBuilder_ == null) {
- hingeLossParam_ = null;
- } else {
- hingeLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x08000000);
- if (imageDataParamBuilder_ == null) {
- imageDataParam_ = null;
- } else {
- imageDataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x10000000);
- if (infogainLossParamBuilder_ == null) {
- infogainLossParam_ = null;
- } else {
- infogainLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x20000000);
- if (innerProductParamBuilder_ == null) {
- innerProductParam_ = null;
- } else {
- innerProductParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x40000000);
- if (logParamBuilder_ == null) {
- logParam_ = null;
- } else {
- logParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x80000000);
- if (lrnParamBuilder_ == null) {
- lrnParam_ = null;
- } else {
- lrnParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000001);
- if (memoryDataParamBuilder_ == null) {
- memoryDataParam_ = null;
- } else {
- memoryDataParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000002);
- if (mvnParamBuilder_ == null) {
- mvnParam_ = null;
- } else {
- mvnParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000004);
- if (poolingParamBuilder_ == null) {
- poolingParam_ = null;
- } else {
- poolingParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000008);
- if (powerParamBuilder_ == null) {
- powerParam_ = null;
- } else {
- powerParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000010);
- if (preluParamBuilder_ == null) {
- preluParam_ = null;
- } else {
- preluParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000020);
- if (pythonParamBuilder_ == null) {
- pythonParam_ = null;
- } else {
- pythonParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000040);
- if (reductionParamBuilder_ == null) {
- reductionParam_ = null;
- } else {
- reductionParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000080);
- if (reluParamBuilder_ == null) {
- reluParam_ = null;
- } else {
- reluParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000100);
- if (reshapeParamBuilder_ == null) {
- reshapeParam_ = null;
- } else {
- reshapeParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000200);
- if (sigmoidParamBuilder_ == null) {
- sigmoidParam_ = null;
- } else {
- sigmoidParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000400);
- if (softmaxParamBuilder_ == null) {
- softmaxParam_ = null;
- } else {
- softmaxParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000800);
- if (sppParamBuilder_ == null) {
- sppParam_ = null;
- } else {
- sppParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00001000);
- if (sliceParamBuilder_ == null) {
- sliceParam_ = null;
- } else {
- sliceParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00002000);
- if (tanhParamBuilder_ == null) {
- tanhParam_ = null;
- } else {
- tanhParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00004000);
- if (thresholdParamBuilder_ == null) {
- thresholdParam_ = null;
- } else {
- thresholdParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00008000);
- if (tileParamBuilder_ == null) {
- tileParam_ = null;
- } else {
- tileParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00010000);
- if (windowDataParamBuilder_ == null) {
- windowDataParam_ = null;
- } else {
- windowDataParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00020000);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return caffe.Caffe.internal_static_caffe_LayerParameter_descriptor;
- }
-
- public caffe.Caffe.LayerParameter getDefaultInstanceForType() {
- return caffe.Caffe.LayerParameter.getDefaultInstance();
- }
-
- public caffe.Caffe.LayerParameter build() {
- caffe.Caffe.LayerParameter result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public caffe.Caffe.LayerParameter buildPartial() {
- caffe.Caffe.LayerParameter result = new caffe.Caffe.LayerParameter(this);
- int from_bitField0_ = bitField0_;
- int from_bitField1_ = bitField1_;
- int to_bitField0_ = 0;
- int to_bitField1_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.type_ = type_;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- bottom_ = bottom_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.bottom_ = bottom_;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- top_ = top_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.top_ = top_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000004;
- }
- result.phase_ = phase_;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- lossWeight_ = java.util.Collections.unmodifiableList(lossWeight_);
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.lossWeight_ = lossWeight_;
- if (paramBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- param_ = java.util.Collections.unmodifiableList(param_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.param_ = param_;
- } else {
- result.param_ = paramBuilder_.build();
- }
- if (blobsBuilder_ == null) {
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- blobs_ = java.util.Collections.unmodifiableList(blobs_);
- bitField0_ = (bitField0_ & ~0x00000080);
- }
- result.blobs_ = blobs_;
- } else {
- result.blobs_ = blobsBuilder_.build();
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- propagateDown_ = java.util.Collections.unmodifiableList(propagateDown_);
- bitField0_ = (bitField0_ & ~0x00000100);
- }
- result.propagateDown_ = propagateDown_;
- if (includeBuilder_ == null) {
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- include_ = java.util.Collections.unmodifiableList(include_);
- bitField0_ = (bitField0_ & ~0x00000200);
- }
- result.include_ = include_;
- } else {
- result.include_ = includeBuilder_.build();
- }
- if (excludeBuilder_ == null) {
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- exclude_ = java.util.Collections.unmodifiableList(exclude_);
- bitField0_ = (bitField0_ & ~0x00000400);
- }
- result.exclude_ = exclude_;
- } else {
- result.exclude_ = excludeBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
- to_bitField0_ |= 0x00000008;
- }
- if (transformParamBuilder_ == null) {
- result.transformParam_ = transformParam_;
- } else {
- result.transformParam_ = transformParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
- to_bitField0_ |= 0x00000010;
- }
- if (lossParamBuilder_ == null) {
- result.lossParam_ = lossParam_;
- } else {
- result.lossParam_ = lossParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
- to_bitField0_ |= 0x00000020;
- }
- if (accuracyParamBuilder_ == null) {
- result.accuracyParam_ = accuracyParam_;
- } else {
- result.accuracyParam_ = accuracyParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
- to_bitField0_ |= 0x00000040;
- }
- if (argmaxParamBuilder_ == null) {
- result.argmaxParam_ = argmaxParam_;
- } else {
- result.argmaxParam_ = argmaxParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
- to_bitField0_ |= 0x00000080;
- }
- if (concatParamBuilder_ == null) {
- result.concatParam_ = concatParam_;
- } else {
- result.concatParam_ = concatParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
- to_bitField0_ |= 0x00000100;
- }
- if (contrastiveLossParamBuilder_ == null) {
- result.contrastiveLossParam_ = contrastiveLossParam_;
- } else {
- result.contrastiveLossParam_ = contrastiveLossParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
- to_bitField0_ |= 0x00000200;
- }
- if (convolutionParamBuilder_ == null) {
- result.convolutionParam_ = convolutionParam_;
- } else {
- result.convolutionParam_ = convolutionParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
- to_bitField0_ |= 0x00000400;
- }
- if (dataParamBuilder_ == null) {
- result.dataParam_ = dataParam_;
- } else {
- result.dataParam_ = dataParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
- to_bitField0_ |= 0x00000800;
- }
- if (dropoutParamBuilder_ == null) {
- result.dropoutParam_ = dropoutParam_;
- } else {
- result.dropoutParam_ = dropoutParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
- to_bitField0_ |= 0x00001000;
- }
- if (dummyDataParamBuilder_ == null) {
- result.dummyDataParam_ = dummyDataParam_;
- } else {
- result.dummyDataParam_ = dummyDataParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
- to_bitField0_ |= 0x00002000;
- }
- if (eltwiseParamBuilder_ == null) {
- result.eltwiseParam_ = eltwiseParam_;
- } else {
- result.eltwiseParam_ = eltwiseParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
- to_bitField0_ |= 0x00004000;
- }
- if (embedParamBuilder_ == null) {
- result.embedParam_ = embedParam_;
- } else {
- result.embedParam_ = embedParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
- to_bitField0_ |= 0x00008000;
- }
- if (expParamBuilder_ == null) {
- result.expParam_ = expParam_;
- } else {
- result.expParam_ = expParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
- to_bitField0_ |= 0x00010000;
- }
- if (flattenParamBuilder_ == null) {
- result.flattenParam_ = flattenParam_;
- } else {
- result.flattenParam_ = flattenParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
- to_bitField0_ |= 0x00020000;
- }
- if (hdf5DataParamBuilder_ == null) {
- result.hdf5DataParam_ = hdf5DataParam_;
- } else {
- result.hdf5DataParam_ = hdf5DataParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
- to_bitField0_ |= 0x00040000;
- }
- if (hdf5OutputParamBuilder_ == null) {
- result.hdf5OutputParam_ = hdf5OutputParam_;
- } else {
- result.hdf5OutputParam_ = hdf5OutputParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
- to_bitField0_ |= 0x00080000;
- }
- if (hingeLossParamBuilder_ == null) {
- result.hingeLossParam_ = hingeLossParam_;
- } else {
- result.hingeLossParam_ = hingeLossParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
- to_bitField0_ |= 0x00100000;
- }
- if (imageDataParamBuilder_ == null) {
- result.imageDataParam_ = imageDataParam_;
- } else {
- result.imageDataParam_ = imageDataParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
- to_bitField0_ |= 0x00200000;
- }
- if (infogainLossParamBuilder_ == null) {
- result.infogainLossParam_ = infogainLossParam_;
- } else {
- result.infogainLossParam_ = infogainLossParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
- to_bitField0_ |= 0x00400000;
- }
- if (innerProductParamBuilder_ == null) {
- result.innerProductParam_ = innerProductParam_;
- } else {
- result.innerProductParam_ = innerProductParamBuilder_.build();
- }
- if (((from_bitField0_ & 0x80000000) == 0x80000000)) {
- to_bitField0_ |= 0x00800000;
- }
- if (logParamBuilder_ == null) {
- result.logParam_ = logParam_;
- } else {
- result.logParam_ = logParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x01000000;
- }
- if (lrnParamBuilder_ == null) {
- result.lrnParam_ = lrnParam_;
- } else {
- result.lrnParam_ = lrnParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x02000000;
- }
- if (memoryDataParamBuilder_ == null) {
- result.memoryDataParam_ = memoryDataParam_;
- } else {
- result.memoryDataParam_ = memoryDataParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x04000000;
- }
- if (mvnParamBuilder_ == null) {
- result.mvnParam_ = mvnParam_;
- } else {
- result.mvnParam_ = mvnParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x08000000;
- }
- if (poolingParamBuilder_ == null) {
- result.poolingParam_ = poolingParam_;
- } else {
- result.poolingParam_ = poolingParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x10000000;
- }
- if (powerParamBuilder_ == null) {
- result.powerParam_ = powerParam_;
- } else {
- result.powerParam_ = powerParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x20000000;
- }
- if (preluParamBuilder_ == null) {
- result.preluParam_ = preluParam_;
- } else {
- result.preluParam_ = preluParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x40000000;
- }
- if (pythonParamBuilder_ == null) {
- result.pythonParam_ = pythonParam_;
- } else {
- result.pythonParam_ = pythonParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000080) == 0x00000080)) {
- to_bitField0_ |= 0x80000000;
- }
- if (reductionParamBuilder_ == null) {
- result.reductionParam_ = reductionParam_;
- } else {
- result.reductionParam_ = reductionParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000100) == 0x00000100)) {
- to_bitField1_ |= 0x00000001;
- }
- if (reluParamBuilder_ == null) {
- result.reluParam_ = reluParam_;
- } else {
- result.reluParam_ = reluParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000200) == 0x00000200)) {
- to_bitField1_ |= 0x00000002;
- }
- if (reshapeParamBuilder_ == null) {
- result.reshapeParam_ = reshapeParam_;
- } else {
- result.reshapeParam_ = reshapeParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000400) == 0x00000400)) {
- to_bitField1_ |= 0x00000004;
- }
- if (sigmoidParamBuilder_ == null) {
- result.sigmoidParam_ = sigmoidParam_;
- } else {
- result.sigmoidParam_ = sigmoidParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00000800) == 0x00000800)) {
- to_bitField1_ |= 0x00000008;
- }
- if (softmaxParamBuilder_ == null) {
- result.softmaxParam_ = softmaxParam_;
- } else {
- result.softmaxParam_ = softmaxParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00001000) == 0x00001000)) {
- to_bitField1_ |= 0x00000010;
- }
- if (sppParamBuilder_ == null) {
- result.sppParam_ = sppParam_;
- } else {
- result.sppParam_ = sppParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00002000) == 0x00002000)) {
- to_bitField1_ |= 0x00000020;
- }
- if (sliceParamBuilder_ == null) {
- result.sliceParam_ = sliceParam_;
- } else {
- result.sliceParam_ = sliceParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00004000) == 0x00004000)) {
- to_bitField1_ |= 0x00000040;
- }
- if (tanhParamBuilder_ == null) {
- result.tanhParam_ = tanhParam_;
- } else {
- result.tanhParam_ = tanhParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00008000) == 0x00008000)) {
- to_bitField1_ |= 0x00000080;
- }
- if (thresholdParamBuilder_ == null) {
- result.thresholdParam_ = thresholdParam_;
- } else {
- result.thresholdParam_ = thresholdParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00010000) == 0x00010000)) {
- to_bitField1_ |= 0x00000100;
- }
- if (tileParamBuilder_ == null) {
- result.tileParam_ = tileParam_;
- } else {
- result.tileParam_ = tileParamBuilder_.build();
- }
- if (((from_bitField1_ & 0x00020000) == 0x00020000)) {
- to_bitField1_ |= 0x00000200;
- }
- if (windowDataParamBuilder_ == null) {
- result.windowDataParam_ = windowDataParam_;
- } else {
- result.windowDataParam_ = windowDataParamBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- result.bitField1_ = to_bitField1_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof caffe.Caffe.LayerParameter) {
- return mergeFrom((caffe.Caffe.LayerParameter)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(caffe.Caffe.LayerParameter other) {
- if (other == caffe.Caffe.LayerParameter.getDefaultInstance()) return this;
- if (other.hasName()) {
- bitField0_ |= 0x00000001;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasType()) {
- bitField0_ |= 0x00000002;
- type_ = other.type_;
- onChanged();
- }
- if (!other.bottom_.isEmpty()) {
- if (bottom_.isEmpty()) {
- bottom_ = other.bottom_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureBottomIsMutable();
- bottom_.addAll(other.bottom_);
- }
- onChanged();
- }
- if (!other.top_.isEmpty()) {
- if (top_.isEmpty()) {
- top_ = other.top_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureTopIsMutable();
- top_.addAll(other.top_);
- }
- onChanged();
- }
- if (other.hasPhase()) {
- setPhase(other.getPhase());
- }
- if (!other.lossWeight_.isEmpty()) {
- if (lossWeight_.isEmpty()) {
- lossWeight_ = other.lossWeight_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureLossWeightIsMutable();
- lossWeight_.addAll(other.lossWeight_);
- }
- onChanged();
- }
- if (paramBuilder_ == null) {
- if (!other.param_.isEmpty()) {
- if (param_.isEmpty()) {
- param_ = other.param_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureParamIsMutable();
- param_.addAll(other.param_);
- }
- onChanged();
- }
- } else {
- if (!other.param_.isEmpty()) {
- if (paramBuilder_.isEmpty()) {
- paramBuilder_.dispose();
- paramBuilder_ = null;
- param_ = other.param_;
- bitField0_ = (bitField0_ & ~0x00000040);
- paramBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getParamFieldBuilder() : null;
- } else {
- paramBuilder_.addAllMessages(other.param_);
- }
- }
- }
- if (blobsBuilder_ == null) {
- if (!other.blobs_.isEmpty()) {
- if (blobs_.isEmpty()) {
- blobs_ = other.blobs_;
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- ensureBlobsIsMutable();
- blobs_.addAll(other.blobs_);
- }
- onChanged();
- }
- } else {
- if (!other.blobs_.isEmpty()) {
- if (blobsBuilder_.isEmpty()) {
- blobsBuilder_.dispose();
- blobsBuilder_ = null;
- blobs_ = other.blobs_;
- bitField0_ = (bitField0_ & ~0x00000080);
- blobsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getBlobsFieldBuilder() : null;
- } else {
- blobsBuilder_.addAllMessages(other.blobs_);
- }
- }
- }
- if (!other.propagateDown_.isEmpty()) {
- if (propagateDown_.isEmpty()) {
- propagateDown_ = other.propagateDown_;
- bitField0_ = (bitField0_ & ~0x00000100);
- } else {
- ensurePropagateDownIsMutable();
- propagateDown_.addAll(other.propagateDown_);
- }
- onChanged();
- }
- if (includeBuilder_ == null) {
- if (!other.include_.isEmpty()) {
- if (include_.isEmpty()) {
- include_ = other.include_;
- bitField0_ = (bitField0_ & ~0x00000200);
- } else {
- ensureIncludeIsMutable();
- include_.addAll(other.include_);
- }
- onChanged();
- }
- } else {
- if (!other.include_.isEmpty()) {
- if (includeBuilder_.isEmpty()) {
- includeBuilder_.dispose();
- includeBuilder_ = null;
- include_ = other.include_;
- bitField0_ = (bitField0_ & ~0x00000200);
- includeBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getIncludeFieldBuilder() : null;
- } else {
- includeBuilder_.addAllMessages(other.include_);
- }
- }
- }
- if (excludeBuilder_ == null) {
- if (!other.exclude_.isEmpty()) {
- if (exclude_.isEmpty()) {
- exclude_ = other.exclude_;
- bitField0_ = (bitField0_ & ~0x00000400);
- } else {
- ensureExcludeIsMutable();
- exclude_.addAll(other.exclude_);
- }
- onChanged();
- }
- } else {
- if (!other.exclude_.isEmpty()) {
- if (excludeBuilder_.isEmpty()) {
- excludeBuilder_.dispose();
- excludeBuilder_ = null;
- exclude_ = other.exclude_;
- bitField0_ = (bitField0_ & ~0x00000400);
- excludeBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getExcludeFieldBuilder() : null;
- } else {
- excludeBuilder_.addAllMessages(other.exclude_);
- }
- }
- }
- if (other.hasTransformParam()) {
- mergeTransformParam(other.getTransformParam());
- }
- if (other.hasLossParam()) {
- mergeLossParam(other.getLossParam());
- }
- if (other.hasAccuracyParam()) {
- mergeAccuracyParam(other.getAccuracyParam());
- }
- if (other.hasArgmaxParam()) {
- mergeArgmaxParam(other.getArgmaxParam());
- }
- if (other.hasConcatParam()) {
- mergeConcatParam(other.getConcatParam());
- }
- if (other.hasContrastiveLossParam()) {
- mergeContrastiveLossParam(other.getContrastiveLossParam());
- }
- if (other.hasConvolutionParam()) {
- mergeConvolutionParam(other.getConvolutionParam());
- }
- if (other.hasDataParam()) {
- mergeDataParam(other.getDataParam());
- }
- if (other.hasDropoutParam()) {
- mergeDropoutParam(other.getDropoutParam());
- }
- if (other.hasDummyDataParam()) {
- mergeDummyDataParam(other.getDummyDataParam());
- }
- if (other.hasEltwiseParam()) {
- mergeEltwiseParam(other.getEltwiseParam());
- }
- if (other.hasEmbedParam()) {
- mergeEmbedParam(other.getEmbedParam());
- }
- if (other.hasExpParam()) {
- mergeExpParam(other.getExpParam());
- }
- if (other.hasFlattenParam()) {
- mergeFlattenParam(other.getFlattenParam());
- }
- if (other.hasHdf5DataParam()) {
- mergeHdf5DataParam(other.getHdf5DataParam());
- }
- if (other.hasHdf5OutputParam()) {
- mergeHdf5OutputParam(other.getHdf5OutputParam());
- }
- if (other.hasHingeLossParam()) {
- mergeHingeLossParam(other.getHingeLossParam());
- }
- if (other.hasImageDataParam()) {
- mergeImageDataParam(other.getImageDataParam());
- }
- if (other.hasInfogainLossParam()) {
- mergeInfogainLossParam(other.getInfogainLossParam());
- }
- if (other.hasInnerProductParam()) {
- mergeInnerProductParam(other.getInnerProductParam());
- }
- if (other.hasLogParam()) {
- mergeLogParam(other.getLogParam());
- }
- if (other.hasLrnParam()) {
- mergeLrnParam(other.getLrnParam());
- }
- if (other.hasMemoryDataParam()) {
- mergeMemoryDataParam(other.getMemoryDataParam());
- }
- if (other.hasMvnParam()) {
- mergeMvnParam(other.getMvnParam());
- }
- if (other.hasPoolingParam()) {
- mergePoolingParam(other.getPoolingParam());
- }
- if (other.hasPowerParam()) {
- mergePowerParam(other.getPowerParam());
- }
- if (other.hasPreluParam()) {
- mergePreluParam(other.getPreluParam());
- }
- if (other.hasPythonParam()) {
- mergePythonParam(other.getPythonParam());
- }
- if (other.hasReductionParam()) {
- mergeReductionParam(other.getReductionParam());
- }
- if (other.hasReluParam()) {
- mergeReluParam(other.getReluParam());
- }
- if (other.hasReshapeParam()) {
- mergeReshapeParam(other.getReshapeParam());
- }
- if (other.hasSigmoidParam()) {
- mergeSigmoidParam(other.getSigmoidParam());
- }
- if (other.hasSoftmaxParam()) {
- mergeSoftmaxParam(other.getSoftmaxParam());
- }
- if (other.hasSppParam()) {
- mergeSppParam(other.getSppParam());
- }
- if (other.hasSliceParam()) {
- mergeSliceParam(other.getSliceParam());
- }
- if (other.hasTanhParam()) {
- mergeTanhParam(other.getTanhParam());
- }
- if (other.hasThresholdParam()) {
- mergeThresholdParam(other.getThresholdParam());
- }
- if (other.hasTileParam()) {
- mergeTileParam(other.getTileParam());
- }
- if (other.hasWindowDataParam()) {
- mergeWindowDataParam(other.getWindowDataParam());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- caffe.Caffe.LayerParameter parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (caffe.Caffe.LayerParameter) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private int bitField1_;
-
- private java.lang.Object name_ = "";
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * optional string name = 1;
- *
- *
- * the layer name
- *
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object type_ = "";
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- type_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public Builder setType(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- type_ = getDefaultInstance().getType();
- onChanged();
- return this;
- }
- /**
- * optional string type = 2;
- *
- *
- * the layer type
- *
- */
- public Builder setTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- type_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList bottom_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureBottomIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- bottom_ = new com.google.protobuf.LazyStringArrayList(bottom_);
- bitField0_ |= 0x00000004;
- }
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public com.google.protobuf.ProtocolStringList
- getBottomList() {
- return bottom_.getUnmodifiableView();
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public int getBottomCount() {
- return bottom_.size();
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public java.lang.String getBottom(int index) {
- return bottom_.get(index);
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public com.google.protobuf.ByteString
- getBottomBytes(int index) {
- return bottom_.getByteString(index);
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public Builder setBottom(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBottomIsMutable();
- bottom_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public Builder addBottom(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBottomIsMutable();
- bottom_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public Builder addAllBottom(
- java.lang.Iterable values) {
- ensureBottomIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, bottom_);
- onChanged();
- return this;
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public Builder clearBottom() {
- bottom_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * repeated string bottom = 3;
- *
- *
- * the name of each bottom blob
- *
- */
- public Builder addBottomBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBottomIsMutable();
- bottom_.add(value);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList top_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureTopIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- top_ = new com.google.protobuf.LazyStringArrayList(top_);
- bitField0_ |= 0x00000008;
- }
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public com.google.protobuf.ProtocolStringList
- getTopList() {
- return top_.getUnmodifiableView();
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public int getTopCount() {
- return top_.size();
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public java.lang.String getTop(int index) {
- return top_.get(index);
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public com.google.protobuf.ByteString
- getTopBytes(int index) {
- return top_.getByteString(index);
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public Builder setTop(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTopIsMutable();
- top_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public Builder addTop(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTopIsMutable();
- top_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public Builder addAllTop(
- java.lang.Iterable values) {
- ensureTopIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, top_);
- onChanged();
- return this;
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public Builder clearTop() {
- top_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
- /**
- * repeated string top = 4;
- *
- *
- * the name of each top blob
- *
- */
- public Builder addTopBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTopIsMutable();
- top_.add(value);
- onChanged();
- return this;
- }
-
- private int phase_ = 0;
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public boolean hasPhase() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public caffe.Caffe.Phase getPhase() {
- caffe.Caffe.Phase result = caffe.Caffe.Phase.valueOf(phase_);
- return result == null ? caffe.Caffe.Phase.TRAIN : result;
- }
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public Builder setPhase(caffe.Caffe.Phase value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- phase_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * optional .caffe.Phase phase = 10;
- *
- *
- * The train / test phase for computation.
- *
- */
- public Builder clearPhase() {
- bitField0_ = (bitField0_ & ~0x00000010);
- phase_ = 0;
- onChanged();
- return this;
- }
-
- private java.util.List lossWeight_ = java.util.Collections.emptyList();
- private void ensureLossWeightIsMutable() {
- if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- lossWeight_ = new java.util.ArrayList(lossWeight_);
- bitField0_ |= 0x00000020;
- }
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public java.util.List
- getLossWeightList() {
- return java.util.Collections.unmodifiableList(lossWeight_);
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public int getLossWeightCount() {
- return lossWeight_.size();
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public float getLossWeight(int index) {
- return lossWeight_.get(index);
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public Builder setLossWeight(
- int index, float value) {
- ensureLossWeightIsMutable();
- lossWeight_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public Builder addLossWeight(float value) {
- ensureLossWeightIsMutable();
- lossWeight_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public Builder addAllLossWeight(
- java.lang.Iterable extends java.lang.Float> values) {
- ensureLossWeightIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lossWeight_);
- onChanged();
- return this;
- }
- /**
- * repeated float loss_weight = 5;
- *
- *
- * The amount of weight to assign each top blob in the objective.
- * Each layer assigns a default value, usually of either 0 or 1,
- * to each top blob.
- *
- */
- public Builder clearLossWeight() {
- lossWeight_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
-
- private java.util.List param_ =
- java.util.Collections.emptyList();
- private void ensureParamIsMutable() {
- if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- param_ = new java.util.ArrayList(param_);
- bitField0_ |= 0x00000040;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.ParamSpec, caffe.Caffe.ParamSpec.Builder, caffe.Caffe.ParamSpecOrBuilder> paramBuilder_;
-
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public java.util.List getParamList() {
- if (paramBuilder_ == null) {
- return java.util.Collections.unmodifiableList(param_);
- } else {
- return paramBuilder_.getMessageList();
- }
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public int getParamCount() {
- if (paramBuilder_ == null) {
- return param_.size();
- } else {
- return paramBuilder_.getCount();
- }
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpec getParam(int index) {
- if (paramBuilder_ == null) {
- return param_.get(index);
- } else {
- return paramBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder setParam(
- int index, caffe.Caffe.ParamSpec value) {
- if (paramBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureParamIsMutable();
- param_.set(index, value);
- onChanged();
- } else {
- paramBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder setParam(
- int index, caffe.Caffe.ParamSpec.Builder builderForValue) {
- if (paramBuilder_ == null) {
- ensureParamIsMutable();
- param_.set(index, builderForValue.build());
- onChanged();
- } else {
- paramBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder addParam(caffe.Caffe.ParamSpec value) {
- if (paramBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureParamIsMutable();
- param_.add(value);
- onChanged();
- } else {
- paramBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder addParam(
- int index, caffe.Caffe.ParamSpec value) {
- if (paramBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureParamIsMutable();
- param_.add(index, value);
- onChanged();
- } else {
- paramBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder addParam(
- caffe.Caffe.ParamSpec.Builder builderForValue) {
- if (paramBuilder_ == null) {
- ensureParamIsMutable();
- param_.add(builderForValue.build());
- onChanged();
- } else {
- paramBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder addParam(
- int index, caffe.Caffe.ParamSpec.Builder builderForValue) {
- if (paramBuilder_ == null) {
- ensureParamIsMutable();
- param_.add(index, builderForValue.build());
- onChanged();
- } else {
- paramBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder addAllParam(
- java.lang.Iterable extends caffe.Caffe.ParamSpec> values) {
- if (paramBuilder_ == null) {
- ensureParamIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, param_);
- onChanged();
- } else {
- paramBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder clearParam() {
- if (paramBuilder_ == null) {
- param_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- } else {
- paramBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public Builder removeParam(int index) {
- if (paramBuilder_ == null) {
- ensureParamIsMutable();
- param_.remove(index);
- onChanged();
- } else {
- paramBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpec.Builder getParamBuilder(
- int index) {
- return getParamFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpecOrBuilder getParamOrBuilder(
- int index) {
- if (paramBuilder_ == null) {
- return param_.get(index); } else {
- return paramBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public java.util.List extends caffe.Caffe.ParamSpecOrBuilder>
- getParamOrBuilderList() {
- if (paramBuilder_ != null) {
- return paramBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(param_);
- }
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpec.Builder addParamBuilder() {
- return getParamFieldBuilder().addBuilder(
- caffe.Caffe.ParamSpec.getDefaultInstance());
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public caffe.Caffe.ParamSpec.Builder addParamBuilder(
- int index) {
- return getParamFieldBuilder().addBuilder(
- index, caffe.Caffe.ParamSpec.getDefaultInstance());
- }
- /**
- * repeated .caffe.ParamSpec param = 6;
- *
- *
- * Specifies training parameters (multipliers on global learning constants,
- * and the name and other settings used for weight sharing).
- *
- */
- public java.util.List
- getParamBuilderList() {
- return getParamFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.ParamSpec, caffe.Caffe.ParamSpec.Builder, caffe.Caffe.ParamSpecOrBuilder>
- getParamFieldBuilder() {
- if (paramBuilder_ == null) {
- paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.ParamSpec, caffe.Caffe.ParamSpec.Builder, caffe.Caffe.ParamSpecOrBuilder>(
- param_,
- ((bitField0_ & 0x00000040) == 0x00000040),
- getParentForChildren(),
- isClean());
- param_ = null;
- }
- return paramBuilder_;
- }
-
- private java.util.List blobs_ =
- java.util.Collections.emptyList();
- private void ensureBlobsIsMutable() {
- if (!((bitField0_ & 0x00000080) == 0x00000080)) {
- blobs_ = new java.util.ArrayList(blobs_);
- bitField0_ |= 0x00000080;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder> blobsBuilder_;
-
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public java.util.List getBlobsList() {
- if (blobsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(blobs_);
- } else {
- return blobsBuilder_.getMessageList();
- }
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public int getBlobsCount() {
- if (blobsBuilder_ == null) {
- return blobs_.size();
- } else {
- return blobsBuilder_.getCount();
- }
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProto getBlobs(int index) {
- if (blobsBuilder_ == null) {
- return blobs_.get(index);
- } else {
- return blobsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder setBlobs(
- int index, caffe.Caffe.BlobProto value) {
- if (blobsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBlobsIsMutable();
- blobs_.set(index, value);
- onChanged();
- } else {
- blobsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder setBlobs(
- int index, caffe.Caffe.BlobProto.Builder builderForValue) {
- if (blobsBuilder_ == null) {
- ensureBlobsIsMutable();
- blobs_.set(index, builderForValue.build());
- onChanged();
- } else {
- blobsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder addBlobs(caffe.Caffe.BlobProto value) {
- if (blobsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBlobsIsMutable();
- blobs_.add(value);
- onChanged();
- } else {
- blobsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder addBlobs(
- int index, caffe.Caffe.BlobProto value) {
- if (blobsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBlobsIsMutable();
- blobs_.add(index, value);
- onChanged();
- } else {
- blobsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder addBlobs(
- caffe.Caffe.BlobProto.Builder builderForValue) {
- if (blobsBuilder_ == null) {
- ensureBlobsIsMutable();
- blobs_.add(builderForValue.build());
- onChanged();
- } else {
- blobsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder addBlobs(
- int index, caffe.Caffe.BlobProto.Builder builderForValue) {
- if (blobsBuilder_ == null) {
- ensureBlobsIsMutable();
- blobs_.add(index, builderForValue.build());
- onChanged();
- } else {
- blobsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder addAllBlobs(
- java.lang.Iterable extends caffe.Caffe.BlobProto> values) {
- if (blobsBuilder_ == null) {
- ensureBlobsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, blobs_);
- onChanged();
- } else {
- blobsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder clearBlobs() {
- if (blobsBuilder_ == null) {
- blobs_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
- } else {
- blobsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public Builder removeBlobs(int index) {
- if (blobsBuilder_ == null) {
- ensureBlobsIsMutable();
- blobs_.remove(index);
- onChanged();
- } else {
- blobsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProto.Builder getBlobsBuilder(
- int index) {
- return getBlobsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProtoOrBuilder getBlobsOrBuilder(
- int index) {
- if (blobsBuilder_ == null) {
- return blobs_.get(index); } else {
- return blobsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public java.util.List extends caffe.Caffe.BlobProtoOrBuilder>
- getBlobsOrBuilderList() {
- if (blobsBuilder_ != null) {
- return blobsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(blobs_);
- }
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProto.Builder addBlobsBuilder() {
- return getBlobsFieldBuilder().addBuilder(
- caffe.Caffe.BlobProto.getDefaultInstance());
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public caffe.Caffe.BlobProto.Builder addBlobsBuilder(
- int index) {
- return getBlobsFieldBuilder().addBuilder(
- index, caffe.Caffe.BlobProto.getDefaultInstance());
- }
- /**
- * repeated .caffe.BlobProto blobs = 7;
- *
- *
- * The blobs containing the numeric parameters of the layer.
- *
- */
- public java.util.List
- getBlobsBuilderList() {
- return getBlobsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder>
- getBlobsFieldBuilder() {
- if (blobsBuilder_ == null) {
- blobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.BlobProto, caffe.Caffe.BlobProto.Builder, caffe.Caffe.BlobProtoOrBuilder>(
- blobs_,
- ((bitField0_ & 0x00000080) == 0x00000080),
- getParentForChildren(),
- isClean());
- blobs_ = null;
- }
- return blobsBuilder_;
- }
-
- private java.util.List propagateDown_ = java.util.Collections.emptyList();
- private void ensurePropagateDownIsMutable() {
- if (!((bitField0_ & 0x00000100) == 0x00000100)) {
- propagateDown_ = new java.util.ArrayList(propagateDown_);
- bitField0_ |= 0x00000100;
- }
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public java.util.List
- getPropagateDownList() {
- return java.util.Collections.unmodifiableList(propagateDown_);
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public int getPropagateDownCount() {
- return propagateDown_.size();
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public boolean getPropagateDown(int index) {
- return propagateDown_.get(index);
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public Builder setPropagateDown(
- int index, boolean value) {
- ensurePropagateDownIsMutable();
- propagateDown_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public Builder addPropagateDown(boolean value) {
- ensurePropagateDownIsMutable();
- propagateDown_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public Builder addAllPropagateDown(
- java.lang.Iterable extends java.lang.Boolean> values) {
- ensurePropagateDownIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, propagateDown_);
- onChanged();
- return this;
- }
- /**
- * repeated bool propagate_down = 11;
- *
- *
- * Specifies on which bottoms the backpropagation should be skipped.
- * The size must be either 0 or equal to the number of bottoms.
- *
- */
- public Builder clearPropagateDown() {
- propagateDown_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- onChanged();
- return this;
- }
-
- private java.util.List include_ =
- java.util.Collections.emptyList();
- private void ensureIncludeIsMutable() {
- if (!((bitField0_ & 0x00000200) == 0x00000200)) {
- include_ = new java.util.ArrayList(include_);
- bitField0_ |= 0x00000200;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder> includeBuilder_;
-
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public java.util.List getIncludeList() {
- if (includeBuilder_ == null) {
- return java.util.Collections.unmodifiableList(include_);
- } else {
- return includeBuilder_.getMessageList();
- }
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public int getIncludeCount() {
- if (includeBuilder_ == null) {
- return include_.size();
- } else {
- return includeBuilder_.getCount();
- }
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRule getInclude(int index) {
- if (includeBuilder_ == null) {
- return include_.get(index);
- } else {
- return includeBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder setInclude(
- int index, caffe.Caffe.NetStateRule value) {
- if (includeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIncludeIsMutable();
- include_.set(index, value);
- onChanged();
- } else {
- includeBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder setInclude(
- int index, caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (includeBuilder_ == null) {
- ensureIncludeIsMutable();
- include_.set(index, builderForValue.build());
- onChanged();
- } else {
- includeBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder addInclude(caffe.Caffe.NetStateRule value) {
- if (includeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIncludeIsMutable();
- include_.add(value);
- onChanged();
- } else {
- includeBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder addInclude(
- int index, caffe.Caffe.NetStateRule value) {
- if (includeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIncludeIsMutable();
- include_.add(index, value);
- onChanged();
- } else {
- includeBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder addInclude(
- caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (includeBuilder_ == null) {
- ensureIncludeIsMutable();
- include_.add(builderForValue.build());
- onChanged();
- } else {
- includeBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder addInclude(
- int index, caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (includeBuilder_ == null) {
- ensureIncludeIsMutable();
- include_.add(index, builderForValue.build());
- onChanged();
- } else {
- includeBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder addAllInclude(
- java.lang.Iterable extends caffe.Caffe.NetStateRule> values) {
- if (includeBuilder_ == null) {
- ensureIncludeIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, include_);
- onChanged();
- } else {
- includeBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder clearInclude() {
- if (includeBuilder_ == null) {
- include_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
- onChanged();
- } else {
- includeBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public Builder removeInclude(int index) {
- if (includeBuilder_ == null) {
- ensureIncludeIsMutable();
- include_.remove(index);
- onChanged();
- } else {
- includeBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRule.Builder getIncludeBuilder(
- int index) {
- return getIncludeFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRuleOrBuilder getIncludeOrBuilder(
- int index) {
- if (includeBuilder_ == null) {
- return include_.get(index); } else {
- return includeBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getIncludeOrBuilderList() {
- if (includeBuilder_ != null) {
- return includeBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(include_);
- }
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRule.Builder addIncludeBuilder() {
- return getIncludeFieldBuilder().addBuilder(
- caffe.Caffe.NetStateRule.getDefaultInstance());
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public caffe.Caffe.NetStateRule.Builder addIncludeBuilder(
- int index) {
- return getIncludeFieldBuilder().addBuilder(
- index, caffe.Caffe.NetStateRule.getDefaultInstance());
- }
- /**
- * repeated .caffe.NetStateRule include = 8;
- *
- *
- * Rules controlling whether and when a layer is included in the network,
- * based on the current NetState. You may specify a non-zero number of rules
- * to include OR exclude, but not both. If no include or exclude rules are
- * specified, the layer is always included. If the current NetState meets
- * ANY (i.e., one or more) of the specified rules, the layer is
- * included/excluded.
- *
- */
- public java.util.List
- getIncludeBuilderList() {
- return getIncludeFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder>
- getIncludeFieldBuilder() {
- if (includeBuilder_ == null) {
- includeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder>(
- include_,
- ((bitField0_ & 0x00000200) == 0x00000200),
- getParentForChildren(),
- isClean());
- include_ = null;
- }
- return includeBuilder_;
- }
-
- private java.util.List exclude_ =
- java.util.Collections.emptyList();
- private void ensureExcludeIsMutable() {
- if (!((bitField0_ & 0x00000400) == 0x00000400)) {
- exclude_ = new java.util.ArrayList(exclude_);
- bitField0_ |= 0x00000400;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder> excludeBuilder_;
-
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public java.util.List getExcludeList() {
- if (excludeBuilder_ == null) {
- return java.util.Collections.unmodifiableList(exclude_);
- } else {
- return excludeBuilder_.getMessageList();
- }
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public int getExcludeCount() {
- if (excludeBuilder_ == null) {
- return exclude_.size();
- } else {
- return excludeBuilder_.getCount();
- }
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRule getExclude(int index) {
- if (excludeBuilder_ == null) {
- return exclude_.get(index);
- } else {
- return excludeBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder setExclude(
- int index, caffe.Caffe.NetStateRule value) {
- if (excludeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureExcludeIsMutable();
- exclude_.set(index, value);
- onChanged();
- } else {
- excludeBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder setExclude(
- int index, caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (excludeBuilder_ == null) {
- ensureExcludeIsMutable();
- exclude_.set(index, builderForValue.build());
- onChanged();
- } else {
- excludeBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder addExclude(caffe.Caffe.NetStateRule value) {
- if (excludeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureExcludeIsMutable();
- exclude_.add(value);
- onChanged();
- } else {
- excludeBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder addExclude(
- int index, caffe.Caffe.NetStateRule value) {
- if (excludeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureExcludeIsMutable();
- exclude_.add(index, value);
- onChanged();
- } else {
- excludeBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder addExclude(
- caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (excludeBuilder_ == null) {
- ensureExcludeIsMutable();
- exclude_.add(builderForValue.build());
- onChanged();
- } else {
- excludeBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder addExclude(
- int index, caffe.Caffe.NetStateRule.Builder builderForValue) {
- if (excludeBuilder_ == null) {
- ensureExcludeIsMutable();
- exclude_.add(index, builderForValue.build());
- onChanged();
- } else {
- excludeBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder addAllExclude(
- java.lang.Iterable extends caffe.Caffe.NetStateRule> values) {
- if (excludeBuilder_ == null) {
- ensureExcludeIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, exclude_);
- onChanged();
- } else {
- excludeBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder clearExclude() {
- if (excludeBuilder_ == null) {
- exclude_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
- onChanged();
- } else {
- excludeBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public Builder removeExclude(int index) {
- if (excludeBuilder_ == null) {
- ensureExcludeIsMutable();
- exclude_.remove(index);
- onChanged();
- } else {
- excludeBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRule.Builder getExcludeBuilder(
- int index) {
- return getExcludeFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRuleOrBuilder getExcludeOrBuilder(
- int index) {
- if (excludeBuilder_ == null) {
- return exclude_.get(index); } else {
- return excludeBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public java.util.List extends caffe.Caffe.NetStateRuleOrBuilder>
- getExcludeOrBuilderList() {
- if (excludeBuilder_ != null) {
- return excludeBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(exclude_);
- }
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRule.Builder addExcludeBuilder() {
- return getExcludeFieldBuilder().addBuilder(
- caffe.Caffe.NetStateRule.getDefaultInstance());
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public caffe.Caffe.NetStateRule.Builder addExcludeBuilder(
- int index) {
- return getExcludeFieldBuilder().addBuilder(
- index, caffe.Caffe.NetStateRule.getDefaultInstance());
- }
- /**
- * repeated .caffe.NetStateRule exclude = 9;
- */
- public java.util.List
- getExcludeBuilderList() {
- return getExcludeFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder>
- getExcludeFieldBuilder() {
- if (excludeBuilder_ == null) {
- excludeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- caffe.Caffe.NetStateRule, caffe.Caffe.NetStateRule.Builder, caffe.Caffe.NetStateRuleOrBuilder>(
- exclude_,
- ((bitField0_ & 0x00000400) == 0x00000400),
- getParentForChildren(),
- isClean());
- exclude_ = null;
- }
- return excludeBuilder_;
- }
-
- private caffe.Caffe.TransformationParameter transformParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TransformationParameter, caffe.Caffe.TransformationParameter.Builder, caffe.Caffe.TransformationParameterOrBuilder> transformParamBuilder_;
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public boolean hasTransformParam() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public caffe.Caffe.TransformationParameter getTransformParam() {
- if (transformParamBuilder_ == null) {
- return transformParam_ == null ? caffe.Caffe.TransformationParameter.getDefaultInstance() : transformParam_;
- } else {
- return transformParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public Builder setTransformParam(caffe.Caffe.TransformationParameter value) {
- if (transformParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- transformParam_ = value;
- onChanged();
- } else {
- transformParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public Builder setTransformParam(
- caffe.Caffe.TransformationParameter.Builder builderForValue) {
- if (transformParamBuilder_ == null) {
- transformParam_ = builderForValue.build();
- onChanged();
- } else {
- transformParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public Builder mergeTransformParam(caffe.Caffe.TransformationParameter value) {
- if (transformParamBuilder_ == null) {
- if (((bitField0_ & 0x00000800) == 0x00000800) &&
- transformParam_ != null &&
- transformParam_ != caffe.Caffe.TransformationParameter.getDefaultInstance()) {
- transformParam_ =
- caffe.Caffe.TransformationParameter.newBuilder(transformParam_).mergeFrom(value).buildPartial();
- } else {
- transformParam_ = value;
- }
- onChanged();
- } else {
- transformParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public Builder clearTransformParam() {
- if (transformParamBuilder_ == null) {
- transformParam_ = null;
- onChanged();
- } else {
- transformParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000800);
- return this;
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public caffe.Caffe.TransformationParameter.Builder getTransformParamBuilder() {
- bitField0_ |= 0x00000800;
- onChanged();
- return getTransformParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- public caffe.Caffe.TransformationParameterOrBuilder getTransformParamOrBuilder() {
- if (transformParamBuilder_ != null) {
- return transformParamBuilder_.getMessageOrBuilder();
- } else {
- return transformParam_ == null ?
- caffe.Caffe.TransformationParameter.getDefaultInstance() : transformParam_;
- }
- }
- /**
- * optional .caffe.TransformationParameter transform_param = 100;
- *
- *
- * Parameters for data pre-processing.
- *
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TransformationParameter, caffe.Caffe.TransformationParameter.Builder, caffe.Caffe.TransformationParameterOrBuilder>
- getTransformParamFieldBuilder() {
- if (transformParamBuilder_ == null) {
- transformParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TransformationParameter, caffe.Caffe.TransformationParameter.Builder, caffe.Caffe.TransformationParameterOrBuilder>(
- getTransformParam(),
- getParentForChildren(),
- isClean());
- transformParam_ = null;
- }
- return transformParamBuilder_;
- }
-
- private caffe.Caffe.LossParameter lossParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LossParameter, caffe.Caffe.LossParameter.Builder, caffe.Caffe.LossParameterOrBuilder> lossParamBuilder_;
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public boolean hasLossParam() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public caffe.Caffe.LossParameter getLossParam() {
- if (lossParamBuilder_ == null) {
- return lossParam_ == null ? caffe.Caffe.LossParameter.getDefaultInstance() : lossParam_;
- } else {
- return lossParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public Builder setLossParam(caffe.Caffe.LossParameter value) {
- if (lossParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- lossParam_ = value;
- onChanged();
- } else {
- lossParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public Builder setLossParam(
- caffe.Caffe.LossParameter.Builder builderForValue) {
- if (lossParamBuilder_ == null) {
- lossParam_ = builderForValue.build();
- onChanged();
- } else {
- lossParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public Builder mergeLossParam(caffe.Caffe.LossParameter value) {
- if (lossParamBuilder_ == null) {
- if (((bitField0_ & 0x00001000) == 0x00001000) &&
- lossParam_ != null &&
- lossParam_ != caffe.Caffe.LossParameter.getDefaultInstance()) {
- lossParam_ =
- caffe.Caffe.LossParameter.newBuilder(lossParam_).mergeFrom(value).buildPartial();
- } else {
- lossParam_ = value;
- }
- onChanged();
- } else {
- lossParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public Builder clearLossParam() {
- if (lossParamBuilder_ == null) {
- lossParam_ = null;
- onChanged();
- } else {
- lossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00001000);
- return this;
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public caffe.Caffe.LossParameter.Builder getLossParamBuilder() {
- bitField0_ |= 0x00001000;
- onChanged();
- return getLossParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- public caffe.Caffe.LossParameterOrBuilder getLossParamOrBuilder() {
- if (lossParamBuilder_ != null) {
- return lossParamBuilder_.getMessageOrBuilder();
- } else {
- return lossParam_ == null ?
- caffe.Caffe.LossParameter.getDefaultInstance() : lossParam_;
- }
- }
- /**
- * optional .caffe.LossParameter loss_param = 101;
- *
- *
- * Parameters shared by loss layers.
- *
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LossParameter, caffe.Caffe.LossParameter.Builder, caffe.Caffe.LossParameterOrBuilder>
- getLossParamFieldBuilder() {
- if (lossParamBuilder_ == null) {
- lossParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LossParameter, caffe.Caffe.LossParameter.Builder, caffe.Caffe.LossParameterOrBuilder>(
- getLossParam(),
- getParentForChildren(),
- isClean());
- lossParam_ = null;
- }
- return lossParamBuilder_;
- }
-
- private caffe.Caffe.AccuracyParameter accuracyParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.AccuracyParameter, caffe.Caffe.AccuracyParameter.Builder, caffe.Caffe.AccuracyParameterOrBuilder> accuracyParamBuilder_;
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public boolean hasAccuracyParam() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public caffe.Caffe.AccuracyParameter getAccuracyParam() {
- if (accuracyParamBuilder_ == null) {
- return accuracyParam_ == null ? caffe.Caffe.AccuracyParameter.getDefaultInstance() : accuracyParam_;
- } else {
- return accuracyParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public Builder setAccuracyParam(caffe.Caffe.AccuracyParameter value) {
- if (accuracyParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- accuracyParam_ = value;
- onChanged();
- } else {
- accuracyParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public Builder setAccuracyParam(
- caffe.Caffe.AccuracyParameter.Builder builderForValue) {
- if (accuracyParamBuilder_ == null) {
- accuracyParam_ = builderForValue.build();
- onChanged();
- } else {
- accuracyParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public Builder mergeAccuracyParam(caffe.Caffe.AccuracyParameter value) {
- if (accuracyParamBuilder_ == null) {
- if (((bitField0_ & 0x00002000) == 0x00002000) &&
- accuracyParam_ != null &&
- accuracyParam_ != caffe.Caffe.AccuracyParameter.getDefaultInstance()) {
- accuracyParam_ =
- caffe.Caffe.AccuracyParameter.newBuilder(accuracyParam_).mergeFrom(value).buildPartial();
- } else {
- accuracyParam_ = value;
- }
- onChanged();
- } else {
- accuracyParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public Builder clearAccuracyParam() {
- if (accuracyParamBuilder_ == null) {
- accuracyParam_ = null;
- onChanged();
- } else {
- accuracyParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00002000);
- return this;
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public caffe.Caffe.AccuracyParameter.Builder getAccuracyParamBuilder() {
- bitField0_ |= 0x00002000;
- onChanged();
- return getAccuracyParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- public caffe.Caffe.AccuracyParameterOrBuilder getAccuracyParamOrBuilder() {
- if (accuracyParamBuilder_ != null) {
- return accuracyParamBuilder_.getMessageOrBuilder();
- } else {
- return accuracyParam_ == null ?
- caffe.Caffe.AccuracyParameter.getDefaultInstance() : accuracyParam_;
- }
- }
- /**
- * optional .caffe.AccuracyParameter accuracy_param = 102;
- *
- *
- * Layer type-specific parameters.
- * Note: certain layers may have more than one computational engine
- * for their implementation. These layers include an Engine type and
- * engine parameter for selecting the implementation.
- * The default for the engine is set by the ENGINE switch at compile-time.
- *
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.AccuracyParameter, caffe.Caffe.AccuracyParameter.Builder, caffe.Caffe.AccuracyParameterOrBuilder>
- getAccuracyParamFieldBuilder() {
- if (accuracyParamBuilder_ == null) {
- accuracyParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.AccuracyParameter, caffe.Caffe.AccuracyParameter.Builder, caffe.Caffe.AccuracyParameterOrBuilder>(
- getAccuracyParam(),
- getParentForChildren(),
- isClean());
- accuracyParam_ = null;
- }
- return accuracyParamBuilder_;
- }
-
- private caffe.Caffe.ArgMaxParameter argmaxParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ArgMaxParameter, caffe.Caffe.ArgMaxParameter.Builder, caffe.Caffe.ArgMaxParameterOrBuilder> argmaxParamBuilder_;
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public boolean hasArgmaxParam() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public caffe.Caffe.ArgMaxParameter getArgmaxParam() {
- if (argmaxParamBuilder_ == null) {
- return argmaxParam_ == null ? caffe.Caffe.ArgMaxParameter.getDefaultInstance() : argmaxParam_;
- } else {
- return argmaxParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public Builder setArgmaxParam(caffe.Caffe.ArgMaxParameter value) {
- if (argmaxParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- argmaxParam_ = value;
- onChanged();
- } else {
- argmaxParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public Builder setArgmaxParam(
- caffe.Caffe.ArgMaxParameter.Builder builderForValue) {
- if (argmaxParamBuilder_ == null) {
- argmaxParam_ = builderForValue.build();
- onChanged();
- } else {
- argmaxParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public Builder mergeArgmaxParam(caffe.Caffe.ArgMaxParameter value) {
- if (argmaxParamBuilder_ == null) {
- if (((bitField0_ & 0x00004000) == 0x00004000) &&
- argmaxParam_ != null &&
- argmaxParam_ != caffe.Caffe.ArgMaxParameter.getDefaultInstance()) {
- argmaxParam_ =
- caffe.Caffe.ArgMaxParameter.newBuilder(argmaxParam_).mergeFrom(value).buildPartial();
- } else {
- argmaxParam_ = value;
- }
- onChanged();
- } else {
- argmaxParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public Builder clearArgmaxParam() {
- if (argmaxParamBuilder_ == null) {
- argmaxParam_ = null;
- onChanged();
- } else {
- argmaxParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00004000);
- return this;
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public caffe.Caffe.ArgMaxParameter.Builder getArgmaxParamBuilder() {
- bitField0_ |= 0x00004000;
- onChanged();
- return getArgmaxParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- public caffe.Caffe.ArgMaxParameterOrBuilder getArgmaxParamOrBuilder() {
- if (argmaxParamBuilder_ != null) {
- return argmaxParamBuilder_.getMessageOrBuilder();
- } else {
- return argmaxParam_ == null ?
- caffe.Caffe.ArgMaxParameter.getDefaultInstance() : argmaxParam_;
- }
- }
- /**
- * optional .caffe.ArgMaxParameter argmax_param = 103;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ArgMaxParameter, caffe.Caffe.ArgMaxParameter.Builder, caffe.Caffe.ArgMaxParameterOrBuilder>
- getArgmaxParamFieldBuilder() {
- if (argmaxParamBuilder_ == null) {
- argmaxParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ArgMaxParameter, caffe.Caffe.ArgMaxParameter.Builder, caffe.Caffe.ArgMaxParameterOrBuilder>(
- getArgmaxParam(),
- getParentForChildren(),
- isClean());
- argmaxParam_ = null;
- }
- return argmaxParamBuilder_;
- }
-
- private caffe.Caffe.ConcatParameter concatParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConcatParameter, caffe.Caffe.ConcatParameter.Builder, caffe.Caffe.ConcatParameterOrBuilder> concatParamBuilder_;
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public boolean hasConcatParam() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public caffe.Caffe.ConcatParameter getConcatParam() {
- if (concatParamBuilder_ == null) {
- return concatParam_ == null ? caffe.Caffe.ConcatParameter.getDefaultInstance() : concatParam_;
- } else {
- return concatParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public Builder setConcatParam(caffe.Caffe.ConcatParameter value) {
- if (concatParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- concatParam_ = value;
- onChanged();
- } else {
- concatParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public Builder setConcatParam(
- caffe.Caffe.ConcatParameter.Builder builderForValue) {
- if (concatParamBuilder_ == null) {
- concatParam_ = builderForValue.build();
- onChanged();
- } else {
- concatParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public Builder mergeConcatParam(caffe.Caffe.ConcatParameter value) {
- if (concatParamBuilder_ == null) {
- if (((bitField0_ & 0x00008000) == 0x00008000) &&
- concatParam_ != null &&
- concatParam_ != caffe.Caffe.ConcatParameter.getDefaultInstance()) {
- concatParam_ =
- caffe.Caffe.ConcatParameter.newBuilder(concatParam_).mergeFrom(value).buildPartial();
- } else {
- concatParam_ = value;
- }
- onChanged();
- } else {
- concatParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public Builder clearConcatParam() {
- if (concatParamBuilder_ == null) {
- concatParam_ = null;
- onChanged();
- } else {
- concatParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00008000);
- return this;
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public caffe.Caffe.ConcatParameter.Builder getConcatParamBuilder() {
- bitField0_ |= 0x00008000;
- onChanged();
- return getConcatParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- public caffe.Caffe.ConcatParameterOrBuilder getConcatParamOrBuilder() {
- if (concatParamBuilder_ != null) {
- return concatParamBuilder_.getMessageOrBuilder();
- } else {
- return concatParam_ == null ?
- caffe.Caffe.ConcatParameter.getDefaultInstance() : concatParam_;
- }
- }
- /**
- * optional .caffe.ConcatParameter concat_param = 104;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConcatParameter, caffe.Caffe.ConcatParameter.Builder, caffe.Caffe.ConcatParameterOrBuilder>
- getConcatParamFieldBuilder() {
- if (concatParamBuilder_ == null) {
- concatParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConcatParameter, caffe.Caffe.ConcatParameter.Builder, caffe.Caffe.ConcatParameterOrBuilder>(
- getConcatParam(),
- getParentForChildren(),
- isClean());
- concatParam_ = null;
- }
- return concatParamBuilder_;
- }
-
- private caffe.Caffe.ContrastiveLossParameter contrastiveLossParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ContrastiveLossParameter, caffe.Caffe.ContrastiveLossParameter.Builder, caffe.Caffe.ContrastiveLossParameterOrBuilder> contrastiveLossParamBuilder_;
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public boolean hasContrastiveLossParam() {
- return ((bitField0_ & 0x00010000) == 0x00010000);
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public caffe.Caffe.ContrastiveLossParameter getContrastiveLossParam() {
- if (contrastiveLossParamBuilder_ == null) {
- return contrastiveLossParam_ == null ? caffe.Caffe.ContrastiveLossParameter.getDefaultInstance() : contrastiveLossParam_;
- } else {
- return contrastiveLossParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public Builder setContrastiveLossParam(caffe.Caffe.ContrastiveLossParameter value) {
- if (contrastiveLossParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- contrastiveLossParam_ = value;
- onChanged();
- } else {
- contrastiveLossParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public Builder setContrastiveLossParam(
- caffe.Caffe.ContrastiveLossParameter.Builder builderForValue) {
- if (contrastiveLossParamBuilder_ == null) {
- contrastiveLossParam_ = builderForValue.build();
- onChanged();
- } else {
- contrastiveLossParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public Builder mergeContrastiveLossParam(caffe.Caffe.ContrastiveLossParameter value) {
- if (contrastiveLossParamBuilder_ == null) {
- if (((bitField0_ & 0x00010000) == 0x00010000) &&
- contrastiveLossParam_ != null &&
- contrastiveLossParam_ != caffe.Caffe.ContrastiveLossParameter.getDefaultInstance()) {
- contrastiveLossParam_ =
- caffe.Caffe.ContrastiveLossParameter.newBuilder(contrastiveLossParam_).mergeFrom(value).buildPartial();
- } else {
- contrastiveLossParam_ = value;
- }
- onChanged();
- } else {
- contrastiveLossParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public Builder clearContrastiveLossParam() {
- if (contrastiveLossParamBuilder_ == null) {
- contrastiveLossParam_ = null;
- onChanged();
- } else {
- contrastiveLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00010000);
- return this;
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public caffe.Caffe.ContrastiveLossParameter.Builder getContrastiveLossParamBuilder() {
- bitField0_ |= 0x00010000;
- onChanged();
- return getContrastiveLossParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- public caffe.Caffe.ContrastiveLossParameterOrBuilder getContrastiveLossParamOrBuilder() {
- if (contrastiveLossParamBuilder_ != null) {
- return contrastiveLossParamBuilder_.getMessageOrBuilder();
- } else {
- return contrastiveLossParam_ == null ?
- caffe.Caffe.ContrastiveLossParameter.getDefaultInstance() : contrastiveLossParam_;
- }
- }
- /**
- * optional .caffe.ContrastiveLossParameter contrastive_loss_param = 105;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ContrastiveLossParameter, caffe.Caffe.ContrastiveLossParameter.Builder, caffe.Caffe.ContrastiveLossParameterOrBuilder>
- getContrastiveLossParamFieldBuilder() {
- if (contrastiveLossParamBuilder_ == null) {
- contrastiveLossParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ContrastiveLossParameter, caffe.Caffe.ContrastiveLossParameter.Builder, caffe.Caffe.ContrastiveLossParameterOrBuilder>(
- getContrastiveLossParam(),
- getParentForChildren(),
- isClean());
- contrastiveLossParam_ = null;
- }
- return contrastiveLossParamBuilder_;
- }
-
- private caffe.Caffe.ConvolutionParameter convolutionParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConvolutionParameter, caffe.Caffe.ConvolutionParameter.Builder, caffe.Caffe.ConvolutionParameterOrBuilder> convolutionParamBuilder_;
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public boolean hasConvolutionParam() {
- return ((bitField0_ & 0x00020000) == 0x00020000);
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public caffe.Caffe.ConvolutionParameter getConvolutionParam() {
- if (convolutionParamBuilder_ == null) {
- return convolutionParam_ == null ? caffe.Caffe.ConvolutionParameter.getDefaultInstance() : convolutionParam_;
- } else {
- return convolutionParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public Builder setConvolutionParam(caffe.Caffe.ConvolutionParameter value) {
- if (convolutionParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- convolutionParam_ = value;
- onChanged();
- } else {
- convolutionParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public Builder setConvolutionParam(
- caffe.Caffe.ConvolutionParameter.Builder builderForValue) {
- if (convolutionParamBuilder_ == null) {
- convolutionParam_ = builderForValue.build();
- onChanged();
- } else {
- convolutionParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public Builder mergeConvolutionParam(caffe.Caffe.ConvolutionParameter value) {
- if (convolutionParamBuilder_ == null) {
- if (((bitField0_ & 0x00020000) == 0x00020000) &&
- convolutionParam_ != null &&
- convolutionParam_ != caffe.Caffe.ConvolutionParameter.getDefaultInstance()) {
- convolutionParam_ =
- caffe.Caffe.ConvolutionParameter.newBuilder(convolutionParam_).mergeFrom(value).buildPartial();
- } else {
- convolutionParam_ = value;
- }
- onChanged();
- } else {
- convolutionParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public Builder clearConvolutionParam() {
- if (convolutionParamBuilder_ == null) {
- convolutionParam_ = null;
- onChanged();
- } else {
- convolutionParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00020000);
- return this;
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public caffe.Caffe.ConvolutionParameter.Builder getConvolutionParamBuilder() {
- bitField0_ |= 0x00020000;
- onChanged();
- return getConvolutionParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- public caffe.Caffe.ConvolutionParameterOrBuilder getConvolutionParamOrBuilder() {
- if (convolutionParamBuilder_ != null) {
- return convolutionParamBuilder_.getMessageOrBuilder();
- } else {
- return convolutionParam_ == null ?
- caffe.Caffe.ConvolutionParameter.getDefaultInstance() : convolutionParam_;
- }
- }
- /**
- * optional .caffe.ConvolutionParameter convolution_param = 106;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConvolutionParameter, caffe.Caffe.ConvolutionParameter.Builder, caffe.Caffe.ConvolutionParameterOrBuilder>
- getConvolutionParamFieldBuilder() {
- if (convolutionParamBuilder_ == null) {
- convolutionParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ConvolutionParameter, caffe.Caffe.ConvolutionParameter.Builder, caffe.Caffe.ConvolutionParameterOrBuilder>(
- getConvolutionParam(),
- getParentForChildren(),
- isClean());
- convolutionParam_ = null;
- }
- return convolutionParamBuilder_;
- }
-
- private caffe.Caffe.DataParameter dataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DataParameter, caffe.Caffe.DataParameter.Builder, caffe.Caffe.DataParameterOrBuilder> dataParamBuilder_;
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public boolean hasDataParam() {
- return ((bitField0_ & 0x00040000) == 0x00040000);
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public caffe.Caffe.DataParameter getDataParam() {
- if (dataParamBuilder_ == null) {
- return dataParam_ == null ? caffe.Caffe.DataParameter.getDefaultInstance() : dataParam_;
- } else {
- return dataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public Builder setDataParam(caffe.Caffe.DataParameter value) {
- if (dataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataParam_ = value;
- onChanged();
- } else {
- dataParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00040000;
- return this;
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public Builder setDataParam(
- caffe.Caffe.DataParameter.Builder builderForValue) {
- if (dataParamBuilder_ == null) {
- dataParam_ = builderForValue.build();
- onChanged();
- } else {
- dataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00040000;
- return this;
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public Builder mergeDataParam(caffe.Caffe.DataParameter value) {
- if (dataParamBuilder_ == null) {
- if (((bitField0_ & 0x00040000) == 0x00040000) &&
- dataParam_ != null &&
- dataParam_ != caffe.Caffe.DataParameter.getDefaultInstance()) {
- dataParam_ =
- caffe.Caffe.DataParameter.newBuilder(dataParam_).mergeFrom(value).buildPartial();
- } else {
- dataParam_ = value;
- }
- onChanged();
- } else {
- dataParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00040000;
- return this;
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public Builder clearDataParam() {
- if (dataParamBuilder_ == null) {
- dataParam_ = null;
- onChanged();
- } else {
- dataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00040000);
- return this;
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public caffe.Caffe.DataParameter.Builder getDataParamBuilder() {
- bitField0_ |= 0x00040000;
- onChanged();
- return getDataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- public caffe.Caffe.DataParameterOrBuilder getDataParamOrBuilder() {
- if (dataParamBuilder_ != null) {
- return dataParamBuilder_.getMessageOrBuilder();
- } else {
- return dataParam_ == null ?
- caffe.Caffe.DataParameter.getDefaultInstance() : dataParam_;
- }
- }
- /**
- * optional .caffe.DataParameter data_param = 107;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DataParameter, caffe.Caffe.DataParameter.Builder, caffe.Caffe.DataParameterOrBuilder>
- getDataParamFieldBuilder() {
- if (dataParamBuilder_ == null) {
- dataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DataParameter, caffe.Caffe.DataParameter.Builder, caffe.Caffe.DataParameterOrBuilder>(
- getDataParam(),
- getParentForChildren(),
- isClean());
- dataParam_ = null;
- }
- return dataParamBuilder_;
- }
-
- private caffe.Caffe.DropoutParameter dropoutParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DropoutParameter, caffe.Caffe.DropoutParameter.Builder, caffe.Caffe.DropoutParameterOrBuilder> dropoutParamBuilder_;
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public boolean hasDropoutParam() {
- return ((bitField0_ & 0x00080000) == 0x00080000);
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public caffe.Caffe.DropoutParameter getDropoutParam() {
- if (dropoutParamBuilder_ == null) {
- return dropoutParam_ == null ? caffe.Caffe.DropoutParameter.getDefaultInstance() : dropoutParam_;
- } else {
- return dropoutParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public Builder setDropoutParam(caffe.Caffe.DropoutParameter value) {
- if (dropoutParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dropoutParam_ = value;
- onChanged();
- } else {
- dropoutParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00080000;
- return this;
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public Builder setDropoutParam(
- caffe.Caffe.DropoutParameter.Builder builderForValue) {
- if (dropoutParamBuilder_ == null) {
- dropoutParam_ = builderForValue.build();
- onChanged();
- } else {
- dropoutParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00080000;
- return this;
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public Builder mergeDropoutParam(caffe.Caffe.DropoutParameter value) {
- if (dropoutParamBuilder_ == null) {
- if (((bitField0_ & 0x00080000) == 0x00080000) &&
- dropoutParam_ != null &&
- dropoutParam_ != caffe.Caffe.DropoutParameter.getDefaultInstance()) {
- dropoutParam_ =
- caffe.Caffe.DropoutParameter.newBuilder(dropoutParam_).mergeFrom(value).buildPartial();
- } else {
- dropoutParam_ = value;
- }
- onChanged();
- } else {
- dropoutParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00080000;
- return this;
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public Builder clearDropoutParam() {
- if (dropoutParamBuilder_ == null) {
- dropoutParam_ = null;
- onChanged();
- } else {
- dropoutParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00080000);
- return this;
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public caffe.Caffe.DropoutParameter.Builder getDropoutParamBuilder() {
- bitField0_ |= 0x00080000;
- onChanged();
- return getDropoutParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- public caffe.Caffe.DropoutParameterOrBuilder getDropoutParamOrBuilder() {
- if (dropoutParamBuilder_ != null) {
- return dropoutParamBuilder_.getMessageOrBuilder();
- } else {
- return dropoutParam_ == null ?
- caffe.Caffe.DropoutParameter.getDefaultInstance() : dropoutParam_;
- }
- }
- /**
- * optional .caffe.DropoutParameter dropout_param = 108;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DropoutParameter, caffe.Caffe.DropoutParameter.Builder, caffe.Caffe.DropoutParameterOrBuilder>
- getDropoutParamFieldBuilder() {
- if (dropoutParamBuilder_ == null) {
- dropoutParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DropoutParameter, caffe.Caffe.DropoutParameter.Builder, caffe.Caffe.DropoutParameterOrBuilder>(
- getDropoutParam(),
- getParentForChildren(),
- isClean());
- dropoutParam_ = null;
- }
- return dropoutParamBuilder_;
- }
-
- private caffe.Caffe.DummyDataParameter dummyDataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DummyDataParameter, caffe.Caffe.DummyDataParameter.Builder, caffe.Caffe.DummyDataParameterOrBuilder> dummyDataParamBuilder_;
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public boolean hasDummyDataParam() {
- return ((bitField0_ & 0x00100000) == 0x00100000);
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public caffe.Caffe.DummyDataParameter getDummyDataParam() {
- if (dummyDataParamBuilder_ == null) {
- return dummyDataParam_ == null ? caffe.Caffe.DummyDataParameter.getDefaultInstance() : dummyDataParam_;
- } else {
- return dummyDataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public Builder setDummyDataParam(caffe.Caffe.DummyDataParameter value) {
- if (dummyDataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dummyDataParam_ = value;
- onChanged();
- } else {
- dummyDataParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00100000;
- return this;
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public Builder setDummyDataParam(
- caffe.Caffe.DummyDataParameter.Builder builderForValue) {
- if (dummyDataParamBuilder_ == null) {
- dummyDataParam_ = builderForValue.build();
- onChanged();
- } else {
- dummyDataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00100000;
- return this;
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public Builder mergeDummyDataParam(caffe.Caffe.DummyDataParameter value) {
- if (dummyDataParamBuilder_ == null) {
- if (((bitField0_ & 0x00100000) == 0x00100000) &&
- dummyDataParam_ != null &&
- dummyDataParam_ != caffe.Caffe.DummyDataParameter.getDefaultInstance()) {
- dummyDataParam_ =
- caffe.Caffe.DummyDataParameter.newBuilder(dummyDataParam_).mergeFrom(value).buildPartial();
- } else {
- dummyDataParam_ = value;
- }
- onChanged();
- } else {
- dummyDataParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00100000;
- return this;
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public Builder clearDummyDataParam() {
- if (dummyDataParamBuilder_ == null) {
- dummyDataParam_ = null;
- onChanged();
- } else {
- dummyDataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00100000);
- return this;
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public caffe.Caffe.DummyDataParameter.Builder getDummyDataParamBuilder() {
- bitField0_ |= 0x00100000;
- onChanged();
- return getDummyDataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- public caffe.Caffe.DummyDataParameterOrBuilder getDummyDataParamOrBuilder() {
- if (dummyDataParamBuilder_ != null) {
- return dummyDataParamBuilder_.getMessageOrBuilder();
- } else {
- return dummyDataParam_ == null ?
- caffe.Caffe.DummyDataParameter.getDefaultInstance() : dummyDataParam_;
- }
- }
- /**
- * optional .caffe.DummyDataParameter dummy_data_param = 109;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DummyDataParameter, caffe.Caffe.DummyDataParameter.Builder, caffe.Caffe.DummyDataParameterOrBuilder>
- getDummyDataParamFieldBuilder() {
- if (dummyDataParamBuilder_ == null) {
- dummyDataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.DummyDataParameter, caffe.Caffe.DummyDataParameter.Builder, caffe.Caffe.DummyDataParameterOrBuilder>(
- getDummyDataParam(),
- getParentForChildren(),
- isClean());
- dummyDataParam_ = null;
- }
- return dummyDataParamBuilder_;
- }
-
- private caffe.Caffe.EltwiseParameter eltwiseParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EltwiseParameter, caffe.Caffe.EltwiseParameter.Builder, caffe.Caffe.EltwiseParameterOrBuilder> eltwiseParamBuilder_;
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public boolean hasEltwiseParam() {
- return ((bitField0_ & 0x00200000) == 0x00200000);
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public caffe.Caffe.EltwiseParameter getEltwiseParam() {
- if (eltwiseParamBuilder_ == null) {
- return eltwiseParam_ == null ? caffe.Caffe.EltwiseParameter.getDefaultInstance() : eltwiseParam_;
- } else {
- return eltwiseParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public Builder setEltwiseParam(caffe.Caffe.EltwiseParameter value) {
- if (eltwiseParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- eltwiseParam_ = value;
- onChanged();
- } else {
- eltwiseParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00200000;
- return this;
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public Builder setEltwiseParam(
- caffe.Caffe.EltwiseParameter.Builder builderForValue) {
- if (eltwiseParamBuilder_ == null) {
- eltwiseParam_ = builderForValue.build();
- onChanged();
- } else {
- eltwiseParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00200000;
- return this;
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public Builder mergeEltwiseParam(caffe.Caffe.EltwiseParameter value) {
- if (eltwiseParamBuilder_ == null) {
- if (((bitField0_ & 0x00200000) == 0x00200000) &&
- eltwiseParam_ != null &&
- eltwiseParam_ != caffe.Caffe.EltwiseParameter.getDefaultInstance()) {
- eltwiseParam_ =
- caffe.Caffe.EltwiseParameter.newBuilder(eltwiseParam_).mergeFrom(value).buildPartial();
- } else {
- eltwiseParam_ = value;
- }
- onChanged();
- } else {
- eltwiseParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00200000;
- return this;
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public Builder clearEltwiseParam() {
- if (eltwiseParamBuilder_ == null) {
- eltwiseParam_ = null;
- onChanged();
- } else {
- eltwiseParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00200000);
- return this;
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public caffe.Caffe.EltwiseParameter.Builder getEltwiseParamBuilder() {
- bitField0_ |= 0x00200000;
- onChanged();
- return getEltwiseParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- public caffe.Caffe.EltwiseParameterOrBuilder getEltwiseParamOrBuilder() {
- if (eltwiseParamBuilder_ != null) {
- return eltwiseParamBuilder_.getMessageOrBuilder();
- } else {
- return eltwiseParam_ == null ?
- caffe.Caffe.EltwiseParameter.getDefaultInstance() : eltwiseParam_;
- }
- }
- /**
- * optional .caffe.EltwiseParameter eltwise_param = 110;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EltwiseParameter, caffe.Caffe.EltwiseParameter.Builder, caffe.Caffe.EltwiseParameterOrBuilder>
- getEltwiseParamFieldBuilder() {
- if (eltwiseParamBuilder_ == null) {
- eltwiseParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EltwiseParameter, caffe.Caffe.EltwiseParameter.Builder, caffe.Caffe.EltwiseParameterOrBuilder>(
- getEltwiseParam(),
- getParentForChildren(),
- isClean());
- eltwiseParam_ = null;
- }
- return eltwiseParamBuilder_;
- }
-
- private caffe.Caffe.EmbedParameter embedParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EmbedParameter, caffe.Caffe.EmbedParameter.Builder, caffe.Caffe.EmbedParameterOrBuilder> embedParamBuilder_;
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public boolean hasEmbedParam() {
- return ((bitField0_ & 0x00400000) == 0x00400000);
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public caffe.Caffe.EmbedParameter getEmbedParam() {
- if (embedParamBuilder_ == null) {
- return embedParam_ == null ? caffe.Caffe.EmbedParameter.getDefaultInstance() : embedParam_;
- } else {
- return embedParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public Builder setEmbedParam(caffe.Caffe.EmbedParameter value) {
- if (embedParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- embedParam_ = value;
- onChanged();
- } else {
- embedParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00400000;
- return this;
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public Builder setEmbedParam(
- caffe.Caffe.EmbedParameter.Builder builderForValue) {
- if (embedParamBuilder_ == null) {
- embedParam_ = builderForValue.build();
- onChanged();
- } else {
- embedParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00400000;
- return this;
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public Builder mergeEmbedParam(caffe.Caffe.EmbedParameter value) {
- if (embedParamBuilder_ == null) {
- if (((bitField0_ & 0x00400000) == 0x00400000) &&
- embedParam_ != null &&
- embedParam_ != caffe.Caffe.EmbedParameter.getDefaultInstance()) {
- embedParam_ =
- caffe.Caffe.EmbedParameter.newBuilder(embedParam_).mergeFrom(value).buildPartial();
- } else {
- embedParam_ = value;
- }
- onChanged();
- } else {
- embedParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00400000;
- return this;
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public Builder clearEmbedParam() {
- if (embedParamBuilder_ == null) {
- embedParam_ = null;
- onChanged();
- } else {
- embedParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00400000);
- return this;
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public caffe.Caffe.EmbedParameter.Builder getEmbedParamBuilder() {
- bitField0_ |= 0x00400000;
- onChanged();
- return getEmbedParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- public caffe.Caffe.EmbedParameterOrBuilder getEmbedParamOrBuilder() {
- if (embedParamBuilder_ != null) {
- return embedParamBuilder_.getMessageOrBuilder();
- } else {
- return embedParam_ == null ?
- caffe.Caffe.EmbedParameter.getDefaultInstance() : embedParam_;
- }
- }
- /**
- * optional .caffe.EmbedParameter embed_param = 137;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EmbedParameter, caffe.Caffe.EmbedParameter.Builder, caffe.Caffe.EmbedParameterOrBuilder>
- getEmbedParamFieldBuilder() {
- if (embedParamBuilder_ == null) {
- embedParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.EmbedParameter, caffe.Caffe.EmbedParameter.Builder, caffe.Caffe.EmbedParameterOrBuilder>(
- getEmbedParam(),
- getParentForChildren(),
- isClean());
- embedParam_ = null;
- }
- return embedParamBuilder_;
- }
-
- private caffe.Caffe.ExpParameter expParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ExpParameter, caffe.Caffe.ExpParameter.Builder, caffe.Caffe.ExpParameterOrBuilder> expParamBuilder_;
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public boolean hasExpParam() {
- return ((bitField0_ & 0x00800000) == 0x00800000);
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public caffe.Caffe.ExpParameter getExpParam() {
- if (expParamBuilder_ == null) {
- return expParam_ == null ? caffe.Caffe.ExpParameter.getDefaultInstance() : expParam_;
- } else {
- return expParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public Builder setExpParam(caffe.Caffe.ExpParameter value) {
- if (expParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- expParam_ = value;
- onChanged();
- } else {
- expParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00800000;
- return this;
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public Builder setExpParam(
- caffe.Caffe.ExpParameter.Builder builderForValue) {
- if (expParamBuilder_ == null) {
- expParam_ = builderForValue.build();
- onChanged();
- } else {
- expParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00800000;
- return this;
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public Builder mergeExpParam(caffe.Caffe.ExpParameter value) {
- if (expParamBuilder_ == null) {
- if (((bitField0_ & 0x00800000) == 0x00800000) &&
- expParam_ != null &&
- expParam_ != caffe.Caffe.ExpParameter.getDefaultInstance()) {
- expParam_ =
- caffe.Caffe.ExpParameter.newBuilder(expParam_).mergeFrom(value).buildPartial();
- } else {
- expParam_ = value;
- }
- onChanged();
- } else {
- expParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00800000;
- return this;
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public Builder clearExpParam() {
- if (expParamBuilder_ == null) {
- expParam_ = null;
- onChanged();
- } else {
- expParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00800000);
- return this;
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public caffe.Caffe.ExpParameter.Builder getExpParamBuilder() {
- bitField0_ |= 0x00800000;
- onChanged();
- return getExpParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- public caffe.Caffe.ExpParameterOrBuilder getExpParamOrBuilder() {
- if (expParamBuilder_ != null) {
- return expParamBuilder_.getMessageOrBuilder();
- } else {
- return expParam_ == null ?
- caffe.Caffe.ExpParameter.getDefaultInstance() : expParam_;
- }
- }
- /**
- * optional .caffe.ExpParameter exp_param = 111;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ExpParameter, caffe.Caffe.ExpParameter.Builder, caffe.Caffe.ExpParameterOrBuilder>
- getExpParamFieldBuilder() {
- if (expParamBuilder_ == null) {
- expParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ExpParameter, caffe.Caffe.ExpParameter.Builder, caffe.Caffe.ExpParameterOrBuilder>(
- getExpParam(),
- getParentForChildren(),
- isClean());
- expParam_ = null;
- }
- return expParamBuilder_;
- }
-
- private caffe.Caffe.FlattenParameter flattenParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.FlattenParameter, caffe.Caffe.FlattenParameter.Builder, caffe.Caffe.FlattenParameterOrBuilder> flattenParamBuilder_;
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public boolean hasFlattenParam() {
- return ((bitField0_ & 0x01000000) == 0x01000000);
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public caffe.Caffe.FlattenParameter getFlattenParam() {
- if (flattenParamBuilder_ == null) {
- return flattenParam_ == null ? caffe.Caffe.FlattenParameter.getDefaultInstance() : flattenParam_;
- } else {
- return flattenParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public Builder setFlattenParam(caffe.Caffe.FlattenParameter value) {
- if (flattenParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- flattenParam_ = value;
- onChanged();
- } else {
- flattenParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x01000000;
- return this;
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public Builder setFlattenParam(
- caffe.Caffe.FlattenParameter.Builder builderForValue) {
- if (flattenParamBuilder_ == null) {
- flattenParam_ = builderForValue.build();
- onChanged();
- } else {
- flattenParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x01000000;
- return this;
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public Builder mergeFlattenParam(caffe.Caffe.FlattenParameter value) {
- if (flattenParamBuilder_ == null) {
- if (((bitField0_ & 0x01000000) == 0x01000000) &&
- flattenParam_ != null &&
- flattenParam_ != caffe.Caffe.FlattenParameter.getDefaultInstance()) {
- flattenParam_ =
- caffe.Caffe.FlattenParameter.newBuilder(flattenParam_).mergeFrom(value).buildPartial();
- } else {
- flattenParam_ = value;
- }
- onChanged();
- } else {
- flattenParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x01000000;
- return this;
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public Builder clearFlattenParam() {
- if (flattenParamBuilder_ == null) {
- flattenParam_ = null;
- onChanged();
- } else {
- flattenParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x01000000);
- return this;
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public caffe.Caffe.FlattenParameter.Builder getFlattenParamBuilder() {
- bitField0_ |= 0x01000000;
- onChanged();
- return getFlattenParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- public caffe.Caffe.FlattenParameterOrBuilder getFlattenParamOrBuilder() {
- if (flattenParamBuilder_ != null) {
- return flattenParamBuilder_.getMessageOrBuilder();
- } else {
- return flattenParam_ == null ?
- caffe.Caffe.FlattenParameter.getDefaultInstance() : flattenParam_;
- }
- }
- /**
- * optional .caffe.FlattenParameter flatten_param = 135;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.FlattenParameter, caffe.Caffe.FlattenParameter.Builder, caffe.Caffe.FlattenParameterOrBuilder>
- getFlattenParamFieldBuilder() {
- if (flattenParamBuilder_ == null) {
- flattenParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.FlattenParameter, caffe.Caffe.FlattenParameter.Builder, caffe.Caffe.FlattenParameterOrBuilder>(
- getFlattenParam(),
- getParentForChildren(),
- isClean());
- flattenParam_ = null;
- }
- return flattenParamBuilder_;
- }
-
- private caffe.Caffe.HDF5DataParameter hdf5DataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5DataParameter, caffe.Caffe.HDF5DataParameter.Builder, caffe.Caffe.HDF5DataParameterOrBuilder> hdf5DataParamBuilder_;
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public boolean hasHdf5DataParam() {
- return ((bitField0_ & 0x02000000) == 0x02000000);
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public caffe.Caffe.HDF5DataParameter getHdf5DataParam() {
- if (hdf5DataParamBuilder_ == null) {
- return hdf5DataParam_ == null ? caffe.Caffe.HDF5DataParameter.getDefaultInstance() : hdf5DataParam_;
- } else {
- return hdf5DataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public Builder setHdf5DataParam(caffe.Caffe.HDF5DataParameter value) {
- if (hdf5DataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- hdf5DataParam_ = value;
- onChanged();
- } else {
- hdf5DataParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x02000000;
- return this;
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public Builder setHdf5DataParam(
- caffe.Caffe.HDF5DataParameter.Builder builderForValue) {
- if (hdf5DataParamBuilder_ == null) {
- hdf5DataParam_ = builderForValue.build();
- onChanged();
- } else {
- hdf5DataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x02000000;
- return this;
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public Builder mergeHdf5DataParam(caffe.Caffe.HDF5DataParameter value) {
- if (hdf5DataParamBuilder_ == null) {
- if (((bitField0_ & 0x02000000) == 0x02000000) &&
- hdf5DataParam_ != null &&
- hdf5DataParam_ != caffe.Caffe.HDF5DataParameter.getDefaultInstance()) {
- hdf5DataParam_ =
- caffe.Caffe.HDF5DataParameter.newBuilder(hdf5DataParam_).mergeFrom(value).buildPartial();
- } else {
- hdf5DataParam_ = value;
- }
- onChanged();
- } else {
- hdf5DataParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x02000000;
- return this;
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public Builder clearHdf5DataParam() {
- if (hdf5DataParamBuilder_ == null) {
- hdf5DataParam_ = null;
- onChanged();
- } else {
- hdf5DataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x02000000);
- return this;
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public caffe.Caffe.HDF5DataParameter.Builder getHdf5DataParamBuilder() {
- bitField0_ |= 0x02000000;
- onChanged();
- return getHdf5DataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- public caffe.Caffe.HDF5DataParameterOrBuilder getHdf5DataParamOrBuilder() {
- if (hdf5DataParamBuilder_ != null) {
- return hdf5DataParamBuilder_.getMessageOrBuilder();
- } else {
- return hdf5DataParam_ == null ?
- caffe.Caffe.HDF5DataParameter.getDefaultInstance() : hdf5DataParam_;
- }
- }
- /**
- * optional .caffe.HDF5DataParameter hdf5_data_param = 112;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5DataParameter, caffe.Caffe.HDF5DataParameter.Builder, caffe.Caffe.HDF5DataParameterOrBuilder>
- getHdf5DataParamFieldBuilder() {
- if (hdf5DataParamBuilder_ == null) {
- hdf5DataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5DataParameter, caffe.Caffe.HDF5DataParameter.Builder, caffe.Caffe.HDF5DataParameterOrBuilder>(
- getHdf5DataParam(),
- getParentForChildren(),
- isClean());
- hdf5DataParam_ = null;
- }
- return hdf5DataParamBuilder_;
- }
-
- private caffe.Caffe.HDF5OutputParameter hdf5OutputParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5OutputParameter, caffe.Caffe.HDF5OutputParameter.Builder, caffe.Caffe.HDF5OutputParameterOrBuilder> hdf5OutputParamBuilder_;
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public boolean hasHdf5OutputParam() {
- return ((bitField0_ & 0x04000000) == 0x04000000);
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public caffe.Caffe.HDF5OutputParameter getHdf5OutputParam() {
- if (hdf5OutputParamBuilder_ == null) {
- return hdf5OutputParam_ == null ? caffe.Caffe.HDF5OutputParameter.getDefaultInstance() : hdf5OutputParam_;
- } else {
- return hdf5OutputParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public Builder setHdf5OutputParam(caffe.Caffe.HDF5OutputParameter value) {
- if (hdf5OutputParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- hdf5OutputParam_ = value;
- onChanged();
- } else {
- hdf5OutputParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x04000000;
- return this;
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public Builder setHdf5OutputParam(
- caffe.Caffe.HDF5OutputParameter.Builder builderForValue) {
- if (hdf5OutputParamBuilder_ == null) {
- hdf5OutputParam_ = builderForValue.build();
- onChanged();
- } else {
- hdf5OutputParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x04000000;
- return this;
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public Builder mergeHdf5OutputParam(caffe.Caffe.HDF5OutputParameter value) {
- if (hdf5OutputParamBuilder_ == null) {
- if (((bitField0_ & 0x04000000) == 0x04000000) &&
- hdf5OutputParam_ != null &&
- hdf5OutputParam_ != caffe.Caffe.HDF5OutputParameter.getDefaultInstance()) {
- hdf5OutputParam_ =
- caffe.Caffe.HDF5OutputParameter.newBuilder(hdf5OutputParam_).mergeFrom(value).buildPartial();
- } else {
- hdf5OutputParam_ = value;
- }
- onChanged();
- } else {
- hdf5OutputParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x04000000;
- return this;
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public Builder clearHdf5OutputParam() {
- if (hdf5OutputParamBuilder_ == null) {
- hdf5OutputParam_ = null;
- onChanged();
- } else {
- hdf5OutputParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x04000000);
- return this;
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public caffe.Caffe.HDF5OutputParameter.Builder getHdf5OutputParamBuilder() {
- bitField0_ |= 0x04000000;
- onChanged();
- return getHdf5OutputParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- public caffe.Caffe.HDF5OutputParameterOrBuilder getHdf5OutputParamOrBuilder() {
- if (hdf5OutputParamBuilder_ != null) {
- return hdf5OutputParamBuilder_.getMessageOrBuilder();
- } else {
- return hdf5OutputParam_ == null ?
- caffe.Caffe.HDF5OutputParameter.getDefaultInstance() : hdf5OutputParam_;
- }
- }
- /**
- * optional .caffe.HDF5OutputParameter hdf5_output_param = 113;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5OutputParameter, caffe.Caffe.HDF5OutputParameter.Builder, caffe.Caffe.HDF5OutputParameterOrBuilder>
- getHdf5OutputParamFieldBuilder() {
- if (hdf5OutputParamBuilder_ == null) {
- hdf5OutputParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HDF5OutputParameter, caffe.Caffe.HDF5OutputParameter.Builder, caffe.Caffe.HDF5OutputParameterOrBuilder>(
- getHdf5OutputParam(),
- getParentForChildren(),
- isClean());
- hdf5OutputParam_ = null;
- }
- return hdf5OutputParamBuilder_;
- }
-
- private caffe.Caffe.HingeLossParameter hingeLossParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HingeLossParameter, caffe.Caffe.HingeLossParameter.Builder, caffe.Caffe.HingeLossParameterOrBuilder> hingeLossParamBuilder_;
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public boolean hasHingeLossParam() {
- return ((bitField0_ & 0x08000000) == 0x08000000);
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public caffe.Caffe.HingeLossParameter getHingeLossParam() {
- if (hingeLossParamBuilder_ == null) {
- return hingeLossParam_ == null ? caffe.Caffe.HingeLossParameter.getDefaultInstance() : hingeLossParam_;
- } else {
- return hingeLossParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public Builder setHingeLossParam(caffe.Caffe.HingeLossParameter value) {
- if (hingeLossParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- hingeLossParam_ = value;
- onChanged();
- } else {
- hingeLossParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x08000000;
- return this;
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public Builder setHingeLossParam(
- caffe.Caffe.HingeLossParameter.Builder builderForValue) {
- if (hingeLossParamBuilder_ == null) {
- hingeLossParam_ = builderForValue.build();
- onChanged();
- } else {
- hingeLossParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x08000000;
- return this;
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public Builder mergeHingeLossParam(caffe.Caffe.HingeLossParameter value) {
- if (hingeLossParamBuilder_ == null) {
- if (((bitField0_ & 0x08000000) == 0x08000000) &&
- hingeLossParam_ != null &&
- hingeLossParam_ != caffe.Caffe.HingeLossParameter.getDefaultInstance()) {
- hingeLossParam_ =
- caffe.Caffe.HingeLossParameter.newBuilder(hingeLossParam_).mergeFrom(value).buildPartial();
- } else {
- hingeLossParam_ = value;
- }
- onChanged();
- } else {
- hingeLossParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x08000000;
- return this;
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public Builder clearHingeLossParam() {
- if (hingeLossParamBuilder_ == null) {
- hingeLossParam_ = null;
- onChanged();
- } else {
- hingeLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x08000000);
- return this;
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public caffe.Caffe.HingeLossParameter.Builder getHingeLossParamBuilder() {
- bitField0_ |= 0x08000000;
- onChanged();
- return getHingeLossParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- public caffe.Caffe.HingeLossParameterOrBuilder getHingeLossParamOrBuilder() {
- if (hingeLossParamBuilder_ != null) {
- return hingeLossParamBuilder_.getMessageOrBuilder();
- } else {
- return hingeLossParam_ == null ?
- caffe.Caffe.HingeLossParameter.getDefaultInstance() : hingeLossParam_;
- }
- }
- /**
- * optional .caffe.HingeLossParameter hinge_loss_param = 114;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HingeLossParameter, caffe.Caffe.HingeLossParameter.Builder, caffe.Caffe.HingeLossParameterOrBuilder>
- getHingeLossParamFieldBuilder() {
- if (hingeLossParamBuilder_ == null) {
- hingeLossParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.HingeLossParameter, caffe.Caffe.HingeLossParameter.Builder, caffe.Caffe.HingeLossParameterOrBuilder>(
- getHingeLossParam(),
- getParentForChildren(),
- isClean());
- hingeLossParam_ = null;
- }
- return hingeLossParamBuilder_;
- }
-
- private caffe.Caffe.ImageDataParameter imageDataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ImageDataParameter, caffe.Caffe.ImageDataParameter.Builder, caffe.Caffe.ImageDataParameterOrBuilder> imageDataParamBuilder_;
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public boolean hasImageDataParam() {
- return ((bitField0_ & 0x10000000) == 0x10000000);
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public caffe.Caffe.ImageDataParameter getImageDataParam() {
- if (imageDataParamBuilder_ == null) {
- return imageDataParam_ == null ? caffe.Caffe.ImageDataParameter.getDefaultInstance() : imageDataParam_;
- } else {
- return imageDataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public Builder setImageDataParam(caffe.Caffe.ImageDataParameter value) {
- if (imageDataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- imageDataParam_ = value;
- onChanged();
- } else {
- imageDataParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x10000000;
- return this;
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public Builder setImageDataParam(
- caffe.Caffe.ImageDataParameter.Builder builderForValue) {
- if (imageDataParamBuilder_ == null) {
- imageDataParam_ = builderForValue.build();
- onChanged();
- } else {
- imageDataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x10000000;
- return this;
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public Builder mergeImageDataParam(caffe.Caffe.ImageDataParameter value) {
- if (imageDataParamBuilder_ == null) {
- if (((bitField0_ & 0x10000000) == 0x10000000) &&
- imageDataParam_ != null &&
- imageDataParam_ != caffe.Caffe.ImageDataParameter.getDefaultInstance()) {
- imageDataParam_ =
- caffe.Caffe.ImageDataParameter.newBuilder(imageDataParam_).mergeFrom(value).buildPartial();
- } else {
- imageDataParam_ = value;
- }
- onChanged();
- } else {
- imageDataParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x10000000;
- return this;
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public Builder clearImageDataParam() {
- if (imageDataParamBuilder_ == null) {
- imageDataParam_ = null;
- onChanged();
- } else {
- imageDataParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x10000000);
- return this;
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public caffe.Caffe.ImageDataParameter.Builder getImageDataParamBuilder() {
- bitField0_ |= 0x10000000;
- onChanged();
- return getImageDataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- public caffe.Caffe.ImageDataParameterOrBuilder getImageDataParamOrBuilder() {
- if (imageDataParamBuilder_ != null) {
- return imageDataParamBuilder_.getMessageOrBuilder();
- } else {
- return imageDataParam_ == null ?
- caffe.Caffe.ImageDataParameter.getDefaultInstance() : imageDataParam_;
- }
- }
- /**
- * optional .caffe.ImageDataParameter image_data_param = 115;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ImageDataParameter, caffe.Caffe.ImageDataParameter.Builder, caffe.Caffe.ImageDataParameterOrBuilder>
- getImageDataParamFieldBuilder() {
- if (imageDataParamBuilder_ == null) {
- imageDataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ImageDataParameter, caffe.Caffe.ImageDataParameter.Builder, caffe.Caffe.ImageDataParameterOrBuilder>(
- getImageDataParam(),
- getParentForChildren(),
- isClean());
- imageDataParam_ = null;
- }
- return imageDataParamBuilder_;
- }
-
- private caffe.Caffe.InfogainLossParameter infogainLossParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InfogainLossParameter, caffe.Caffe.InfogainLossParameter.Builder, caffe.Caffe.InfogainLossParameterOrBuilder> infogainLossParamBuilder_;
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public boolean hasInfogainLossParam() {
- return ((bitField0_ & 0x20000000) == 0x20000000);
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public caffe.Caffe.InfogainLossParameter getInfogainLossParam() {
- if (infogainLossParamBuilder_ == null) {
- return infogainLossParam_ == null ? caffe.Caffe.InfogainLossParameter.getDefaultInstance() : infogainLossParam_;
- } else {
- return infogainLossParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public Builder setInfogainLossParam(caffe.Caffe.InfogainLossParameter value) {
- if (infogainLossParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- infogainLossParam_ = value;
- onChanged();
- } else {
- infogainLossParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x20000000;
- return this;
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public Builder setInfogainLossParam(
- caffe.Caffe.InfogainLossParameter.Builder builderForValue) {
- if (infogainLossParamBuilder_ == null) {
- infogainLossParam_ = builderForValue.build();
- onChanged();
- } else {
- infogainLossParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x20000000;
- return this;
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public Builder mergeInfogainLossParam(caffe.Caffe.InfogainLossParameter value) {
- if (infogainLossParamBuilder_ == null) {
- if (((bitField0_ & 0x20000000) == 0x20000000) &&
- infogainLossParam_ != null &&
- infogainLossParam_ != caffe.Caffe.InfogainLossParameter.getDefaultInstance()) {
- infogainLossParam_ =
- caffe.Caffe.InfogainLossParameter.newBuilder(infogainLossParam_).mergeFrom(value).buildPartial();
- } else {
- infogainLossParam_ = value;
- }
- onChanged();
- } else {
- infogainLossParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x20000000;
- return this;
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public Builder clearInfogainLossParam() {
- if (infogainLossParamBuilder_ == null) {
- infogainLossParam_ = null;
- onChanged();
- } else {
- infogainLossParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x20000000);
- return this;
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public caffe.Caffe.InfogainLossParameter.Builder getInfogainLossParamBuilder() {
- bitField0_ |= 0x20000000;
- onChanged();
- return getInfogainLossParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- public caffe.Caffe.InfogainLossParameterOrBuilder getInfogainLossParamOrBuilder() {
- if (infogainLossParamBuilder_ != null) {
- return infogainLossParamBuilder_.getMessageOrBuilder();
- } else {
- return infogainLossParam_ == null ?
- caffe.Caffe.InfogainLossParameter.getDefaultInstance() : infogainLossParam_;
- }
- }
- /**
- * optional .caffe.InfogainLossParameter infogain_loss_param = 116;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InfogainLossParameter, caffe.Caffe.InfogainLossParameter.Builder, caffe.Caffe.InfogainLossParameterOrBuilder>
- getInfogainLossParamFieldBuilder() {
- if (infogainLossParamBuilder_ == null) {
- infogainLossParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InfogainLossParameter, caffe.Caffe.InfogainLossParameter.Builder, caffe.Caffe.InfogainLossParameterOrBuilder>(
- getInfogainLossParam(),
- getParentForChildren(),
- isClean());
- infogainLossParam_ = null;
- }
- return infogainLossParamBuilder_;
- }
-
- private caffe.Caffe.InnerProductParameter innerProductParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InnerProductParameter, caffe.Caffe.InnerProductParameter.Builder, caffe.Caffe.InnerProductParameterOrBuilder> innerProductParamBuilder_;
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public boolean hasInnerProductParam() {
- return ((bitField0_ & 0x40000000) == 0x40000000);
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public caffe.Caffe.InnerProductParameter getInnerProductParam() {
- if (innerProductParamBuilder_ == null) {
- return innerProductParam_ == null ? caffe.Caffe.InnerProductParameter.getDefaultInstance() : innerProductParam_;
- } else {
- return innerProductParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public Builder setInnerProductParam(caffe.Caffe.InnerProductParameter value) {
- if (innerProductParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- innerProductParam_ = value;
- onChanged();
- } else {
- innerProductParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x40000000;
- return this;
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public Builder setInnerProductParam(
- caffe.Caffe.InnerProductParameter.Builder builderForValue) {
- if (innerProductParamBuilder_ == null) {
- innerProductParam_ = builderForValue.build();
- onChanged();
- } else {
- innerProductParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x40000000;
- return this;
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public Builder mergeInnerProductParam(caffe.Caffe.InnerProductParameter value) {
- if (innerProductParamBuilder_ == null) {
- if (((bitField0_ & 0x40000000) == 0x40000000) &&
- innerProductParam_ != null &&
- innerProductParam_ != caffe.Caffe.InnerProductParameter.getDefaultInstance()) {
- innerProductParam_ =
- caffe.Caffe.InnerProductParameter.newBuilder(innerProductParam_).mergeFrom(value).buildPartial();
- } else {
- innerProductParam_ = value;
- }
- onChanged();
- } else {
- innerProductParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x40000000;
- return this;
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public Builder clearInnerProductParam() {
- if (innerProductParamBuilder_ == null) {
- innerProductParam_ = null;
- onChanged();
- } else {
- innerProductParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x40000000);
- return this;
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public caffe.Caffe.InnerProductParameter.Builder getInnerProductParamBuilder() {
- bitField0_ |= 0x40000000;
- onChanged();
- return getInnerProductParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- public caffe.Caffe.InnerProductParameterOrBuilder getInnerProductParamOrBuilder() {
- if (innerProductParamBuilder_ != null) {
- return innerProductParamBuilder_.getMessageOrBuilder();
- } else {
- return innerProductParam_ == null ?
- caffe.Caffe.InnerProductParameter.getDefaultInstance() : innerProductParam_;
- }
- }
- /**
- * optional .caffe.InnerProductParameter inner_product_param = 117;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InnerProductParameter, caffe.Caffe.InnerProductParameter.Builder, caffe.Caffe.InnerProductParameterOrBuilder>
- getInnerProductParamFieldBuilder() {
- if (innerProductParamBuilder_ == null) {
- innerProductParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.InnerProductParameter, caffe.Caffe.InnerProductParameter.Builder, caffe.Caffe.InnerProductParameterOrBuilder>(
- getInnerProductParam(),
- getParentForChildren(),
- isClean());
- innerProductParam_ = null;
- }
- return innerProductParamBuilder_;
- }
-
- private caffe.Caffe.LogParameter logParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LogParameter, caffe.Caffe.LogParameter.Builder, caffe.Caffe.LogParameterOrBuilder> logParamBuilder_;
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public boolean hasLogParam() {
- return ((bitField0_ & 0x80000000) == 0x80000000);
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public caffe.Caffe.LogParameter getLogParam() {
- if (logParamBuilder_ == null) {
- return logParam_ == null ? caffe.Caffe.LogParameter.getDefaultInstance() : logParam_;
- } else {
- return logParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public Builder setLogParam(caffe.Caffe.LogParameter value) {
- if (logParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- logParam_ = value;
- onChanged();
- } else {
- logParamBuilder_.setMessage(value);
- }
- bitField0_ |= 0x80000000;
- return this;
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public Builder setLogParam(
- caffe.Caffe.LogParameter.Builder builderForValue) {
- if (logParamBuilder_ == null) {
- logParam_ = builderForValue.build();
- onChanged();
- } else {
- logParamBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x80000000;
- return this;
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public Builder mergeLogParam(caffe.Caffe.LogParameter value) {
- if (logParamBuilder_ == null) {
- if (((bitField0_ & 0x80000000) == 0x80000000) &&
- logParam_ != null &&
- logParam_ != caffe.Caffe.LogParameter.getDefaultInstance()) {
- logParam_ =
- caffe.Caffe.LogParameter.newBuilder(logParam_).mergeFrom(value).buildPartial();
- } else {
- logParam_ = value;
- }
- onChanged();
- } else {
- logParamBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x80000000;
- return this;
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public Builder clearLogParam() {
- if (logParamBuilder_ == null) {
- logParam_ = null;
- onChanged();
- } else {
- logParamBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x80000000);
- return this;
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public caffe.Caffe.LogParameter.Builder getLogParamBuilder() {
- bitField0_ |= 0x80000000;
- onChanged();
- return getLogParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- public caffe.Caffe.LogParameterOrBuilder getLogParamOrBuilder() {
- if (logParamBuilder_ != null) {
- return logParamBuilder_.getMessageOrBuilder();
- } else {
- return logParam_ == null ?
- caffe.Caffe.LogParameter.getDefaultInstance() : logParam_;
- }
- }
- /**
- * optional .caffe.LogParameter log_param = 134;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LogParameter, caffe.Caffe.LogParameter.Builder, caffe.Caffe.LogParameterOrBuilder>
- getLogParamFieldBuilder() {
- if (logParamBuilder_ == null) {
- logParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LogParameter, caffe.Caffe.LogParameter.Builder, caffe.Caffe.LogParameterOrBuilder>(
- getLogParam(),
- getParentForChildren(),
- isClean());
- logParam_ = null;
- }
- return logParamBuilder_;
- }
-
- private caffe.Caffe.LRNParameter lrnParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LRNParameter, caffe.Caffe.LRNParameter.Builder, caffe.Caffe.LRNParameterOrBuilder> lrnParamBuilder_;
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public boolean hasLrnParam() {
- return ((bitField1_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public caffe.Caffe.LRNParameter getLrnParam() {
- if (lrnParamBuilder_ == null) {
- return lrnParam_ == null ? caffe.Caffe.LRNParameter.getDefaultInstance() : lrnParam_;
- } else {
- return lrnParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public Builder setLrnParam(caffe.Caffe.LRNParameter value) {
- if (lrnParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- lrnParam_ = value;
- onChanged();
- } else {
- lrnParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000001;
- return this;
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public Builder setLrnParam(
- caffe.Caffe.LRNParameter.Builder builderForValue) {
- if (lrnParamBuilder_ == null) {
- lrnParam_ = builderForValue.build();
- onChanged();
- } else {
- lrnParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000001;
- return this;
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public Builder mergeLrnParam(caffe.Caffe.LRNParameter value) {
- if (lrnParamBuilder_ == null) {
- if (((bitField1_ & 0x00000001) == 0x00000001) &&
- lrnParam_ != null &&
- lrnParam_ != caffe.Caffe.LRNParameter.getDefaultInstance()) {
- lrnParam_ =
- caffe.Caffe.LRNParameter.newBuilder(lrnParam_).mergeFrom(value).buildPartial();
- } else {
- lrnParam_ = value;
- }
- onChanged();
- } else {
- lrnParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000001;
- return this;
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public Builder clearLrnParam() {
- if (lrnParamBuilder_ == null) {
- lrnParam_ = null;
- onChanged();
- } else {
- lrnParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000001);
- return this;
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public caffe.Caffe.LRNParameter.Builder getLrnParamBuilder() {
- bitField1_ |= 0x00000001;
- onChanged();
- return getLrnParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- public caffe.Caffe.LRNParameterOrBuilder getLrnParamOrBuilder() {
- if (lrnParamBuilder_ != null) {
- return lrnParamBuilder_.getMessageOrBuilder();
- } else {
- return lrnParam_ == null ?
- caffe.Caffe.LRNParameter.getDefaultInstance() : lrnParam_;
- }
- }
- /**
- * optional .caffe.LRNParameter lrn_param = 118;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LRNParameter, caffe.Caffe.LRNParameter.Builder, caffe.Caffe.LRNParameterOrBuilder>
- getLrnParamFieldBuilder() {
- if (lrnParamBuilder_ == null) {
- lrnParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.LRNParameter, caffe.Caffe.LRNParameter.Builder, caffe.Caffe.LRNParameterOrBuilder>(
- getLrnParam(),
- getParentForChildren(),
- isClean());
- lrnParam_ = null;
- }
- return lrnParamBuilder_;
- }
-
- private caffe.Caffe.MemoryDataParameter memoryDataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MemoryDataParameter, caffe.Caffe.MemoryDataParameter.Builder, caffe.Caffe.MemoryDataParameterOrBuilder> memoryDataParamBuilder_;
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public boolean hasMemoryDataParam() {
- return ((bitField1_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public caffe.Caffe.MemoryDataParameter getMemoryDataParam() {
- if (memoryDataParamBuilder_ == null) {
- return memoryDataParam_ == null ? caffe.Caffe.MemoryDataParameter.getDefaultInstance() : memoryDataParam_;
- } else {
- return memoryDataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public Builder setMemoryDataParam(caffe.Caffe.MemoryDataParameter value) {
- if (memoryDataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- memoryDataParam_ = value;
- onChanged();
- } else {
- memoryDataParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000002;
- return this;
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public Builder setMemoryDataParam(
- caffe.Caffe.MemoryDataParameter.Builder builderForValue) {
- if (memoryDataParamBuilder_ == null) {
- memoryDataParam_ = builderForValue.build();
- onChanged();
- } else {
- memoryDataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000002;
- return this;
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public Builder mergeMemoryDataParam(caffe.Caffe.MemoryDataParameter value) {
- if (memoryDataParamBuilder_ == null) {
- if (((bitField1_ & 0x00000002) == 0x00000002) &&
- memoryDataParam_ != null &&
- memoryDataParam_ != caffe.Caffe.MemoryDataParameter.getDefaultInstance()) {
- memoryDataParam_ =
- caffe.Caffe.MemoryDataParameter.newBuilder(memoryDataParam_).mergeFrom(value).buildPartial();
- } else {
- memoryDataParam_ = value;
- }
- onChanged();
- } else {
- memoryDataParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000002;
- return this;
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public Builder clearMemoryDataParam() {
- if (memoryDataParamBuilder_ == null) {
- memoryDataParam_ = null;
- onChanged();
- } else {
- memoryDataParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000002);
- return this;
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public caffe.Caffe.MemoryDataParameter.Builder getMemoryDataParamBuilder() {
- bitField1_ |= 0x00000002;
- onChanged();
- return getMemoryDataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- public caffe.Caffe.MemoryDataParameterOrBuilder getMemoryDataParamOrBuilder() {
- if (memoryDataParamBuilder_ != null) {
- return memoryDataParamBuilder_.getMessageOrBuilder();
- } else {
- return memoryDataParam_ == null ?
- caffe.Caffe.MemoryDataParameter.getDefaultInstance() : memoryDataParam_;
- }
- }
- /**
- * optional .caffe.MemoryDataParameter memory_data_param = 119;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MemoryDataParameter, caffe.Caffe.MemoryDataParameter.Builder, caffe.Caffe.MemoryDataParameterOrBuilder>
- getMemoryDataParamFieldBuilder() {
- if (memoryDataParamBuilder_ == null) {
- memoryDataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MemoryDataParameter, caffe.Caffe.MemoryDataParameter.Builder, caffe.Caffe.MemoryDataParameterOrBuilder>(
- getMemoryDataParam(),
- getParentForChildren(),
- isClean());
- memoryDataParam_ = null;
- }
- return memoryDataParamBuilder_;
- }
-
- private caffe.Caffe.MVNParameter mvnParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MVNParameter, caffe.Caffe.MVNParameter.Builder, caffe.Caffe.MVNParameterOrBuilder> mvnParamBuilder_;
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public boolean hasMvnParam() {
- return ((bitField1_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public caffe.Caffe.MVNParameter getMvnParam() {
- if (mvnParamBuilder_ == null) {
- return mvnParam_ == null ? caffe.Caffe.MVNParameter.getDefaultInstance() : mvnParam_;
- } else {
- return mvnParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public Builder setMvnParam(caffe.Caffe.MVNParameter value) {
- if (mvnParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- mvnParam_ = value;
- onChanged();
- } else {
- mvnParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000004;
- return this;
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public Builder setMvnParam(
- caffe.Caffe.MVNParameter.Builder builderForValue) {
- if (mvnParamBuilder_ == null) {
- mvnParam_ = builderForValue.build();
- onChanged();
- } else {
- mvnParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000004;
- return this;
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public Builder mergeMvnParam(caffe.Caffe.MVNParameter value) {
- if (mvnParamBuilder_ == null) {
- if (((bitField1_ & 0x00000004) == 0x00000004) &&
- mvnParam_ != null &&
- mvnParam_ != caffe.Caffe.MVNParameter.getDefaultInstance()) {
- mvnParam_ =
- caffe.Caffe.MVNParameter.newBuilder(mvnParam_).mergeFrom(value).buildPartial();
- } else {
- mvnParam_ = value;
- }
- onChanged();
- } else {
- mvnParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000004;
- return this;
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public Builder clearMvnParam() {
- if (mvnParamBuilder_ == null) {
- mvnParam_ = null;
- onChanged();
- } else {
- mvnParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000004);
- return this;
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public caffe.Caffe.MVNParameter.Builder getMvnParamBuilder() {
- bitField1_ |= 0x00000004;
- onChanged();
- return getMvnParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- public caffe.Caffe.MVNParameterOrBuilder getMvnParamOrBuilder() {
- if (mvnParamBuilder_ != null) {
- return mvnParamBuilder_.getMessageOrBuilder();
- } else {
- return mvnParam_ == null ?
- caffe.Caffe.MVNParameter.getDefaultInstance() : mvnParam_;
- }
- }
- /**
- * optional .caffe.MVNParameter mvn_param = 120;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MVNParameter, caffe.Caffe.MVNParameter.Builder, caffe.Caffe.MVNParameterOrBuilder>
- getMvnParamFieldBuilder() {
- if (mvnParamBuilder_ == null) {
- mvnParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.MVNParameter, caffe.Caffe.MVNParameter.Builder, caffe.Caffe.MVNParameterOrBuilder>(
- getMvnParam(),
- getParentForChildren(),
- isClean());
- mvnParam_ = null;
- }
- return mvnParamBuilder_;
- }
-
- private caffe.Caffe.PoolingParameter poolingParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PoolingParameter, caffe.Caffe.PoolingParameter.Builder, caffe.Caffe.PoolingParameterOrBuilder> poolingParamBuilder_;
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public boolean hasPoolingParam() {
- return ((bitField1_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public caffe.Caffe.PoolingParameter getPoolingParam() {
- if (poolingParamBuilder_ == null) {
- return poolingParam_ == null ? caffe.Caffe.PoolingParameter.getDefaultInstance() : poolingParam_;
- } else {
- return poolingParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public Builder setPoolingParam(caffe.Caffe.PoolingParameter value) {
- if (poolingParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- poolingParam_ = value;
- onChanged();
- } else {
- poolingParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000008;
- return this;
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public Builder setPoolingParam(
- caffe.Caffe.PoolingParameter.Builder builderForValue) {
- if (poolingParamBuilder_ == null) {
- poolingParam_ = builderForValue.build();
- onChanged();
- } else {
- poolingParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000008;
- return this;
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public Builder mergePoolingParam(caffe.Caffe.PoolingParameter value) {
- if (poolingParamBuilder_ == null) {
- if (((bitField1_ & 0x00000008) == 0x00000008) &&
- poolingParam_ != null &&
- poolingParam_ != caffe.Caffe.PoolingParameter.getDefaultInstance()) {
- poolingParam_ =
- caffe.Caffe.PoolingParameter.newBuilder(poolingParam_).mergeFrom(value).buildPartial();
- } else {
- poolingParam_ = value;
- }
- onChanged();
- } else {
- poolingParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000008;
- return this;
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public Builder clearPoolingParam() {
- if (poolingParamBuilder_ == null) {
- poolingParam_ = null;
- onChanged();
- } else {
- poolingParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000008);
- return this;
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public caffe.Caffe.PoolingParameter.Builder getPoolingParamBuilder() {
- bitField1_ |= 0x00000008;
- onChanged();
- return getPoolingParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- public caffe.Caffe.PoolingParameterOrBuilder getPoolingParamOrBuilder() {
- if (poolingParamBuilder_ != null) {
- return poolingParamBuilder_.getMessageOrBuilder();
- } else {
- return poolingParam_ == null ?
- caffe.Caffe.PoolingParameter.getDefaultInstance() : poolingParam_;
- }
- }
- /**
- * optional .caffe.PoolingParameter pooling_param = 121;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PoolingParameter, caffe.Caffe.PoolingParameter.Builder, caffe.Caffe.PoolingParameterOrBuilder>
- getPoolingParamFieldBuilder() {
- if (poolingParamBuilder_ == null) {
- poolingParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PoolingParameter, caffe.Caffe.PoolingParameter.Builder, caffe.Caffe.PoolingParameterOrBuilder>(
- getPoolingParam(),
- getParentForChildren(),
- isClean());
- poolingParam_ = null;
- }
- return poolingParamBuilder_;
- }
-
- private caffe.Caffe.PowerParameter powerParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PowerParameter, caffe.Caffe.PowerParameter.Builder, caffe.Caffe.PowerParameterOrBuilder> powerParamBuilder_;
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public boolean hasPowerParam() {
- return ((bitField1_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public caffe.Caffe.PowerParameter getPowerParam() {
- if (powerParamBuilder_ == null) {
- return powerParam_ == null ? caffe.Caffe.PowerParameter.getDefaultInstance() : powerParam_;
- } else {
- return powerParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public Builder setPowerParam(caffe.Caffe.PowerParameter value) {
- if (powerParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- powerParam_ = value;
- onChanged();
- } else {
- powerParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000010;
- return this;
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public Builder setPowerParam(
- caffe.Caffe.PowerParameter.Builder builderForValue) {
- if (powerParamBuilder_ == null) {
- powerParam_ = builderForValue.build();
- onChanged();
- } else {
- powerParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000010;
- return this;
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public Builder mergePowerParam(caffe.Caffe.PowerParameter value) {
- if (powerParamBuilder_ == null) {
- if (((bitField1_ & 0x00000010) == 0x00000010) &&
- powerParam_ != null &&
- powerParam_ != caffe.Caffe.PowerParameter.getDefaultInstance()) {
- powerParam_ =
- caffe.Caffe.PowerParameter.newBuilder(powerParam_).mergeFrom(value).buildPartial();
- } else {
- powerParam_ = value;
- }
- onChanged();
- } else {
- powerParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000010;
- return this;
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public Builder clearPowerParam() {
- if (powerParamBuilder_ == null) {
- powerParam_ = null;
- onChanged();
- } else {
- powerParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000010);
- return this;
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public caffe.Caffe.PowerParameter.Builder getPowerParamBuilder() {
- bitField1_ |= 0x00000010;
- onChanged();
- return getPowerParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- public caffe.Caffe.PowerParameterOrBuilder getPowerParamOrBuilder() {
- if (powerParamBuilder_ != null) {
- return powerParamBuilder_.getMessageOrBuilder();
- } else {
- return powerParam_ == null ?
- caffe.Caffe.PowerParameter.getDefaultInstance() : powerParam_;
- }
- }
- /**
- * optional .caffe.PowerParameter power_param = 122;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PowerParameter, caffe.Caffe.PowerParameter.Builder, caffe.Caffe.PowerParameterOrBuilder>
- getPowerParamFieldBuilder() {
- if (powerParamBuilder_ == null) {
- powerParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PowerParameter, caffe.Caffe.PowerParameter.Builder, caffe.Caffe.PowerParameterOrBuilder>(
- getPowerParam(),
- getParentForChildren(),
- isClean());
- powerParam_ = null;
- }
- return powerParamBuilder_;
- }
-
- private caffe.Caffe.PReLUParameter preluParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PReLUParameter, caffe.Caffe.PReLUParameter.Builder, caffe.Caffe.PReLUParameterOrBuilder> preluParamBuilder_;
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public boolean hasPreluParam() {
- return ((bitField1_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public caffe.Caffe.PReLUParameter getPreluParam() {
- if (preluParamBuilder_ == null) {
- return preluParam_ == null ? caffe.Caffe.PReLUParameter.getDefaultInstance() : preluParam_;
- } else {
- return preluParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public Builder setPreluParam(caffe.Caffe.PReLUParameter value) {
- if (preluParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- preluParam_ = value;
- onChanged();
- } else {
- preluParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000020;
- return this;
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public Builder setPreluParam(
- caffe.Caffe.PReLUParameter.Builder builderForValue) {
- if (preluParamBuilder_ == null) {
- preluParam_ = builderForValue.build();
- onChanged();
- } else {
- preluParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000020;
- return this;
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public Builder mergePreluParam(caffe.Caffe.PReLUParameter value) {
- if (preluParamBuilder_ == null) {
- if (((bitField1_ & 0x00000020) == 0x00000020) &&
- preluParam_ != null &&
- preluParam_ != caffe.Caffe.PReLUParameter.getDefaultInstance()) {
- preluParam_ =
- caffe.Caffe.PReLUParameter.newBuilder(preluParam_).mergeFrom(value).buildPartial();
- } else {
- preluParam_ = value;
- }
- onChanged();
- } else {
- preluParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000020;
- return this;
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public Builder clearPreluParam() {
- if (preluParamBuilder_ == null) {
- preluParam_ = null;
- onChanged();
- } else {
- preluParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000020);
- return this;
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public caffe.Caffe.PReLUParameter.Builder getPreluParamBuilder() {
- bitField1_ |= 0x00000020;
- onChanged();
- return getPreluParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- public caffe.Caffe.PReLUParameterOrBuilder getPreluParamOrBuilder() {
- if (preluParamBuilder_ != null) {
- return preluParamBuilder_.getMessageOrBuilder();
- } else {
- return preluParam_ == null ?
- caffe.Caffe.PReLUParameter.getDefaultInstance() : preluParam_;
- }
- }
- /**
- * optional .caffe.PReLUParameter prelu_param = 131;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PReLUParameter, caffe.Caffe.PReLUParameter.Builder, caffe.Caffe.PReLUParameterOrBuilder>
- getPreluParamFieldBuilder() {
- if (preluParamBuilder_ == null) {
- preluParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PReLUParameter, caffe.Caffe.PReLUParameter.Builder, caffe.Caffe.PReLUParameterOrBuilder>(
- getPreluParam(),
- getParentForChildren(),
- isClean());
- preluParam_ = null;
- }
- return preluParamBuilder_;
- }
-
- private caffe.Caffe.PythonParameter pythonParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PythonParameter, caffe.Caffe.PythonParameter.Builder, caffe.Caffe.PythonParameterOrBuilder> pythonParamBuilder_;
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public boolean hasPythonParam() {
- return ((bitField1_ & 0x00000040) == 0x00000040);
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public caffe.Caffe.PythonParameter getPythonParam() {
- if (pythonParamBuilder_ == null) {
- return pythonParam_ == null ? caffe.Caffe.PythonParameter.getDefaultInstance() : pythonParam_;
- } else {
- return pythonParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public Builder setPythonParam(caffe.Caffe.PythonParameter value) {
- if (pythonParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- pythonParam_ = value;
- onChanged();
- } else {
- pythonParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000040;
- return this;
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public Builder setPythonParam(
- caffe.Caffe.PythonParameter.Builder builderForValue) {
- if (pythonParamBuilder_ == null) {
- pythonParam_ = builderForValue.build();
- onChanged();
- } else {
- pythonParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000040;
- return this;
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public Builder mergePythonParam(caffe.Caffe.PythonParameter value) {
- if (pythonParamBuilder_ == null) {
- if (((bitField1_ & 0x00000040) == 0x00000040) &&
- pythonParam_ != null &&
- pythonParam_ != caffe.Caffe.PythonParameter.getDefaultInstance()) {
- pythonParam_ =
- caffe.Caffe.PythonParameter.newBuilder(pythonParam_).mergeFrom(value).buildPartial();
- } else {
- pythonParam_ = value;
- }
- onChanged();
- } else {
- pythonParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000040;
- return this;
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public Builder clearPythonParam() {
- if (pythonParamBuilder_ == null) {
- pythonParam_ = null;
- onChanged();
- } else {
- pythonParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000040);
- return this;
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public caffe.Caffe.PythonParameter.Builder getPythonParamBuilder() {
- bitField1_ |= 0x00000040;
- onChanged();
- return getPythonParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- public caffe.Caffe.PythonParameterOrBuilder getPythonParamOrBuilder() {
- if (pythonParamBuilder_ != null) {
- return pythonParamBuilder_.getMessageOrBuilder();
- } else {
- return pythonParam_ == null ?
- caffe.Caffe.PythonParameter.getDefaultInstance() : pythonParam_;
- }
- }
- /**
- * optional .caffe.PythonParameter python_param = 130;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PythonParameter, caffe.Caffe.PythonParameter.Builder, caffe.Caffe.PythonParameterOrBuilder>
- getPythonParamFieldBuilder() {
- if (pythonParamBuilder_ == null) {
- pythonParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.PythonParameter, caffe.Caffe.PythonParameter.Builder, caffe.Caffe.PythonParameterOrBuilder>(
- getPythonParam(),
- getParentForChildren(),
- isClean());
- pythonParam_ = null;
- }
- return pythonParamBuilder_;
- }
-
- private caffe.Caffe.ReductionParameter reductionParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReductionParameter, caffe.Caffe.ReductionParameter.Builder, caffe.Caffe.ReductionParameterOrBuilder> reductionParamBuilder_;
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public boolean hasReductionParam() {
- return ((bitField1_ & 0x00000080) == 0x00000080);
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public caffe.Caffe.ReductionParameter getReductionParam() {
- if (reductionParamBuilder_ == null) {
- return reductionParam_ == null ? caffe.Caffe.ReductionParameter.getDefaultInstance() : reductionParam_;
- } else {
- return reductionParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public Builder setReductionParam(caffe.Caffe.ReductionParameter value) {
- if (reductionParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- reductionParam_ = value;
- onChanged();
- } else {
- reductionParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000080;
- return this;
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public Builder setReductionParam(
- caffe.Caffe.ReductionParameter.Builder builderForValue) {
- if (reductionParamBuilder_ == null) {
- reductionParam_ = builderForValue.build();
- onChanged();
- } else {
- reductionParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000080;
- return this;
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public Builder mergeReductionParam(caffe.Caffe.ReductionParameter value) {
- if (reductionParamBuilder_ == null) {
- if (((bitField1_ & 0x00000080) == 0x00000080) &&
- reductionParam_ != null &&
- reductionParam_ != caffe.Caffe.ReductionParameter.getDefaultInstance()) {
- reductionParam_ =
- caffe.Caffe.ReductionParameter.newBuilder(reductionParam_).mergeFrom(value).buildPartial();
- } else {
- reductionParam_ = value;
- }
- onChanged();
- } else {
- reductionParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000080;
- return this;
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public Builder clearReductionParam() {
- if (reductionParamBuilder_ == null) {
- reductionParam_ = null;
- onChanged();
- } else {
- reductionParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000080);
- return this;
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public caffe.Caffe.ReductionParameter.Builder getReductionParamBuilder() {
- bitField1_ |= 0x00000080;
- onChanged();
- return getReductionParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- public caffe.Caffe.ReductionParameterOrBuilder getReductionParamOrBuilder() {
- if (reductionParamBuilder_ != null) {
- return reductionParamBuilder_.getMessageOrBuilder();
- } else {
- return reductionParam_ == null ?
- caffe.Caffe.ReductionParameter.getDefaultInstance() : reductionParam_;
- }
- }
- /**
- * optional .caffe.ReductionParameter reduction_param = 136;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReductionParameter, caffe.Caffe.ReductionParameter.Builder, caffe.Caffe.ReductionParameterOrBuilder>
- getReductionParamFieldBuilder() {
- if (reductionParamBuilder_ == null) {
- reductionParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReductionParameter, caffe.Caffe.ReductionParameter.Builder, caffe.Caffe.ReductionParameterOrBuilder>(
- getReductionParam(),
- getParentForChildren(),
- isClean());
- reductionParam_ = null;
- }
- return reductionParamBuilder_;
- }
-
- private caffe.Caffe.ReLUParameter reluParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReLUParameter, caffe.Caffe.ReLUParameter.Builder, caffe.Caffe.ReLUParameterOrBuilder> reluParamBuilder_;
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public boolean hasReluParam() {
- return ((bitField1_ & 0x00000100) == 0x00000100);
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public caffe.Caffe.ReLUParameter getReluParam() {
- if (reluParamBuilder_ == null) {
- return reluParam_ == null ? caffe.Caffe.ReLUParameter.getDefaultInstance() : reluParam_;
- } else {
- return reluParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public Builder setReluParam(caffe.Caffe.ReLUParameter value) {
- if (reluParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- reluParam_ = value;
- onChanged();
- } else {
- reluParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000100;
- return this;
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public Builder setReluParam(
- caffe.Caffe.ReLUParameter.Builder builderForValue) {
- if (reluParamBuilder_ == null) {
- reluParam_ = builderForValue.build();
- onChanged();
- } else {
- reluParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000100;
- return this;
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public Builder mergeReluParam(caffe.Caffe.ReLUParameter value) {
- if (reluParamBuilder_ == null) {
- if (((bitField1_ & 0x00000100) == 0x00000100) &&
- reluParam_ != null &&
- reluParam_ != caffe.Caffe.ReLUParameter.getDefaultInstance()) {
- reluParam_ =
- caffe.Caffe.ReLUParameter.newBuilder(reluParam_).mergeFrom(value).buildPartial();
- } else {
- reluParam_ = value;
- }
- onChanged();
- } else {
- reluParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000100;
- return this;
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public Builder clearReluParam() {
- if (reluParamBuilder_ == null) {
- reluParam_ = null;
- onChanged();
- } else {
- reluParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000100);
- return this;
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public caffe.Caffe.ReLUParameter.Builder getReluParamBuilder() {
- bitField1_ |= 0x00000100;
- onChanged();
- return getReluParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- public caffe.Caffe.ReLUParameterOrBuilder getReluParamOrBuilder() {
- if (reluParamBuilder_ != null) {
- return reluParamBuilder_.getMessageOrBuilder();
- } else {
- return reluParam_ == null ?
- caffe.Caffe.ReLUParameter.getDefaultInstance() : reluParam_;
- }
- }
- /**
- * optional .caffe.ReLUParameter relu_param = 123;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReLUParameter, caffe.Caffe.ReLUParameter.Builder, caffe.Caffe.ReLUParameterOrBuilder>
- getReluParamFieldBuilder() {
- if (reluParamBuilder_ == null) {
- reluParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReLUParameter, caffe.Caffe.ReLUParameter.Builder, caffe.Caffe.ReLUParameterOrBuilder>(
- getReluParam(),
- getParentForChildren(),
- isClean());
- reluParam_ = null;
- }
- return reluParamBuilder_;
- }
-
- private caffe.Caffe.ReshapeParameter reshapeParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReshapeParameter, caffe.Caffe.ReshapeParameter.Builder, caffe.Caffe.ReshapeParameterOrBuilder> reshapeParamBuilder_;
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public boolean hasReshapeParam() {
- return ((bitField1_ & 0x00000200) == 0x00000200);
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public caffe.Caffe.ReshapeParameter getReshapeParam() {
- if (reshapeParamBuilder_ == null) {
- return reshapeParam_ == null ? caffe.Caffe.ReshapeParameter.getDefaultInstance() : reshapeParam_;
- } else {
- return reshapeParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public Builder setReshapeParam(caffe.Caffe.ReshapeParameter value) {
- if (reshapeParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- reshapeParam_ = value;
- onChanged();
- } else {
- reshapeParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000200;
- return this;
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public Builder setReshapeParam(
- caffe.Caffe.ReshapeParameter.Builder builderForValue) {
- if (reshapeParamBuilder_ == null) {
- reshapeParam_ = builderForValue.build();
- onChanged();
- } else {
- reshapeParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000200;
- return this;
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public Builder mergeReshapeParam(caffe.Caffe.ReshapeParameter value) {
- if (reshapeParamBuilder_ == null) {
- if (((bitField1_ & 0x00000200) == 0x00000200) &&
- reshapeParam_ != null &&
- reshapeParam_ != caffe.Caffe.ReshapeParameter.getDefaultInstance()) {
- reshapeParam_ =
- caffe.Caffe.ReshapeParameter.newBuilder(reshapeParam_).mergeFrom(value).buildPartial();
- } else {
- reshapeParam_ = value;
- }
- onChanged();
- } else {
- reshapeParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000200;
- return this;
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public Builder clearReshapeParam() {
- if (reshapeParamBuilder_ == null) {
- reshapeParam_ = null;
- onChanged();
- } else {
- reshapeParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000200);
- return this;
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public caffe.Caffe.ReshapeParameter.Builder getReshapeParamBuilder() {
- bitField1_ |= 0x00000200;
- onChanged();
- return getReshapeParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- public caffe.Caffe.ReshapeParameterOrBuilder getReshapeParamOrBuilder() {
- if (reshapeParamBuilder_ != null) {
- return reshapeParamBuilder_.getMessageOrBuilder();
- } else {
- return reshapeParam_ == null ?
- caffe.Caffe.ReshapeParameter.getDefaultInstance() : reshapeParam_;
- }
- }
- /**
- * optional .caffe.ReshapeParameter reshape_param = 133;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReshapeParameter, caffe.Caffe.ReshapeParameter.Builder, caffe.Caffe.ReshapeParameterOrBuilder>
- getReshapeParamFieldBuilder() {
- if (reshapeParamBuilder_ == null) {
- reshapeParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ReshapeParameter, caffe.Caffe.ReshapeParameter.Builder, caffe.Caffe.ReshapeParameterOrBuilder>(
- getReshapeParam(),
- getParentForChildren(),
- isClean());
- reshapeParam_ = null;
- }
- return reshapeParamBuilder_;
- }
-
- private caffe.Caffe.SigmoidParameter sigmoidParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SigmoidParameter, caffe.Caffe.SigmoidParameter.Builder, caffe.Caffe.SigmoidParameterOrBuilder> sigmoidParamBuilder_;
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public boolean hasSigmoidParam() {
- return ((bitField1_ & 0x00000400) == 0x00000400);
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public caffe.Caffe.SigmoidParameter getSigmoidParam() {
- if (sigmoidParamBuilder_ == null) {
- return sigmoidParam_ == null ? caffe.Caffe.SigmoidParameter.getDefaultInstance() : sigmoidParam_;
- } else {
- return sigmoidParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public Builder setSigmoidParam(caffe.Caffe.SigmoidParameter value) {
- if (sigmoidParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- sigmoidParam_ = value;
- onChanged();
- } else {
- sigmoidParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000400;
- return this;
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public Builder setSigmoidParam(
- caffe.Caffe.SigmoidParameter.Builder builderForValue) {
- if (sigmoidParamBuilder_ == null) {
- sigmoidParam_ = builderForValue.build();
- onChanged();
- } else {
- sigmoidParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000400;
- return this;
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public Builder mergeSigmoidParam(caffe.Caffe.SigmoidParameter value) {
- if (sigmoidParamBuilder_ == null) {
- if (((bitField1_ & 0x00000400) == 0x00000400) &&
- sigmoidParam_ != null &&
- sigmoidParam_ != caffe.Caffe.SigmoidParameter.getDefaultInstance()) {
- sigmoidParam_ =
- caffe.Caffe.SigmoidParameter.newBuilder(sigmoidParam_).mergeFrom(value).buildPartial();
- } else {
- sigmoidParam_ = value;
- }
- onChanged();
- } else {
- sigmoidParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000400;
- return this;
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public Builder clearSigmoidParam() {
- if (sigmoidParamBuilder_ == null) {
- sigmoidParam_ = null;
- onChanged();
- } else {
- sigmoidParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000400);
- return this;
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public caffe.Caffe.SigmoidParameter.Builder getSigmoidParamBuilder() {
- bitField1_ |= 0x00000400;
- onChanged();
- return getSigmoidParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- public caffe.Caffe.SigmoidParameterOrBuilder getSigmoidParamOrBuilder() {
- if (sigmoidParamBuilder_ != null) {
- return sigmoidParamBuilder_.getMessageOrBuilder();
- } else {
- return sigmoidParam_ == null ?
- caffe.Caffe.SigmoidParameter.getDefaultInstance() : sigmoidParam_;
- }
- }
- /**
- * optional .caffe.SigmoidParameter sigmoid_param = 124;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SigmoidParameter, caffe.Caffe.SigmoidParameter.Builder, caffe.Caffe.SigmoidParameterOrBuilder>
- getSigmoidParamFieldBuilder() {
- if (sigmoidParamBuilder_ == null) {
- sigmoidParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SigmoidParameter, caffe.Caffe.SigmoidParameter.Builder, caffe.Caffe.SigmoidParameterOrBuilder>(
- getSigmoidParam(),
- getParentForChildren(),
- isClean());
- sigmoidParam_ = null;
- }
- return sigmoidParamBuilder_;
- }
-
- private caffe.Caffe.SoftmaxParameter softmaxParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SoftmaxParameter, caffe.Caffe.SoftmaxParameter.Builder, caffe.Caffe.SoftmaxParameterOrBuilder> softmaxParamBuilder_;
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public boolean hasSoftmaxParam() {
- return ((bitField1_ & 0x00000800) == 0x00000800);
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public caffe.Caffe.SoftmaxParameter getSoftmaxParam() {
- if (softmaxParamBuilder_ == null) {
- return softmaxParam_ == null ? caffe.Caffe.SoftmaxParameter.getDefaultInstance() : softmaxParam_;
- } else {
- return softmaxParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public Builder setSoftmaxParam(caffe.Caffe.SoftmaxParameter value) {
- if (softmaxParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- softmaxParam_ = value;
- onChanged();
- } else {
- softmaxParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public Builder setSoftmaxParam(
- caffe.Caffe.SoftmaxParameter.Builder builderForValue) {
- if (softmaxParamBuilder_ == null) {
- softmaxParam_ = builderForValue.build();
- onChanged();
- } else {
- softmaxParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public Builder mergeSoftmaxParam(caffe.Caffe.SoftmaxParameter value) {
- if (softmaxParamBuilder_ == null) {
- if (((bitField1_ & 0x00000800) == 0x00000800) &&
- softmaxParam_ != null &&
- softmaxParam_ != caffe.Caffe.SoftmaxParameter.getDefaultInstance()) {
- softmaxParam_ =
- caffe.Caffe.SoftmaxParameter.newBuilder(softmaxParam_).mergeFrom(value).buildPartial();
- } else {
- softmaxParam_ = value;
- }
- onChanged();
- } else {
- softmaxParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00000800;
- return this;
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public Builder clearSoftmaxParam() {
- if (softmaxParamBuilder_ == null) {
- softmaxParam_ = null;
- onChanged();
- } else {
- softmaxParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00000800);
- return this;
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public caffe.Caffe.SoftmaxParameter.Builder getSoftmaxParamBuilder() {
- bitField1_ |= 0x00000800;
- onChanged();
- return getSoftmaxParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- public caffe.Caffe.SoftmaxParameterOrBuilder getSoftmaxParamOrBuilder() {
- if (softmaxParamBuilder_ != null) {
- return softmaxParamBuilder_.getMessageOrBuilder();
- } else {
- return softmaxParam_ == null ?
- caffe.Caffe.SoftmaxParameter.getDefaultInstance() : softmaxParam_;
- }
- }
- /**
- * optional .caffe.SoftmaxParameter softmax_param = 125;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SoftmaxParameter, caffe.Caffe.SoftmaxParameter.Builder, caffe.Caffe.SoftmaxParameterOrBuilder>
- getSoftmaxParamFieldBuilder() {
- if (softmaxParamBuilder_ == null) {
- softmaxParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SoftmaxParameter, caffe.Caffe.SoftmaxParameter.Builder, caffe.Caffe.SoftmaxParameterOrBuilder>(
- getSoftmaxParam(),
- getParentForChildren(),
- isClean());
- softmaxParam_ = null;
- }
- return softmaxParamBuilder_;
- }
-
- private caffe.Caffe.SPPParameter sppParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SPPParameter, caffe.Caffe.SPPParameter.Builder, caffe.Caffe.SPPParameterOrBuilder> sppParamBuilder_;
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public boolean hasSppParam() {
- return ((bitField1_ & 0x00001000) == 0x00001000);
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public caffe.Caffe.SPPParameter getSppParam() {
- if (sppParamBuilder_ == null) {
- return sppParam_ == null ? caffe.Caffe.SPPParameter.getDefaultInstance() : sppParam_;
- } else {
- return sppParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public Builder setSppParam(caffe.Caffe.SPPParameter value) {
- if (sppParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- sppParam_ = value;
- onChanged();
- } else {
- sppParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public Builder setSppParam(
- caffe.Caffe.SPPParameter.Builder builderForValue) {
- if (sppParamBuilder_ == null) {
- sppParam_ = builderForValue.build();
- onChanged();
- } else {
- sppParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public Builder mergeSppParam(caffe.Caffe.SPPParameter value) {
- if (sppParamBuilder_ == null) {
- if (((bitField1_ & 0x00001000) == 0x00001000) &&
- sppParam_ != null &&
- sppParam_ != caffe.Caffe.SPPParameter.getDefaultInstance()) {
- sppParam_ =
- caffe.Caffe.SPPParameter.newBuilder(sppParam_).mergeFrom(value).buildPartial();
- } else {
- sppParam_ = value;
- }
- onChanged();
- } else {
- sppParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00001000;
- return this;
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public Builder clearSppParam() {
- if (sppParamBuilder_ == null) {
- sppParam_ = null;
- onChanged();
- } else {
- sppParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00001000);
- return this;
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public caffe.Caffe.SPPParameter.Builder getSppParamBuilder() {
- bitField1_ |= 0x00001000;
- onChanged();
- return getSppParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- public caffe.Caffe.SPPParameterOrBuilder getSppParamOrBuilder() {
- if (sppParamBuilder_ != null) {
- return sppParamBuilder_.getMessageOrBuilder();
- } else {
- return sppParam_ == null ?
- caffe.Caffe.SPPParameter.getDefaultInstance() : sppParam_;
- }
- }
- /**
- * optional .caffe.SPPParameter spp_param = 132;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SPPParameter, caffe.Caffe.SPPParameter.Builder, caffe.Caffe.SPPParameterOrBuilder>
- getSppParamFieldBuilder() {
- if (sppParamBuilder_ == null) {
- sppParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SPPParameter, caffe.Caffe.SPPParameter.Builder, caffe.Caffe.SPPParameterOrBuilder>(
- getSppParam(),
- getParentForChildren(),
- isClean());
- sppParam_ = null;
- }
- return sppParamBuilder_;
- }
-
- private caffe.Caffe.SliceParameter sliceParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SliceParameter, caffe.Caffe.SliceParameter.Builder, caffe.Caffe.SliceParameterOrBuilder> sliceParamBuilder_;
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public boolean hasSliceParam() {
- return ((bitField1_ & 0x00002000) == 0x00002000);
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public caffe.Caffe.SliceParameter getSliceParam() {
- if (sliceParamBuilder_ == null) {
- return sliceParam_ == null ? caffe.Caffe.SliceParameter.getDefaultInstance() : sliceParam_;
- } else {
- return sliceParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public Builder setSliceParam(caffe.Caffe.SliceParameter value) {
- if (sliceParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- sliceParam_ = value;
- onChanged();
- } else {
- sliceParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public Builder setSliceParam(
- caffe.Caffe.SliceParameter.Builder builderForValue) {
- if (sliceParamBuilder_ == null) {
- sliceParam_ = builderForValue.build();
- onChanged();
- } else {
- sliceParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public Builder mergeSliceParam(caffe.Caffe.SliceParameter value) {
- if (sliceParamBuilder_ == null) {
- if (((bitField1_ & 0x00002000) == 0x00002000) &&
- sliceParam_ != null &&
- sliceParam_ != caffe.Caffe.SliceParameter.getDefaultInstance()) {
- sliceParam_ =
- caffe.Caffe.SliceParameter.newBuilder(sliceParam_).mergeFrom(value).buildPartial();
- } else {
- sliceParam_ = value;
- }
- onChanged();
- } else {
- sliceParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00002000;
- return this;
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public Builder clearSliceParam() {
- if (sliceParamBuilder_ == null) {
- sliceParam_ = null;
- onChanged();
- } else {
- sliceParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00002000);
- return this;
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public caffe.Caffe.SliceParameter.Builder getSliceParamBuilder() {
- bitField1_ |= 0x00002000;
- onChanged();
- return getSliceParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- public caffe.Caffe.SliceParameterOrBuilder getSliceParamOrBuilder() {
- if (sliceParamBuilder_ != null) {
- return sliceParamBuilder_.getMessageOrBuilder();
- } else {
- return sliceParam_ == null ?
- caffe.Caffe.SliceParameter.getDefaultInstance() : sliceParam_;
- }
- }
- /**
- * optional .caffe.SliceParameter slice_param = 126;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SliceParameter, caffe.Caffe.SliceParameter.Builder, caffe.Caffe.SliceParameterOrBuilder>
- getSliceParamFieldBuilder() {
- if (sliceParamBuilder_ == null) {
- sliceParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.SliceParameter, caffe.Caffe.SliceParameter.Builder, caffe.Caffe.SliceParameterOrBuilder>(
- getSliceParam(),
- getParentForChildren(),
- isClean());
- sliceParam_ = null;
- }
- return sliceParamBuilder_;
- }
-
- private caffe.Caffe.TanHParameter tanhParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TanHParameter, caffe.Caffe.TanHParameter.Builder, caffe.Caffe.TanHParameterOrBuilder> tanhParamBuilder_;
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public boolean hasTanhParam() {
- return ((bitField1_ & 0x00004000) == 0x00004000);
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public caffe.Caffe.TanHParameter getTanhParam() {
- if (tanhParamBuilder_ == null) {
- return tanhParam_ == null ? caffe.Caffe.TanHParameter.getDefaultInstance() : tanhParam_;
- } else {
- return tanhParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public Builder setTanhParam(caffe.Caffe.TanHParameter value) {
- if (tanhParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- tanhParam_ = value;
- onChanged();
- } else {
- tanhParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public Builder setTanhParam(
- caffe.Caffe.TanHParameter.Builder builderForValue) {
- if (tanhParamBuilder_ == null) {
- tanhParam_ = builderForValue.build();
- onChanged();
- } else {
- tanhParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public Builder mergeTanhParam(caffe.Caffe.TanHParameter value) {
- if (tanhParamBuilder_ == null) {
- if (((bitField1_ & 0x00004000) == 0x00004000) &&
- tanhParam_ != null &&
- tanhParam_ != caffe.Caffe.TanHParameter.getDefaultInstance()) {
- tanhParam_ =
- caffe.Caffe.TanHParameter.newBuilder(tanhParam_).mergeFrom(value).buildPartial();
- } else {
- tanhParam_ = value;
- }
- onChanged();
- } else {
- tanhParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00004000;
- return this;
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public Builder clearTanhParam() {
- if (tanhParamBuilder_ == null) {
- tanhParam_ = null;
- onChanged();
- } else {
- tanhParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00004000);
- return this;
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public caffe.Caffe.TanHParameter.Builder getTanhParamBuilder() {
- bitField1_ |= 0x00004000;
- onChanged();
- return getTanhParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- public caffe.Caffe.TanHParameterOrBuilder getTanhParamOrBuilder() {
- if (tanhParamBuilder_ != null) {
- return tanhParamBuilder_.getMessageOrBuilder();
- } else {
- return tanhParam_ == null ?
- caffe.Caffe.TanHParameter.getDefaultInstance() : tanhParam_;
- }
- }
- /**
- * optional .caffe.TanHParameter tanh_param = 127;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TanHParameter, caffe.Caffe.TanHParameter.Builder, caffe.Caffe.TanHParameterOrBuilder>
- getTanhParamFieldBuilder() {
- if (tanhParamBuilder_ == null) {
- tanhParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TanHParameter, caffe.Caffe.TanHParameter.Builder, caffe.Caffe.TanHParameterOrBuilder>(
- getTanhParam(),
- getParentForChildren(),
- isClean());
- tanhParam_ = null;
- }
- return tanhParamBuilder_;
- }
-
- private caffe.Caffe.ThresholdParameter thresholdParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ThresholdParameter, caffe.Caffe.ThresholdParameter.Builder, caffe.Caffe.ThresholdParameterOrBuilder> thresholdParamBuilder_;
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public boolean hasThresholdParam() {
- return ((bitField1_ & 0x00008000) == 0x00008000);
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public caffe.Caffe.ThresholdParameter getThresholdParam() {
- if (thresholdParamBuilder_ == null) {
- return thresholdParam_ == null ? caffe.Caffe.ThresholdParameter.getDefaultInstance() : thresholdParam_;
- } else {
- return thresholdParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public Builder setThresholdParam(caffe.Caffe.ThresholdParameter value) {
- if (thresholdParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- thresholdParam_ = value;
- onChanged();
- } else {
- thresholdParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public Builder setThresholdParam(
- caffe.Caffe.ThresholdParameter.Builder builderForValue) {
- if (thresholdParamBuilder_ == null) {
- thresholdParam_ = builderForValue.build();
- onChanged();
- } else {
- thresholdParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public Builder mergeThresholdParam(caffe.Caffe.ThresholdParameter value) {
- if (thresholdParamBuilder_ == null) {
- if (((bitField1_ & 0x00008000) == 0x00008000) &&
- thresholdParam_ != null &&
- thresholdParam_ != caffe.Caffe.ThresholdParameter.getDefaultInstance()) {
- thresholdParam_ =
- caffe.Caffe.ThresholdParameter.newBuilder(thresholdParam_).mergeFrom(value).buildPartial();
- } else {
- thresholdParam_ = value;
- }
- onChanged();
- } else {
- thresholdParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00008000;
- return this;
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public Builder clearThresholdParam() {
- if (thresholdParamBuilder_ == null) {
- thresholdParam_ = null;
- onChanged();
- } else {
- thresholdParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00008000);
- return this;
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public caffe.Caffe.ThresholdParameter.Builder getThresholdParamBuilder() {
- bitField1_ |= 0x00008000;
- onChanged();
- return getThresholdParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- public caffe.Caffe.ThresholdParameterOrBuilder getThresholdParamOrBuilder() {
- if (thresholdParamBuilder_ != null) {
- return thresholdParamBuilder_.getMessageOrBuilder();
- } else {
- return thresholdParam_ == null ?
- caffe.Caffe.ThresholdParameter.getDefaultInstance() : thresholdParam_;
- }
- }
- /**
- * optional .caffe.ThresholdParameter threshold_param = 128;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ThresholdParameter, caffe.Caffe.ThresholdParameter.Builder, caffe.Caffe.ThresholdParameterOrBuilder>
- getThresholdParamFieldBuilder() {
- if (thresholdParamBuilder_ == null) {
- thresholdParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.ThresholdParameter, caffe.Caffe.ThresholdParameter.Builder, caffe.Caffe.ThresholdParameterOrBuilder>(
- getThresholdParam(),
- getParentForChildren(),
- isClean());
- thresholdParam_ = null;
- }
- return thresholdParamBuilder_;
- }
-
- private caffe.Caffe.TileParameter tileParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TileParameter, caffe.Caffe.TileParameter.Builder, caffe.Caffe.TileParameterOrBuilder> tileParamBuilder_;
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public boolean hasTileParam() {
- return ((bitField1_ & 0x00010000) == 0x00010000);
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public caffe.Caffe.TileParameter getTileParam() {
- if (tileParamBuilder_ == null) {
- return tileParam_ == null ? caffe.Caffe.TileParameter.getDefaultInstance() : tileParam_;
- } else {
- return tileParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public Builder setTileParam(caffe.Caffe.TileParameter value) {
- if (tileParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- tileParam_ = value;
- onChanged();
- } else {
- tileParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public Builder setTileParam(
- caffe.Caffe.TileParameter.Builder builderForValue) {
- if (tileParamBuilder_ == null) {
- tileParam_ = builderForValue.build();
- onChanged();
- } else {
- tileParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public Builder mergeTileParam(caffe.Caffe.TileParameter value) {
- if (tileParamBuilder_ == null) {
- if (((bitField1_ & 0x00010000) == 0x00010000) &&
- tileParam_ != null &&
- tileParam_ != caffe.Caffe.TileParameter.getDefaultInstance()) {
- tileParam_ =
- caffe.Caffe.TileParameter.newBuilder(tileParam_).mergeFrom(value).buildPartial();
- } else {
- tileParam_ = value;
- }
- onChanged();
- } else {
- tileParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00010000;
- return this;
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public Builder clearTileParam() {
- if (tileParamBuilder_ == null) {
- tileParam_ = null;
- onChanged();
- } else {
- tileParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00010000);
- return this;
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public caffe.Caffe.TileParameter.Builder getTileParamBuilder() {
- bitField1_ |= 0x00010000;
- onChanged();
- return getTileParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- public caffe.Caffe.TileParameterOrBuilder getTileParamOrBuilder() {
- if (tileParamBuilder_ != null) {
- return tileParamBuilder_.getMessageOrBuilder();
- } else {
- return tileParam_ == null ?
- caffe.Caffe.TileParameter.getDefaultInstance() : tileParam_;
- }
- }
- /**
- * optional .caffe.TileParameter tile_param = 138;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TileParameter, caffe.Caffe.TileParameter.Builder, caffe.Caffe.TileParameterOrBuilder>
- getTileParamFieldBuilder() {
- if (tileParamBuilder_ == null) {
- tileParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.TileParameter, caffe.Caffe.TileParameter.Builder, caffe.Caffe.TileParameterOrBuilder>(
- getTileParam(),
- getParentForChildren(),
- isClean());
- tileParam_ = null;
- }
- return tileParamBuilder_;
- }
-
- private caffe.Caffe.WindowDataParameter windowDataParam_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.WindowDataParameter, caffe.Caffe.WindowDataParameter.Builder, caffe.Caffe.WindowDataParameterOrBuilder> windowDataParamBuilder_;
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public boolean hasWindowDataParam() {
- return ((bitField1_ & 0x00020000) == 0x00020000);
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public caffe.Caffe.WindowDataParameter getWindowDataParam() {
- if (windowDataParamBuilder_ == null) {
- return windowDataParam_ == null ? caffe.Caffe.WindowDataParameter.getDefaultInstance() : windowDataParam_;
- } else {
- return windowDataParamBuilder_.getMessage();
- }
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public Builder setWindowDataParam(caffe.Caffe.WindowDataParameter value) {
- if (windowDataParamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- windowDataParam_ = value;
- onChanged();
- } else {
- windowDataParamBuilder_.setMessage(value);
- }
- bitField1_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public Builder setWindowDataParam(
- caffe.Caffe.WindowDataParameter.Builder builderForValue) {
- if (windowDataParamBuilder_ == null) {
- windowDataParam_ = builderForValue.build();
- onChanged();
- } else {
- windowDataParamBuilder_.setMessage(builderForValue.build());
- }
- bitField1_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public Builder mergeWindowDataParam(caffe.Caffe.WindowDataParameter value) {
- if (windowDataParamBuilder_ == null) {
- if (((bitField1_ & 0x00020000) == 0x00020000) &&
- windowDataParam_ != null &&
- windowDataParam_ != caffe.Caffe.WindowDataParameter.getDefaultInstance()) {
- windowDataParam_ =
- caffe.Caffe.WindowDataParameter.newBuilder(windowDataParam_).mergeFrom(value).buildPartial();
- } else {
- windowDataParam_ = value;
- }
- onChanged();
- } else {
- windowDataParamBuilder_.mergeFrom(value);
- }
- bitField1_ |= 0x00020000;
- return this;
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public Builder clearWindowDataParam() {
- if (windowDataParamBuilder_ == null) {
- windowDataParam_ = null;
- onChanged();
- } else {
- windowDataParamBuilder_.clear();
- }
- bitField1_ = (bitField1_ & ~0x00020000);
- return this;
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public caffe.Caffe.WindowDataParameter.Builder getWindowDataParamBuilder() {
- bitField1_ |= 0x00020000;
- onChanged();
- return getWindowDataParamFieldBuilder().getBuilder();
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- public caffe.Caffe.WindowDataParameterOrBuilder getWindowDataParamOrBuilder() {
- if (windowDataParamBuilder_ != null) {
- return windowDataParamBuilder_.getMessageOrBuilder();
- } else {
- return windowDataParam_ == null ?
- caffe.Caffe.WindowDataParameter.getDefaultInstance() : windowDataParam_;
- }
- }
- /**
- * optional .caffe.WindowDataParameter window_data_param = 129;
- */
- private com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.WindowDataParameter, caffe.Caffe.WindowDataParameter.Builder, caffe.Caffe.WindowDataParameterOrBuilder>
- getWindowDataParamFieldBuilder() {
- if (windowDataParamBuilder_ == null) {
- windowDataParamBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- caffe.Caffe.WindowDataParameter, caffe.Caffe.WindowDataParameter.Builder, caffe.Caffe.WindowDataParameterOrBuilder>(
- getWindowDataParam(),
- getParentForChildren(),
- isClean());
- windowDataParam_ = null;
- }
- return windowDataParamBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:caffe.LayerParameter)
- }
-
- // @@protoc_insertion_point(class_scope:caffe.LayerParameter)
- private static final caffe.Caffe.LayerParameter DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new caffe.Caffe.LayerParameter();
- }
-
- public static caffe.Caffe.LayerParameter getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- public LayerParameter parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new LayerParameter(input, extensionRegistry);
- } catch (RuntimeException e) {
- if (e.getCause() instanceof
- com.google.protobuf.InvalidProtocolBufferException) {
- throw (com.google.protobuf.InvalidProtocolBufferException)
- e.getCause();
- }
- throw e;
- }
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser