Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.intel.analytics.bigdl.serialization.Bigdl Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bigdl.proto
package com.intel.analytics.bigdl.serialization;
public final class Bigdl {
private Bigdl() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.VarFormat}
*/
public enum VarFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EMPTY_FORMAT = 0;
*/
EMPTY_FORMAT(0),
/**
* DEFAULT = 1;
*/
DEFAULT(1),
/**
* ONE_D = 2;
*/
ONE_D(2),
/**
* IN_OUT = 3;
*/
IN_OUT(3),
/**
* OUT_IN = 4;
*/
OUT_IN(4),
/**
* IN_OUT_KW_KH = 5;
*/
IN_OUT_KW_KH(5),
/**
* OUT_IN_KW_KH = 6;
*/
OUT_IN_KW_KH(6),
/**
* GP_OUT_IN_KW_KH = 7;
*/
GP_OUT_IN_KW_KH(7),
/**
* GP_IN_OUT_KW_KH = 8;
*/
GP_IN_OUT_KW_KH(8),
/**
* OUT_IN_KT_KH_KW = 9;
*/
OUT_IN_KT_KH_KW(9),
UNRECOGNIZED(-1),
;
/**
* EMPTY_FORMAT = 0;
*/
public static final int EMPTY_FORMAT_VALUE = 0;
/**
* DEFAULT = 1;
*/
public static final int DEFAULT_VALUE = 1;
/**
* ONE_D = 2;
*/
public static final int ONE_D_VALUE = 2;
/**
* IN_OUT = 3;
*/
public static final int IN_OUT_VALUE = 3;
/**
* OUT_IN = 4;
*/
public static final int OUT_IN_VALUE = 4;
/**
* IN_OUT_KW_KH = 5;
*/
public static final int IN_OUT_KW_KH_VALUE = 5;
/**
* OUT_IN_KW_KH = 6;
*/
public static final int OUT_IN_KW_KH_VALUE = 6;
/**
* GP_OUT_IN_KW_KH = 7;
*/
public static final int GP_OUT_IN_KW_KH_VALUE = 7;
/**
* GP_IN_OUT_KW_KH = 8;
*/
public static final int GP_IN_OUT_KW_KH_VALUE = 8;
/**
* OUT_IN_KT_KH_KW = 9;
*/
public static final int OUT_IN_KT_KH_KW_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VarFormat valueOf(int value) {
return forNumber(value);
}
public static VarFormat forNumber(int value) {
switch (value) {
case 0: return EMPTY_FORMAT;
case 1: return DEFAULT;
case 2: return ONE_D;
case 3: return IN_OUT;
case 4: return OUT_IN;
case 5: return IN_OUT_KW_KH;
case 6: return OUT_IN_KW_KH;
case 7: return GP_OUT_IN_KW_KH;
case 8: return GP_IN_OUT_KW_KH;
case 9: return OUT_IN_KT_KH_KW;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
VarFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public VarFormat findValueByNumber(int number) {
return VarFormat.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(0);
}
private static final VarFormat[] VALUES = values();
public static VarFormat valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private VarFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.VarFormat)
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.InitMethodType}
*/
public enum InitMethodType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EMPTY_INITIALIZATION = 0;
*/
EMPTY_INITIALIZATION(0),
/**
* RANDOM_UNIFORM = 1;
*/
RANDOM_UNIFORM(1),
/**
* RANDOM_UNIFORM_PARAM = 2;
*/
RANDOM_UNIFORM_PARAM(2),
/**
* RANDOM_NORMAL = 3;
*/
RANDOM_NORMAL(3),
/**
* ZEROS = 4;
*/
ZEROS(4),
/**
* ONES = 5;
*/
ONES(5),
/**
* CONST = 6;
*/
CONST(6),
/**
* XAVIER = 7;
*/
XAVIER(7),
/**
* BILINEARFILLER = 8;
*/
BILINEARFILLER(8),
UNRECOGNIZED(-1),
;
/**
* EMPTY_INITIALIZATION = 0;
*/
public static final int EMPTY_INITIALIZATION_VALUE = 0;
/**
* RANDOM_UNIFORM = 1;
*/
public static final int RANDOM_UNIFORM_VALUE = 1;
/**
* RANDOM_UNIFORM_PARAM = 2;
*/
public static final int RANDOM_UNIFORM_PARAM_VALUE = 2;
/**
* RANDOM_NORMAL = 3;
*/
public static final int RANDOM_NORMAL_VALUE = 3;
/**
* ZEROS = 4;
*/
public static final int ZEROS_VALUE = 4;
/**
* ONES = 5;
*/
public static final int ONES_VALUE = 5;
/**
* CONST = 6;
*/
public static final int CONST_VALUE = 6;
/**
* XAVIER = 7;
*/
public static final int XAVIER_VALUE = 7;
/**
* BILINEARFILLER = 8;
*/
public static final int BILINEARFILLER_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InitMethodType valueOf(int value) {
return forNumber(value);
}
public static InitMethodType forNumber(int value) {
switch (value) {
case 0: return EMPTY_INITIALIZATION;
case 1: return RANDOM_UNIFORM;
case 2: return RANDOM_UNIFORM_PARAM;
case 3: return RANDOM_NORMAL;
case 4: return ZEROS;
case 5: return ONES;
case 6: return CONST;
case 7: return XAVIER;
case 8: return BILINEARFILLER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
InitMethodType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public InitMethodType findValueByNumber(int number) {
return InitMethodType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(1);
}
private static final InitMethodType[] VALUES = values();
public static InitMethodType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private InitMethodType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.InitMethodType)
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.RegularizerType}
*/
public enum RegularizerType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* L1L2Regularizer = 0;
*/
L1L2Regularizer(0),
/**
* L1Regularizer = 1;
*/
L1Regularizer(1),
/**
* L2Regularizer = 2;
*/
L2Regularizer(2),
UNRECOGNIZED(-1),
;
/**
* L1L2Regularizer = 0;
*/
public static final int L1L2Regularizer_VALUE = 0;
/**
* L1Regularizer = 1;
*/
public static final int L1Regularizer_VALUE = 1;
/**
* L2Regularizer = 2;
*/
public static final int L2Regularizer_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RegularizerType valueOf(int value) {
return forNumber(value);
}
public static RegularizerType forNumber(int value) {
switch (value) {
case 0: return L1L2Regularizer;
case 1: return L1Regularizer;
case 2: return L2Regularizer;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RegularizerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RegularizerType findValueByNumber(int number) {
return RegularizerType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(2);
}
private static final RegularizerType[] VALUES = values();
public static RegularizerType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private RegularizerType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.RegularizerType)
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.InputDataFormat}
*/
public enum InputDataFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NCHW = 0;
*/
NCHW(0),
/**
* NHWC = 1;
*/
NHWC(1),
UNRECOGNIZED(-1),
;
/**
* NCHW = 0;
*/
public static final int NCHW_VALUE = 0;
/**
* NHWC = 1;
*/
public static final int NHWC_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InputDataFormat valueOf(int value) {
return forNumber(value);
}
public static InputDataFormat forNumber(int value) {
switch (value) {
case 0: return NCHW;
case 1: return NHWC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
InputDataFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public InputDataFormat findValueByNumber(int number) {
return InputDataFormat.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(3);
}
private static final InputDataFormat[] VALUES = values();
public static InputDataFormat valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private InputDataFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.InputDataFormat)
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.TensorType}
*/
public enum TensorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DENSE = 0;
*/
DENSE(0),
/**
* QUANT = 1;
*/
QUANT(1),
UNRECOGNIZED(-1),
;
/**
* DENSE = 0;
*/
public static final int DENSE_VALUE = 0;
/**
* QUANT = 1;
*/
public static final int QUANT_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TensorType valueOf(int value) {
return forNumber(value);
}
public static TensorType forNumber(int value) {
switch (value) {
case 0: return DENSE;
case 1: return QUANT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TensorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TensorType findValueByNumber(int number) {
return TensorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(4);
}
private static final TensorType[] VALUES = values();
public static TensorType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TensorType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.TensorType)
}
/**
* Protobuf enum {@code com.intel.analytics.bigdl.serialization.DataType}
*/
public enum DataType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INT32 = 0;
*/
INT32(0),
/**
* INT64 = 1;
*/
INT64(1),
/**
* FLOAT = 2;
*/
FLOAT(2),
/**
* DOUBLE = 3;
*/
DOUBLE(3),
/**
* STRING = 4;
*/
STRING(4),
/**
* BOOL = 5;
*/
BOOL(5),
/**
* CHAR = 6;
*/
CHAR(6),
/**
* SHORT = 7;
*/
SHORT(7),
/**
* BYTES = 8;
*/
BYTES(8),
/**
* REGULARIZER = 9;
*/
REGULARIZER(9),
/**
* TENSOR = 10;
*/
TENSOR(10),
/**
* VARIABLE_FORMAT = 11;
*/
VARIABLE_FORMAT(11),
/**
* INITMETHOD = 12;
*/
INITMETHOD(12),
/**
* MODULE = 13;
*/
MODULE(13),
/**
* NAME_ATTR_LIST = 14;
*/
NAME_ATTR_LIST(14),
/**
* ARRAY_VALUE = 15;
*/
ARRAY_VALUE(15),
/**
* DATA_FORMAT = 16;
*/
DATA_FORMAT(16),
/**
* CUSTOM = 17;
*/
CUSTOM(17),
/**
* SHAPE = 18;
*/
SHAPE(18),
UNRECOGNIZED(-1),
;
/**
* INT32 = 0;
*/
public static final int INT32_VALUE = 0;
/**
* INT64 = 1;
*/
public static final int INT64_VALUE = 1;
/**
* FLOAT = 2;
*/
public static final int FLOAT_VALUE = 2;
/**
* DOUBLE = 3;
*/
public static final int DOUBLE_VALUE = 3;
/**
* STRING = 4;
*/
public static final int STRING_VALUE = 4;
/**
* BOOL = 5;
*/
public static final int BOOL_VALUE = 5;
/**
* CHAR = 6;
*/
public static final int CHAR_VALUE = 6;
/**
* SHORT = 7;
*/
public static final int SHORT_VALUE = 7;
/**
* BYTES = 8;
*/
public static final int BYTES_VALUE = 8;
/**
* REGULARIZER = 9;
*/
public static final int REGULARIZER_VALUE = 9;
/**
* TENSOR = 10;
*/
public static final int TENSOR_VALUE = 10;
/**
* VARIABLE_FORMAT = 11;
*/
public static final int VARIABLE_FORMAT_VALUE = 11;
/**
* INITMETHOD = 12;
*/
public static final int INITMETHOD_VALUE = 12;
/**
* MODULE = 13;
*/
public static final int MODULE_VALUE = 13;
/**
* NAME_ATTR_LIST = 14;
*/
public static final int NAME_ATTR_LIST_VALUE = 14;
/**
* ARRAY_VALUE = 15;
*/
public static final int ARRAY_VALUE_VALUE = 15;
/**
* DATA_FORMAT = 16;
*/
public static final int DATA_FORMAT_VALUE = 16;
/**
* CUSTOM = 17;
*/
public static final int CUSTOM_VALUE = 17;
/**
* SHAPE = 18;
*/
public static final int SHAPE_VALUE = 18;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataType valueOf(int value) {
return forNumber(value);
}
public static DataType forNumber(int value) {
switch (value) {
case 0: return INT32;
case 1: return INT64;
case 2: return FLOAT;
case 3: return DOUBLE;
case 4: return STRING;
case 5: return BOOL;
case 6: return CHAR;
case 7: return SHORT;
case 8: return BYTES;
case 9: return REGULARIZER;
case 10: return TENSOR;
case 11: return VARIABLE_FORMAT;
case 12: return INITMETHOD;
case 13: return MODULE;
case 14: return NAME_ATTR_LIST;
case 15: return ARRAY_VALUE;
case 16: return DATA_FORMAT;
case 17: return CUSTOM;
case 18: return SHAPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataType findValueByNumber(int number) {
return DataType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.getDescriptor().getEnumTypes().get(5);
}
private static final DataType[] VALUES = values();
public static DataType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DataType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.intel.analytics.bigdl.serialization.DataType)
}
public interface BigDLModuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.BigDLModule)
com.google.protobuf.MessageOrBuilder {
/**
*
*module name
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
*module name
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
java.util.List
getSubModulesList();
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index);
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
int getSubModulesCount();
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getSubModulesOrBuilderList();
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder(
int index);
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
boolean hasWeight();
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight();
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder();
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
boolean hasBias();
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias();
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder();
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
java.util.List
getPreModulesList();
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
int getPreModulesCount();
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
java.lang.String getPreModules(int index);
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
com.google.protobuf.ByteString
getPreModulesBytes(int index);
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
java.util.List
getNextModulesList();
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
int getNextModulesCount();
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
java.lang.String getNextModules(int index);
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
com.google.protobuf.ByteString
getNextModulesBytes(int index);
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
java.lang.String getModuleType();
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
com.google.protobuf.ByteString
getModuleTypeBytes();
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
int getAttrCount();
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
boolean containsAttr(
java.lang.String key);
/**
* Use {@link #getAttrMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttr();
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
java.util.Map
getAttrMap();
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue);
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow(
java.lang.String key);
/**
*
*version of this module
*
*
* string version = 9;
*/
java.lang.String getVersion();
/**
*
*version of this module
*
*
* string version = 9;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* is module status in train
*
*
* bool train = 10;
*/
boolean getTrain();
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
java.lang.String getNamePostfix();
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
com.google.protobuf.ByteString
getNamePostfixBytes();
/**
*
* unique ID of this module , used for shared modules
*
*
* int32 id = 12;
*/
int getId();
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
boolean hasInputShape();
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape();
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder();
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
boolean hasOutputShape();
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape();
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder();
/**
*
* indicator if module has parameters
*
*
* bool hasParameters = 15;
*/
boolean getHasParameters();
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
java.util.List
getParametersList();
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index);
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
int getParametersCount();
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getParametersOrBuilderList();
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder(
int index);
/**
* bool isMklInt8Enabled = 17;
*/
boolean getIsMklInt8Enabled();
/**
* int32 inputDimMasks = 18;
*/
int getInputDimMasks();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
java.util.List
getInputScalesList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index);
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
int getInputScalesCount();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getInputScalesOrBuilderList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder(
int index);
/**
* int32 outputDimMasks = 20;
*/
int getOutputDimMasks();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
java.util.List
getOutputScalesList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index);
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
int getOutputScalesCount();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getOutputScalesOrBuilderList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder(
int index);
/**
* int32 weightDimMasks = 22;
*/
int getWeightDimMasks();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
java.util.List
getWeightScalesList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index);
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
int getWeightScalesCount();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getWeightScalesOrBuilderList();
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder(
int index);
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLModule}
*/
public static final class BigDLModule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.BigDLModule)
BigDLModuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use BigDLModule.newBuilder() to construct.
private BigDLModule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BigDLModule() {
name_ = "";
subModules_ = java.util.Collections.emptyList();
preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
moduleType_ = "";
version_ = "";
train_ = false;
namePostfix_ = "";
id_ = 0;
hasParameters_ = false;
parameters_ = java.util.Collections.emptyList();
isMklInt8Enabled_ = false;
inputDimMasks_ = 0;
inputScales_ = java.util.Collections.emptyList();
outputDimMasks_ = 0;
outputScales_ = java.util.Collections.emptyList();
weightDimMasks_ = 0;
weightScales_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BigDLModule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subModules_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
subModules_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry));
break;
}
case 26: {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null;
if (weight_ != null) {
subBuilder = weight_.toBuilder();
}
weight_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(weight_);
weight_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null;
if (bias_ != null) {
subBuilder = bias_.toBuilder();
}
bias_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bias_);
bias_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
preModules_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
preModules_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nextModules_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
nextModules_.add(s);
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
moduleType_ = s;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
attr_ = com.google.protobuf.MapField.newMapField(
AttrDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000080;
}
com.google.protobuf.MapEntry
attr__ = input.readMessage(
AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attr_.getMutableMap().put(
attr__.getKey(), attr__.getValue());
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 80: {
train_ = input.readBool();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
namePostfix_ = s;
break;
}
case 96: {
id_ = input.readInt32();
break;
}
case 106: {
com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null;
if (inputShape_ != null) {
subBuilder = inputShape_.toBuilder();
}
inputShape_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(inputShape_);
inputShape_ = subBuilder.buildPartial();
}
break;
}
case 114: {
com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null;
if (outputShape_ != null) {
subBuilder = outputShape_.toBuilder();
}
outputShape_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outputShape_);
outputShape_ = subBuilder.buildPartial();
}
break;
}
case 120: {
hasParameters_ = input.readBool();
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
parameters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
parameters_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry));
break;
}
case 136: {
isMklInt8Enabled_ = input.readBool();
break;
}
case 144: {
inputDimMasks_ = input.readInt32();
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
inputScales_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00040000;
}
inputScales_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry));
break;
}
case 160: {
outputDimMasks_ = input.readInt32();
break;
}
case 170: {
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
outputScales_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
outputScales_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry));
break;
}
case 176: {
weightDimMasks_ = input.readInt32();
break;
}
case 186: {
if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) {
weightScales_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00400000;
}
weightScales_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subModules_ = java.util.Collections.unmodifiableList(subModules_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
preModules_ = preModules_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nextModules_ = nextModules_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
}
if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
inputScales_ = java.util.Collections.unmodifiableList(inputScales_);
}
if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
outputScales_ = java.util.Collections.unmodifiableList(outputScales_);
}
if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) {
weightScales_ = java.util.Collections.unmodifiableList(weightScales_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetAttr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*module name
*
*
* string name = 1;
*/
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();
name_ = s;
return s;
}
}
/**
*
*module name
*
*
* string name = 1;
*/
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 SUBMODULES_FIELD_NUMBER = 2;
private java.util.List subModules_;
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public java.util.List getSubModulesList() {
return subModules_;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getSubModulesOrBuilderList() {
return subModules_;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public int getSubModulesCount() {
return subModules_.size();
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index) {
return subModules_.get(index);
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder(
int index) {
return subModules_.get(index);
}
public static final int WEIGHT_FIELD_NUMBER = 3;
private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor weight_;
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public boolean hasWeight() {
return weight_ != null;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight() {
return weight_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder() {
return getWeight();
}
public static final int BIAS_FIELD_NUMBER = 4;
private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor bias_;
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public boolean hasBias() {
return bias_ != null;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias() {
return bias_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder() {
return getBias();
}
public static final int PREMODULES_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList preModules_;
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public com.google.protobuf.ProtocolStringList
getPreModulesList() {
return preModules_;
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public int getPreModulesCount() {
return preModules_.size();
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public java.lang.String getPreModules(int index) {
return preModules_.get(index);
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public com.google.protobuf.ByteString
getPreModulesBytes(int index) {
return preModules_.getByteString(index);
}
public static final int NEXTMODULES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList nextModules_;
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public com.google.protobuf.ProtocolStringList
getNextModulesList() {
return nextModules_;
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public int getNextModulesCount() {
return nextModules_.size();
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public java.lang.String getNextModules(int index) {
return nextModules_.get(index);
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public com.google.protobuf.ByteString
getNextModulesBytes(int index) {
return nextModules_.getByteString(index);
}
public static final int MODULETYPE_FIELD_NUMBER = 7;
private volatile java.lang.Object moduleType_;
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public java.lang.String getModuleType() {
java.lang.Object ref = moduleType_;
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();
moduleType_ = s;
return s;
}
}
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public com.google.protobuf.ByteString
getModuleTypeBytes() {
java.lang.Object ref = moduleType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTR_FIELD_NUMBER = 8;
private static final class AttrDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_AttrEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_;
private com.google.protobuf.MapField
internalGetAttr() {
if (attr_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttrDefaultEntryHolder.defaultEntry);
}
return attr_;
}
public int getAttrCount() {
return internalGetAttr().getMap().size();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public boolean containsAttr(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttr().getMap().containsKey(key);
}
/**
* Use {@link #getAttrMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getAttr() {
return getAttrMap();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public java.util.Map getAttrMap() {
return internalGetAttr().getMap();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttr().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttr().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int VERSION_FIELD_NUMBER = 9;
private volatile java.lang.Object version_;
/**
*
*version of this module
*
*
* string version = 9;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
*version of this module
*
*
* string version = 9;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRAIN_FIELD_NUMBER = 10;
private boolean train_;
/**
*
* is module status in train
*
*
* bool train = 10;
*/
public boolean getTrain() {
return train_;
}
public static final int NAMEPOSTFIX_FIELD_NUMBER = 11;
private volatile java.lang.Object namePostfix_;
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public java.lang.String getNamePostfix() {
java.lang.Object ref = namePostfix_;
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();
namePostfix_ = s;
return s;
}
}
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public com.google.protobuf.ByteString
getNamePostfixBytes() {
java.lang.Object ref = namePostfix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namePostfix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 12;
private int id_;
/**
*
* unique ID of this module , used for shared modules
*
*
* int32 id = 12;
*/
public int getId() {
return id_;
}
public static final int INPUTSHAPE_FIELD_NUMBER = 13;
private com.intel.analytics.bigdl.serialization.Bigdl.Shape inputShape_;
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public boolean hasInputShape() {
return inputShape_ != null;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape() {
return inputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder() {
return getInputShape();
}
public static final int OUTPUTSHAPE_FIELD_NUMBER = 14;
private com.intel.analytics.bigdl.serialization.Bigdl.Shape outputShape_;
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public boolean hasOutputShape() {
return outputShape_ != null;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape() {
return outputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder() {
return getOutputShape();
}
public static final int HASPARAMETERS_FIELD_NUMBER = 15;
private boolean hasParameters_;
/**
*
* indicator if module has parameters
*
*
* bool hasParameters = 15;
*/
public boolean getHasParameters() {
return hasParameters_;
}
public static final int PARAMETERS_FIELD_NUMBER = 16;
private java.util.List parameters_;
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public java.util.List getParametersList() {
return parameters_;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getParametersOrBuilderList() {
return parameters_;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public int getParametersCount() {
return parameters_.size();
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index) {
return parameters_.get(index);
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder(
int index) {
return parameters_.get(index);
}
public static final int ISMKLINT8ENABLED_FIELD_NUMBER = 17;
private boolean isMklInt8Enabled_;
/**
* bool isMklInt8Enabled = 17;
*/
public boolean getIsMklInt8Enabled() {
return isMklInt8Enabled_;
}
public static final int INPUTDIMMASKS_FIELD_NUMBER = 18;
private int inputDimMasks_;
/**
* int32 inputDimMasks = 18;
*/
public int getInputDimMasks() {
return inputDimMasks_;
}
public static final int INPUTSCALES_FIELD_NUMBER = 19;
private java.util.List inputScales_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public java.util.List getInputScalesList() {
return inputScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getInputScalesOrBuilderList() {
return inputScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public int getInputScalesCount() {
return inputScales_.size();
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index) {
return inputScales_.get(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder(
int index) {
return inputScales_.get(index);
}
public static final int OUTPUTDIMMASKS_FIELD_NUMBER = 20;
private int outputDimMasks_;
/**
* int32 outputDimMasks = 20;
*/
public int getOutputDimMasks() {
return outputDimMasks_;
}
public static final int OUTPUTSCALES_FIELD_NUMBER = 21;
private java.util.List outputScales_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public java.util.List getOutputScalesList() {
return outputScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getOutputScalesOrBuilderList() {
return outputScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public int getOutputScalesCount() {
return outputScales_.size();
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index) {
return outputScales_.get(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder(
int index) {
return outputScales_.get(index);
}
public static final int WEIGHTDIMMASKS_FIELD_NUMBER = 22;
private int weightDimMasks_;
/**
* int32 weightDimMasks = 22;
*/
public int getWeightDimMasks() {
return weightDimMasks_;
}
public static final int WEIGHTSCALES_FIELD_NUMBER = 23;
private java.util.List weightScales_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public java.util.List getWeightScalesList() {
return weightScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getWeightScalesOrBuilderList() {
return weightScales_;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public int getWeightScalesCount() {
return weightScales_.size();
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index) {
return weightScales_.get(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder(
int index) {
return weightScales_.get(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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < subModules_.size(); i++) {
output.writeMessage(2, subModules_.get(i));
}
if (weight_ != null) {
output.writeMessage(3, getWeight());
}
if (bias_ != null) {
output.writeMessage(4, getBias());
}
for (int i = 0; i < preModules_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, preModules_.getRaw(i));
}
for (int i = 0; i < nextModules_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nextModules_.getRaw(i));
}
if (!getModuleTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, moduleType_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttr(),
AttrDefaultEntryHolder.defaultEntry,
8);
if (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, version_);
}
if (train_ != false) {
output.writeBool(10, train_);
}
if (!getNamePostfixBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, namePostfix_);
}
if (id_ != 0) {
output.writeInt32(12, id_);
}
if (inputShape_ != null) {
output.writeMessage(13, getInputShape());
}
if (outputShape_ != null) {
output.writeMessage(14, getOutputShape());
}
if (hasParameters_ != false) {
output.writeBool(15, hasParameters_);
}
for (int i = 0; i < parameters_.size(); i++) {
output.writeMessage(16, parameters_.get(i));
}
if (isMklInt8Enabled_ != false) {
output.writeBool(17, isMklInt8Enabled_);
}
if (inputDimMasks_ != 0) {
output.writeInt32(18, inputDimMasks_);
}
for (int i = 0; i < inputScales_.size(); i++) {
output.writeMessage(19, inputScales_.get(i));
}
if (outputDimMasks_ != 0) {
output.writeInt32(20, outputDimMasks_);
}
for (int i = 0; i < outputScales_.size(); i++) {
output.writeMessage(21, outputScales_.get(i));
}
if (weightDimMasks_ != 0) {
output.writeInt32(22, weightDimMasks_);
}
for (int i = 0; i < weightScales_.size(); i++) {
output.writeMessage(23, weightScales_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < subModules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, subModules_.get(i));
}
if (weight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWeight());
}
if (bias_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBias());
}
{
int dataSize = 0;
for (int i = 0; i < preModules_.size(); i++) {
dataSize += computeStringSizeNoTag(preModules_.getRaw(i));
}
size += dataSize;
size += 1 * getPreModulesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < nextModules_.size(); i++) {
dataSize += computeStringSizeNoTag(nextModules_.getRaw(i));
}
size += dataSize;
size += 1 * getNextModulesList().size();
}
if (!getModuleTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, moduleType_);
}
for (java.util.Map.Entry entry
: internalGetAttr().getMap().entrySet()) {
com.google.protobuf.MapEntry
attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, attr__);
}
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, version_);
}
if (train_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, train_);
}
if (!getNamePostfixBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, namePostfix_);
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, id_);
}
if (inputShape_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getInputShape());
}
if (outputShape_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getOutputShape());
}
if (hasParameters_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, hasParameters_);
}
for (int i = 0; i < parameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, parameters_.get(i));
}
if (isMklInt8Enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, isMklInt8Enabled_);
}
if (inputDimMasks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(18, inputDimMasks_);
}
for (int i = 0; i < inputScales_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, inputScales_.get(i));
}
if (outputDimMasks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(20, outputDimMasks_);
}
for (int i = 0; i < outputScales_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, outputScales_.get(i));
}
if (weightDimMasks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(22, weightDimMasks_);
}
for (int i = 0; i < weightScales_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, weightScales_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule other = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getSubModulesList()
.equals(other.getSubModulesList());
result = result && (hasWeight() == other.hasWeight());
if (hasWeight()) {
result = result && getWeight()
.equals(other.getWeight());
}
result = result && (hasBias() == other.hasBias());
if (hasBias()) {
result = result && getBias()
.equals(other.getBias());
}
result = result && getPreModulesList()
.equals(other.getPreModulesList());
result = result && getNextModulesList()
.equals(other.getNextModulesList());
result = result && getModuleType()
.equals(other.getModuleType());
result = result && internalGetAttr().equals(
other.internalGetAttr());
result = result && getVersion()
.equals(other.getVersion());
result = result && (getTrain()
== other.getTrain());
result = result && getNamePostfix()
.equals(other.getNamePostfix());
result = result && (getId()
== other.getId());
result = result && (hasInputShape() == other.hasInputShape());
if (hasInputShape()) {
result = result && getInputShape()
.equals(other.getInputShape());
}
result = result && (hasOutputShape() == other.hasOutputShape());
if (hasOutputShape()) {
result = result && getOutputShape()
.equals(other.getOutputShape());
}
result = result && (getHasParameters()
== other.getHasParameters());
result = result && getParametersList()
.equals(other.getParametersList());
result = result && (getIsMklInt8Enabled()
== other.getIsMklInt8Enabled());
result = result && (getInputDimMasks()
== other.getInputDimMasks());
result = result && getInputScalesList()
.equals(other.getInputScalesList());
result = result && (getOutputDimMasks()
== other.getOutputDimMasks());
result = result && getOutputScalesList()
.equals(other.getOutputScalesList());
result = result && (getWeightDimMasks()
== other.getWeightDimMasks());
result = result && getWeightScalesList()
.equals(other.getWeightScalesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getSubModulesCount() > 0) {
hash = (37 * hash) + SUBMODULES_FIELD_NUMBER;
hash = (53 * hash) + getSubModulesList().hashCode();
}
if (hasWeight()) {
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getWeight().hashCode();
}
if (hasBias()) {
hash = (37 * hash) + BIAS_FIELD_NUMBER;
hash = (53 * hash) + getBias().hashCode();
}
if (getPreModulesCount() > 0) {
hash = (37 * hash) + PREMODULES_FIELD_NUMBER;
hash = (53 * hash) + getPreModulesList().hashCode();
}
if (getNextModulesCount() > 0) {
hash = (37 * hash) + NEXTMODULES_FIELD_NUMBER;
hash = (53 * hash) + getNextModulesList().hashCode();
}
hash = (37 * hash) + MODULETYPE_FIELD_NUMBER;
hash = (53 * hash) + getModuleType().hashCode();
if (!internalGetAttr().getMap().isEmpty()) {
hash = (37 * hash) + ATTR_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttr().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + TRAIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTrain());
hash = (37 * hash) + NAMEPOSTFIX_FIELD_NUMBER;
hash = (53 * hash) + getNamePostfix().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
if (hasInputShape()) {
hash = (37 * hash) + INPUTSHAPE_FIELD_NUMBER;
hash = (53 * hash) + getInputShape().hashCode();
}
if (hasOutputShape()) {
hash = (37 * hash) + OUTPUTSHAPE_FIELD_NUMBER;
hash = (53 * hash) + getOutputShape().hashCode();
}
hash = (37 * hash) + HASPARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasParameters());
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
hash = (37 * hash) + ISMKLINT8ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsMklInt8Enabled());
hash = (37 * hash) + INPUTDIMMASKS_FIELD_NUMBER;
hash = (53 * hash) + getInputDimMasks();
if (getInputScalesCount() > 0) {
hash = (37 * hash) + INPUTSCALES_FIELD_NUMBER;
hash = (53 * hash) + getInputScalesList().hashCode();
}
hash = (37 * hash) + OUTPUTDIMMASKS_FIELD_NUMBER;
hash = (53 * hash) + getOutputDimMasks();
if (getOutputScalesCount() > 0) {
hash = (37 * hash) + OUTPUTSCALES_FIELD_NUMBER;
hash = (53 * hash) + getOutputScalesList().hashCode();
}
hash = (37 * hash) + WEIGHTDIMMASKS_FIELD_NUMBER;
hash = (53 * hash) + getWeightDimMasks();
if (getWeightScalesCount() > 0) {
hash = (37 * hash) + WEIGHTSCALES_FIELD_NUMBER;
hash = (53 * hash) + getWeightScalesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLModule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.BigDLModule)
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetAttr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 8:
return internalGetMutableAttr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSubModulesFieldBuilder();
getParametersFieldBuilder();
getInputScalesFieldBuilder();
getOutputScalesFieldBuilder();
getWeightScalesFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
if (subModulesBuilder_ == null) {
subModules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
subModulesBuilder_.clear();
}
if (weightBuilder_ == null) {
weight_ = null;
} else {
weight_ = null;
weightBuilder_ = null;
}
if (biasBuilder_ == null) {
bias_ = null;
} else {
bias_ = null;
biasBuilder_ = null;
}
preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
moduleType_ = "";
internalGetMutableAttr().clear();
version_ = "";
train_ = false;
namePostfix_ = "";
id_ = 0;
if (inputShapeBuilder_ == null) {
inputShape_ = null;
} else {
inputShape_ = null;
inputShapeBuilder_ = null;
}
if (outputShapeBuilder_ == null) {
outputShape_ = null;
} else {
outputShape_ = null;
outputShapeBuilder_ = null;
}
hasParameters_ = false;
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
parametersBuilder_.clear();
}
isMklInt8Enabled_ = false;
inputDimMasks_ = 0;
if (inputScalesBuilder_ == null) {
inputScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
} else {
inputScalesBuilder_.clear();
}
outputDimMasks_ = 0;
if (outputScalesBuilder_ == null) {
outputScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
} else {
outputScalesBuilder_.clear();
}
weightDimMasks_ = 0;
if (weightScalesBuilder_ == null) {
weightScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00400000);
} else {
weightScalesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLModule_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule build() {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule result = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (subModulesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subModules_ = java.util.Collections.unmodifiableList(subModules_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.subModules_ = subModules_;
} else {
result.subModules_ = subModulesBuilder_.build();
}
if (weightBuilder_ == null) {
result.weight_ = weight_;
} else {
result.weight_ = weightBuilder_.build();
}
if (biasBuilder_ == null) {
result.bias_ = bias_;
} else {
result.bias_ = biasBuilder_.build();
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
preModules_ = preModules_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.preModules_ = preModules_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
nextModules_ = nextModules_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.nextModules_ = nextModules_;
result.moduleType_ = moduleType_;
result.attr_ = internalGetAttr();
result.attr_.makeImmutable();
result.version_ = version_;
result.train_ = train_;
result.namePostfix_ = namePostfix_;
result.id_ = id_;
if (inputShapeBuilder_ == null) {
result.inputShape_ = inputShape_;
} else {
result.inputShape_ = inputShapeBuilder_.build();
}
if (outputShapeBuilder_ == null) {
result.outputShape_ = outputShape_;
} else {
result.outputShape_ = outputShapeBuilder_.build();
}
result.hasParameters_ = hasParameters_;
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
result.isMklInt8Enabled_ = isMklInt8Enabled_;
result.inputDimMasks_ = inputDimMasks_;
if (inputScalesBuilder_ == null) {
if (((bitField0_ & 0x00040000) == 0x00040000)) {
inputScales_ = java.util.Collections.unmodifiableList(inputScales_);
bitField0_ = (bitField0_ & ~0x00040000);
}
result.inputScales_ = inputScales_;
} else {
result.inputScales_ = inputScalesBuilder_.build();
}
result.outputDimMasks_ = outputDimMasks_;
if (outputScalesBuilder_ == null) {
if (((bitField0_ & 0x00100000) == 0x00100000)) {
outputScales_ = java.util.Collections.unmodifiableList(outputScales_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.outputScales_ = outputScales_;
} else {
result.outputScales_ = outputScalesBuilder_.build();
}
result.weightDimMasks_ = weightDimMasks_;
if (weightScalesBuilder_ == null) {
if (((bitField0_ & 0x00400000) == 0x00400000)) {
weightScales_ = java.util.Collections.unmodifiableList(weightScales_);
bitField0_ = (bitField0_ & ~0x00400000);
}
result.weightScales_ = weightScales_;
} else {
result.weightScales_ = weightScalesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (subModulesBuilder_ == null) {
if (!other.subModules_.isEmpty()) {
if (subModules_.isEmpty()) {
subModules_ = other.subModules_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSubModulesIsMutable();
subModules_.addAll(other.subModules_);
}
onChanged();
}
} else {
if (!other.subModules_.isEmpty()) {
if (subModulesBuilder_.isEmpty()) {
subModulesBuilder_.dispose();
subModulesBuilder_ = null;
subModules_ = other.subModules_;
bitField0_ = (bitField0_ & ~0x00000002);
subModulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubModulesFieldBuilder() : null;
} else {
subModulesBuilder_.addAllMessages(other.subModules_);
}
}
}
if (other.hasWeight()) {
mergeWeight(other.getWeight());
}
if (other.hasBias()) {
mergeBias(other.getBias());
}
if (!other.preModules_.isEmpty()) {
if (preModules_.isEmpty()) {
preModules_ = other.preModules_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePreModulesIsMutable();
preModules_.addAll(other.preModules_);
}
onChanged();
}
if (!other.nextModules_.isEmpty()) {
if (nextModules_.isEmpty()) {
nextModules_ = other.nextModules_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNextModulesIsMutable();
nextModules_.addAll(other.nextModules_);
}
onChanged();
}
if (!other.getModuleType().isEmpty()) {
moduleType_ = other.moduleType_;
onChanged();
}
internalGetMutableAttr().mergeFrom(
other.internalGetAttr());
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.getTrain() != false) {
setTrain(other.getTrain());
}
if (!other.getNamePostfix().isEmpty()) {
namePostfix_ = other.namePostfix_;
onChanged();
}
if (other.getId() != 0) {
setId(other.getId());
}
if (other.hasInputShape()) {
mergeInputShape(other.getInputShape());
}
if (other.hasOutputShape()) {
mergeOutputShape(other.getOutputShape());
}
if (other.getHasParameters() != false) {
setHasParameters(other.getHasParameters());
}
if (parametersBuilder_ == null) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
} else {
if (!other.parameters_.isEmpty()) {
if (parametersBuilder_.isEmpty()) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00008000);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParametersFieldBuilder() : null;
} else {
parametersBuilder_.addAllMessages(other.parameters_);
}
}
}
if (other.getIsMklInt8Enabled() != false) {
setIsMklInt8Enabled(other.getIsMklInt8Enabled());
}
if (other.getInputDimMasks() != 0) {
setInputDimMasks(other.getInputDimMasks());
}
if (inputScalesBuilder_ == null) {
if (!other.inputScales_.isEmpty()) {
if (inputScales_.isEmpty()) {
inputScales_ = other.inputScales_;
bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensureInputScalesIsMutable();
inputScales_.addAll(other.inputScales_);
}
onChanged();
}
} else {
if (!other.inputScales_.isEmpty()) {
if (inputScalesBuilder_.isEmpty()) {
inputScalesBuilder_.dispose();
inputScalesBuilder_ = null;
inputScales_ = other.inputScales_;
bitField0_ = (bitField0_ & ~0x00040000);
inputScalesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputScalesFieldBuilder() : null;
} else {
inputScalesBuilder_.addAllMessages(other.inputScales_);
}
}
}
if (other.getOutputDimMasks() != 0) {
setOutputDimMasks(other.getOutputDimMasks());
}
if (outputScalesBuilder_ == null) {
if (!other.outputScales_.isEmpty()) {
if (outputScales_.isEmpty()) {
outputScales_ = other.outputScales_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureOutputScalesIsMutable();
outputScales_.addAll(other.outputScales_);
}
onChanged();
}
} else {
if (!other.outputScales_.isEmpty()) {
if (outputScalesBuilder_.isEmpty()) {
outputScalesBuilder_.dispose();
outputScalesBuilder_ = null;
outputScales_ = other.outputScales_;
bitField0_ = (bitField0_ & ~0x00100000);
outputScalesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputScalesFieldBuilder() : null;
} else {
outputScalesBuilder_.addAllMessages(other.outputScales_);
}
}
}
if (other.getWeightDimMasks() != 0) {
setWeightDimMasks(other.getWeightDimMasks());
}
if (weightScalesBuilder_ == null) {
if (!other.weightScales_.isEmpty()) {
if (weightScales_.isEmpty()) {
weightScales_ = other.weightScales_;
bitField0_ = (bitField0_ & ~0x00400000);
} else {
ensureWeightScalesIsMutable();
weightScales_.addAll(other.weightScales_);
}
onChanged();
}
} else {
if (!other.weightScales_.isEmpty()) {
if (weightScalesBuilder_.isEmpty()) {
weightScalesBuilder_.dispose();
weightScalesBuilder_ = null;
weightScales_ = other.weightScales_;
bitField0_ = (bitField0_ & ~0x00400000);
weightScalesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWeightScalesFieldBuilder() : null;
} else {
weightScalesBuilder_.addAllMessages(other.weightScales_);
}
}
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*module name
*
*
* string name = 1;
*/
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();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*module name
*
*
* string name = 1;
*/
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;
}
}
/**
*
*module name
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
*module name
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*module name
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List subModules_ =
java.util.Collections.emptyList();
private void ensureSubModulesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
subModules_ = new java.util.ArrayList(subModules_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder> subModulesBuilder_;
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public java.util.List getSubModulesList() {
if (subModulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(subModules_);
} else {
return subModulesBuilder_.getMessageList();
}
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public int getSubModulesCount() {
if (subModulesBuilder_ == null) {
return subModules_.size();
} else {
return subModulesBuilder_.getCount();
}
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getSubModules(int index) {
if (subModulesBuilder_ == null) {
return subModules_.get(index);
} else {
return subModulesBuilder_.getMessage(index);
}
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder setSubModules(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) {
if (subModulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubModulesIsMutable();
subModules_.set(index, value);
onChanged();
} else {
subModulesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder setSubModules(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) {
if (subModulesBuilder_ == null) {
ensureSubModulesIsMutable();
subModules_.set(index, builderForValue.build());
onChanged();
} else {
subModulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder addSubModules(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) {
if (subModulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubModulesIsMutable();
subModules_.add(value);
onChanged();
} else {
subModulesBuilder_.addMessage(value);
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder addSubModules(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule value) {
if (subModulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubModulesIsMutable();
subModules_.add(index, value);
onChanged();
} else {
subModulesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder addSubModules(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) {
if (subModulesBuilder_ == null) {
ensureSubModulesIsMutable();
subModules_.add(builderForValue.build());
onChanged();
} else {
subModulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder addSubModules(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder builderForValue) {
if (subModulesBuilder_ == null) {
ensureSubModulesIsMutable();
subModules_.add(index, builderForValue.build());
onChanged();
} else {
subModulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder addAllSubModules(
java.lang.Iterable extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule> values) {
if (subModulesBuilder_ == null) {
ensureSubModulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subModules_);
onChanged();
} else {
subModulesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder clearSubModules() {
if (subModulesBuilder_ == null) {
subModules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
subModulesBuilder_.clear();
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public Builder removeSubModules(int index) {
if (subModulesBuilder_ == null) {
ensureSubModulesIsMutable();
subModules_.remove(index);
onChanged();
} else {
subModulesBuilder_.remove(index);
}
return this;
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder getSubModulesBuilder(
int index) {
return getSubModulesFieldBuilder().getBuilder(index);
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getSubModulesOrBuilder(
int index) {
if (subModulesBuilder_ == null) {
return subModules_.get(index); } else {
return subModulesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getSubModulesOrBuilderList() {
if (subModulesBuilder_ != null) {
return subModulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(subModules_);
}
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addSubModulesBuilder() {
return getSubModulesFieldBuilder().addBuilder(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance());
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder addSubModulesBuilder(
int index) {
return getSubModulesFieldBuilder().addBuilder(
index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.getDefaultInstance());
}
/**
*
* sub modules
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule subModules = 2;
*/
public java.util.List
getSubModulesBuilderList() {
return getSubModulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getSubModulesFieldBuilder() {
if (subModulesBuilder_ == null) {
subModulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>(
subModules_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
subModules_ = null;
}
return subModulesBuilder_;
}
private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor weight_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> weightBuilder_;
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public boolean hasWeight() {
return weightBuilder_ != null || weight_ != null;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getWeight() {
if (weightBuilder_ == null) {
return weight_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_;
} else {
return weightBuilder_.getMessage();
}
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public Builder setWeight(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (weightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
weight_ = value;
onChanged();
} else {
weightBuilder_.setMessage(value);
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public Builder setWeight(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) {
if (weightBuilder_ == null) {
weight_ = builderForValue.build();
onChanged();
} else {
weightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public Builder mergeWeight(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (weightBuilder_ == null) {
if (weight_ != null) {
weight_ =
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder(weight_).mergeFrom(value).buildPartial();
} else {
weight_ = value;
}
onChanged();
} else {
weightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public Builder clearWeight() {
if (weightBuilder_ == null) {
weight_ = null;
onChanged();
} else {
weight_ = null;
weightBuilder_ = null;
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getWeightBuilder() {
onChanged();
return getWeightFieldBuilder().getBuilder();
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getWeightOrBuilder() {
if (weightBuilder_ != null) {
return weightBuilder_.getMessageOrBuilder();
} else {
return weight_ == null ?
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : weight_;
}
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor weight = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getWeightFieldBuilder() {
if (weightBuilder_ == null) {
weightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>(
getWeight(),
getParentForChildren(),
isClean());
weight_ = null;
}
return weightBuilder_;
}
private com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor bias_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> biasBuilder_;
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public boolean hasBias() {
return biasBuilder_ != null || bias_ != null;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getBias() {
if (biasBuilder_ == null) {
return bias_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_;
} else {
return biasBuilder_.getMessage();
}
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public Builder setBias(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (biasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bias_ = value;
onChanged();
} else {
biasBuilder_.setMessage(value);
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public Builder setBias(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) {
if (biasBuilder_ == null) {
bias_ = builderForValue.build();
onChanged();
} else {
biasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public Builder mergeBias(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (biasBuilder_ == null) {
if (bias_ != null) {
bias_ =
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder(bias_).mergeFrom(value).buildPartial();
} else {
bias_ = value;
}
onChanged();
} else {
biasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public Builder clearBias() {
if (biasBuilder_ == null) {
bias_ = null;
onChanged();
} else {
bias_ = null;
biasBuilder_ = null;
}
return this;
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getBiasBuilder() {
onChanged();
return getBiasFieldBuilder().getBuilder();
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getBiasOrBuilder() {
if (biasBuilder_ != null) {
return biasBuilder_.getMessageOrBuilder();
} else {
return bias_ == null ?
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance() : bias_;
}
}
/**
*
* deprecated, please use parameters
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor bias = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getBiasFieldBuilder() {
if (biasBuilder_ == null) {
biasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>(
getBias(),
getParentForChildren(),
isClean());
bias_ = null;
}
return biasBuilder_;
}
private com.google.protobuf.LazyStringList preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreModulesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
preModules_ = new com.google.protobuf.LazyStringArrayList(preModules_);
bitField0_ |= 0x00000010;
}
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public com.google.protobuf.ProtocolStringList
getPreModulesList() {
return preModules_.getUnmodifiableView();
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public int getPreModulesCount() {
return preModules_.size();
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public java.lang.String getPreModules(int index) {
return preModules_.get(index);
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public com.google.protobuf.ByteString
getPreModulesBytes(int index) {
return preModules_.getByteString(index);
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public Builder setPreModules(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreModulesIsMutable();
preModules_.set(index, value);
onChanged();
return this;
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public Builder addPreModules(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreModulesIsMutable();
preModules_.add(value);
onChanged();
return this;
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public Builder addAllPreModules(
java.lang.Iterable values) {
ensurePreModulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preModules_);
onChanged();
return this;
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public Builder clearPreModules() {
preModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*pre modules of the same hierarchy
*
*
* repeated string preModules = 5;
*/
public Builder addPreModulesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreModulesIsMutable();
preModules_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNextModulesIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
nextModules_ = new com.google.protobuf.LazyStringArrayList(nextModules_);
bitField0_ |= 0x00000020;
}
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public com.google.protobuf.ProtocolStringList
getNextModulesList() {
return nextModules_.getUnmodifiableView();
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public int getNextModulesCount() {
return nextModules_.size();
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public java.lang.String getNextModules(int index) {
return nextModules_.get(index);
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public com.google.protobuf.ByteString
getNextModulesBytes(int index) {
return nextModules_.getByteString(index);
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public Builder setNextModules(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNextModulesIsMutable();
nextModules_.set(index, value);
onChanged();
return this;
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public Builder addNextModules(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNextModulesIsMutable();
nextModules_.add(value);
onChanged();
return this;
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public Builder addAllNextModules(
java.lang.Iterable values) {
ensureNextModulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nextModules_);
onChanged();
return this;
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public Builder clearNextModules() {
nextModules_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*next modules of the same hierachy
*
*
* repeated string nextModules = 6;
*/
public Builder addNextModulesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureNextModulesIsMutable();
nextModules_.add(value);
onChanged();
return this;
}
private java.lang.Object moduleType_ = "";
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public java.lang.String getModuleType() {
java.lang.Object ref = moduleType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
moduleType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public com.google.protobuf.ByteString
getModuleTypeBytes() {
java.lang.Object ref = moduleType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public Builder setModuleType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
moduleType_ = value;
onChanged();
return this;
}
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public Builder clearModuleType() {
moduleType_ = getDefaultInstance().getModuleType();
onChanged();
return this;
}
/**
*
*module type to identify a module like linear, graph, etc
*
*
* string moduleType = 7;
*/
public Builder setModuleTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
moduleType_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> attr_;
private com.google.protobuf.MapField
internalGetAttr() {
if (attr_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttrDefaultEntryHolder.defaultEntry);
}
return attr_;
}
private com.google.protobuf.MapField
internalGetMutableAttr() {
onChanged();;
if (attr_ == null) {
attr_ = com.google.protobuf.MapField.newMapField(
AttrDefaultEntryHolder.defaultEntry);
}
if (!attr_.isMutable()) {
attr_ = attr_.copy();
}
return attr_;
}
public int getAttrCount() {
return internalGetAttr().getMap().size();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public boolean containsAttr(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttr().getMap().containsKey(key);
}
/**
* Use {@link #getAttrMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getAttr() {
return getAttrMap();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public java.util.Map getAttrMap() {
return internalGetAttr().getMap();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttr().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getAttrOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttr().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttr() {
internalGetMutableAttr().getMutableMap()
.clear();
return this;
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public Builder removeAttr(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttr().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttr() {
return internalGetMutableAttr().getMutableMap();
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public Builder putAttr(
java.lang.String key,
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttr().getMutableMap()
.put(key, value);
return this;
}
/**
*
* module attributes
*
*
* map<string, .com.intel.analytics.bigdl.serialization.AttrValue> attr = 8;
*/
public Builder putAllAttr(
java.util.Map values) {
internalGetMutableAttr().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object version_ = "";
/**
*
*version of this module
*
*
* string version = 9;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*version of this module
*
*
* string version = 9;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*version of this module
*
*
* string version = 9;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
*version of this module
*
*
* string version = 9;
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
*version of this module
*
*
* string version = 9;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private boolean train_ ;
/**
*
* is module status in train
*
*
* bool train = 10;
*/
public boolean getTrain() {
return train_;
}
/**
*
* is module status in train
*
*
* bool train = 10;
*/
public Builder setTrain(boolean value) {
train_ = value;
onChanged();
return this;
}
/**
*
* is module status in train
*
*
* bool train = 10;
*/
public Builder clearTrain() {
train_ = false;
onChanged();
return this;
}
private java.lang.Object namePostfix_ = "";
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public java.lang.String getNamePostfix() {
java.lang.Object ref = namePostfix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namePostfix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public com.google.protobuf.ByteString
getNamePostfixBytes() {
java.lang.Object ref = namePostfix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namePostfix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public Builder setNamePostfix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namePostfix_ = value;
onChanged();
return this;
}
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public Builder clearNamePostfix() {
namePostfix_ = getDefaultInstance().getNamePostfix();
onChanged();
return this;
}
/**
*
* name post fix
*
*
* string namePostfix = 11;
*/
public Builder setNamePostfixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namePostfix_ = value;
onChanged();
return this;
}
private int id_ ;
/**
*
* unique ID of this module , used for shared modules
*
*
* int32 id = 12;
*/
public int getId() {
return id_;
}
/**
*
* unique ID of this module , used for shared modules
*
*
* int32 id = 12;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
*
* unique ID of this module , used for shared modules
*
*
* int32 id = 12;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private com.intel.analytics.bigdl.serialization.Bigdl.Shape inputShape_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> inputShapeBuilder_;
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public boolean hasInputShape() {
return inputShapeBuilder_ != null || inputShape_ != null;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape getInputShape() {
if (inputShapeBuilder_ == null) {
return inputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_;
} else {
return inputShapeBuilder_.getMessage();
}
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public Builder setInputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) {
if (inputShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputShape_ = value;
onChanged();
} else {
inputShapeBuilder_.setMessage(value);
}
return this;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public Builder setInputShape(
com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) {
if (inputShapeBuilder_ == null) {
inputShape_ = builderForValue.build();
onChanged();
} else {
inputShapeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public Builder mergeInputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) {
if (inputShapeBuilder_ == null) {
if (inputShape_ != null) {
inputShape_ =
com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder(inputShape_).mergeFrom(value).buildPartial();
} else {
inputShape_ = value;
}
onChanged();
} else {
inputShapeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public Builder clearInputShape() {
if (inputShapeBuilder_ == null) {
inputShape_ = null;
onChanged();
} else {
inputShape_ = null;
inputShapeBuilder_ = null;
}
return this;
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getInputShapeBuilder() {
onChanged();
return getInputShapeFieldBuilder().getBuilder();
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getInputShapeOrBuilder() {
if (inputShapeBuilder_ != null) {
return inputShapeBuilder_.getMessageOrBuilder();
} else {
return inputShape_ == null ?
com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : inputShape_;
}
}
/**
*
* input shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape inputShape = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>
getInputShapeFieldBuilder() {
if (inputShapeBuilder_ == null) {
inputShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>(
getInputShape(),
getParentForChildren(),
isClean());
inputShape_ = null;
}
return inputShapeBuilder_;
}
private com.intel.analytics.bigdl.serialization.Bigdl.Shape outputShape_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder> outputShapeBuilder_;
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public boolean hasOutputShape() {
return outputShapeBuilder_ != null || outputShape_ != null;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape getOutputShape() {
if (outputShapeBuilder_ == null) {
return outputShape_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_;
} else {
return outputShapeBuilder_.getMessage();
}
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public Builder setOutputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) {
if (outputShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputShape_ = value;
onChanged();
} else {
outputShapeBuilder_.setMessage(value);
}
return this;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public Builder setOutputShape(
com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder builderForValue) {
if (outputShapeBuilder_ == null) {
outputShape_ = builderForValue.build();
onChanged();
} else {
outputShapeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public Builder mergeOutputShape(com.intel.analytics.bigdl.serialization.Bigdl.Shape value) {
if (outputShapeBuilder_ == null) {
if (outputShape_ != null) {
outputShape_ =
com.intel.analytics.bigdl.serialization.Bigdl.Shape.newBuilder(outputShape_).mergeFrom(value).buildPartial();
} else {
outputShape_ = value;
}
onChanged();
} else {
outputShapeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public Builder clearOutputShape() {
if (outputShapeBuilder_ == null) {
outputShape_ = null;
onChanged();
} else {
outputShape_ = null;
outputShapeBuilder_ = null;
}
return this;
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder getOutputShapeBuilder() {
onChanged();
return getOutputShapeFieldBuilder().getBuilder();
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getOutputShapeOrBuilder() {
if (outputShapeBuilder_ != null) {
return outputShapeBuilder_.getMessageOrBuilder();
} else {
return outputShape_ == null ?
com.intel.analytics.bigdl.serialization.Bigdl.Shape.getDefaultInstance() : outputShape_;
}
}
/**
*
*output shape
*
*
* .com.intel.analytics.bigdl.serialization.Shape outputShape = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>
getOutputShapeFieldBuilder() {
if (outputShapeBuilder_ == null) {
outputShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.Shape, com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder, com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>(
getOutputShape(),
getParentForChildren(),
isClean());
outputShape_ = null;
}
return outputShapeBuilder_;
}
private boolean hasParameters_ ;
/**
*
* indicator if module has parameters
*
*
* bool hasParameters = 15;
*/
public boolean getHasParameters() {
return hasParameters_;
}
/**
*
* indicator if module has parameters
*
*
* bool hasParameters = 15;
*/
public Builder setHasParameters(boolean value) {
hasParameters_ = value;
onChanged();
return this;
}
/**
*
* indicator if module has parameters
*
*
* bool hasParameters = 15;
*/
public Builder clearHasParameters() {
hasParameters_ = false;
onChanged();
return this;
}
private java.util.List parameters_ =
java.util.Collections.emptyList();
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
parameters_ = new java.util.ArrayList(parameters_);
bitField0_ |= 0x00008000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder> parametersBuilder_;
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public java.util.List getParametersList() {
if (parametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameters_);
} else {
return parametersBuilder_.getMessageList();
}
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public int getParametersCount() {
if (parametersBuilder_ == null) {
return parameters_.size();
} else {
return parametersBuilder_.getCount();
}
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getParameters(int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index);
} else {
return parametersBuilder_.getMessage(index);
}
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder setParameters(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
} else {
parametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder setParameters(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.set(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder addParameters(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
} else {
parametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder addParameters(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(index, value);
onChanged();
} else {
parametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder addParameters(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder addParameters(
int index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder addAllParameters(
java.lang.Iterable extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor> values) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
} else {
parametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
} else {
parametersBuilder_.clear();
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public Builder removeParameters(int index) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.remove(index);
onChanged();
} else {
parametersBuilder_.remove(index);
}
return this;
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder getParametersBuilder(
int index) {
return getParametersFieldBuilder().getBuilder(index);
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getParametersOrBuilder(
int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index); } else {
return parametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getParametersOrBuilderList() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameters_);
}
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addParametersBuilder() {
return getParametersFieldBuilder().addBuilder(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance());
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder addParametersBuilder(
int index) {
return getParametersFieldBuilder().addBuilder(
index, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance());
}
/**
*
* parameters, e.g., weight and bias
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor parameters = 16;
*/
public java.util.List
getParametersBuilderList() {
return getParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>(
parameters_,
((bitField0_ & 0x00008000) == 0x00008000),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
private boolean isMklInt8Enabled_ ;
/**
* bool isMklInt8Enabled = 17;
*/
public boolean getIsMklInt8Enabled() {
return isMklInt8Enabled_;
}
/**
* bool isMklInt8Enabled = 17;
*/
public Builder setIsMklInt8Enabled(boolean value) {
isMklInt8Enabled_ = value;
onChanged();
return this;
}
/**
* bool isMklInt8Enabled = 17;
*/
public Builder clearIsMklInt8Enabled() {
isMklInt8Enabled_ = false;
onChanged();
return this;
}
private int inputDimMasks_ ;
/**
* int32 inputDimMasks = 18;
*/
public int getInputDimMasks() {
return inputDimMasks_;
}
/**
* int32 inputDimMasks = 18;
*/
public Builder setInputDimMasks(int value) {
inputDimMasks_ = value;
onChanged();
return this;
}
/**
* int32 inputDimMasks = 18;
*/
public Builder clearInputDimMasks() {
inputDimMasks_ = 0;
onChanged();
return this;
}
private java.util.List inputScales_ =
java.util.Collections.emptyList();
private void ensureInputScalesIsMutable() {
if (!((bitField0_ & 0x00040000) == 0x00040000)) {
inputScales_ = new java.util.ArrayList(inputScales_);
bitField0_ |= 0x00040000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> inputScalesBuilder_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public java.util.List getInputScalesList() {
if (inputScalesBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputScales_);
} else {
return inputScalesBuilder_.getMessageList();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public int getInputScalesCount() {
if (inputScalesBuilder_ == null) {
return inputScales_.size();
} else {
return inputScalesBuilder_.getCount();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getInputScales(int index) {
if (inputScalesBuilder_ == null) {
return inputScales_.get(index);
} else {
return inputScalesBuilder_.getMessage(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder setInputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (inputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputScalesIsMutable();
inputScales_.set(index, value);
onChanged();
} else {
inputScalesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder setInputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (inputScalesBuilder_ == null) {
ensureInputScalesIsMutable();
inputScales_.set(index, builderForValue.build());
onChanged();
} else {
inputScalesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder addInputScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (inputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputScalesIsMutable();
inputScales_.add(value);
onChanged();
} else {
inputScalesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder addInputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (inputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputScalesIsMutable();
inputScales_.add(index, value);
onChanged();
} else {
inputScalesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder addInputScales(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (inputScalesBuilder_ == null) {
ensureInputScalesIsMutable();
inputScales_.add(builderForValue.build());
onChanged();
} else {
inputScalesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder addInputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (inputScalesBuilder_ == null) {
ensureInputScalesIsMutable();
inputScales_.add(index, builderForValue.build());
onChanged();
} else {
inputScalesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder addAllInputScales(
java.lang.Iterable extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> values) {
if (inputScalesBuilder_ == null) {
ensureInputScalesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputScales_);
onChanged();
} else {
inputScalesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder clearInputScales() {
if (inputScalesBuilder_ == null) {
inputScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
} else {
inputScalesBuilder_.clear();
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public Builder removeInputScales(int index) {
if (inputScalesBuilder_ == null) {
ensureInputScalesIsMutable();
inputScales_.remove(index);
onChanged();
} else {
inputScalesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getInputScalesBuilder(
int index) {
return getInputScalesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getInputScalesOrBuilder(
int index) {
if (inputScalesBuilder_ == null) {
return inputScales_.get(index); } else {
return inputScalesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getInputScalesOrBuilderList() {
if (inputScalesBuilder_ != null) {
return inputScalesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputScales_);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addInputScalesBuilder() {
return getInputScalesFieldBuilder().addBuilder(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addInputScalesBuilder(
int index) {
return getInputScalesFieldBuilder().addBuilder(
index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue inputScales = 19;
*/
public java.util.List
getInputScalesBuilderList() {
return getInputScalesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getInputScalesFieldBuilder() {
if (inputScalesBuilder_ == null) {
inputScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>(
inputScales_,
((bitField0_ & 0x00040000) == 0x00040000),
getParentForChildren(),
isClean());
inputScales_ = null;
}
return inputScalesBuilder_;
}
private int outputDimMasks_ ;
/**
* int32 outputDimMasks = 20;
*/
public int getOutputDimMasks() {
return outputDimMasks_;
}
/**
* int32 outputDimMasks = 20;
*/
public Builder setOutputDimMasks(int value) {
outputDimMasks_ = value;
onChanged();
return this;
}
/**
* int32 outputDimMasks = 20;
*/
public Builder clearOutputDimMasks() {
outputDimMasks_ = 0;
onChanged();
return this;
}
private java.util.List outputScales_ =
java.util.Collections.emptyList();
private void ensureOutputScalesIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
outputScales_ = new java.util.ArrayList(outputScales_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> outputScalesBuilder_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public java.util.List getOutputScalesList() {
if (outputScalesBuilder_ == null) {
return java.util.Collections.unmodifiableList(outputScales_);
} else {
return outputScalesBuilder_.getMessageList();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public int getOutputScalesCount() {
if (outputScalesBuilder_ == null) {
return outputScales_.size();
} else {
return outputScalesBuilder_.getCount();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getOutputScales(int index) {
if (outputScalesBuilder_ == null) {
return outputScales_.get(index);
} else {
return outputScalesBuilder_.getMessage(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder setOutputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (outputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputScalesIsMutable();
outputScales_.set(index, value);
onChanged();
} else {
outputScalesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder setOutputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (outputScalesBuilder_ == null) {
ensureOutputScalesIsMutable();
outputScales_.set(index, builderForValue.build());
onChanged();
} else {
outputScalesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder addOutputScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (outputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputScalesIsMutable();
outputScales_.add(value);
onChanged();
} else {
outputScalesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder addOutputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (outputScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputScalesIsMutable();
outputScales_.add(index, value);
onChanged();
} else {
outputScalesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder addOutputScales(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (outputScalesBuilder_ == null) {
ensureOutputScalesIsMutable();
outputScales_.add(builderForValue.build());
onChanged();
} else {
outputScalesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder addOutputScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (outputScalesBuilder_ == null) {
ensureOutputScalesIsMutable();
outputScales_.add(index, builderForValue.build());
onChanged();
} else {
outputScalesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder addAllOutputScales(
java.lang.Iterable extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> values) {
if (outputScalesBuilder_ == null) {
ensureOutputScalesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputScales_);
onChanged();
} else {
outputScalesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder clearOutputScales() {
if (outputScalesBuilder_ == null) {
outputScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
outputScalesBuilder_.clear();
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public Builder removeOutputScales(int index) {
if (outputScalesBuilder_ == null) {
ensureOutputScalesIsMutable();
outputScales_.remove(index);
onChanged();
} else {
outputScalesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getOutputScalesBuilder(
int index) {
return getOutputScalesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getOutputScalesOrBuilder(
int index) {
if (outputScalesBuilder_ == null) {
return outputScales_.get(index); } else {
return outputScalesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getOutputScalesOrBuilderList() {
if (outputScalesBuilder_ != null) {
return outputScalesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputScales_);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addOutputScalesBuilder() {
return getOutputScalesFieldBuilder().addBuilder(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addOutputScalesBuilder(
int index) {
return getOutputScalesFieldBuilder().addBuilder(
index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue outputScales = 21;
*/
public java.util.List
getOutputScalesBuilderList() {
return getOutputScalesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getOutputScalesFieldBuilder() {
if (outputScalesBuilder_ == null) {
outputScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>(
outputScales_,
((bitField0_ & 0x00100000) == 0x00100000),
getParentForChildren(),
isClean());
outputScales_ = null;
}
return outputScalesBuilder_;
}
private int weightDimMasks_ ;
/**
* int32 weightDimMasks = 22;
*/
public int getWeightDimMasks() {
return weightDimMasks_;
}
/**
* int32 weightDimMasks = 22;
*/
public Builder setWeightDimMasks(int value) {
weightDimMasks_ = value;
onChanged();
return this;
}
/**
* int32 weightDimMasks = 22;
*/
public Builder clearWeightDimMasks() {
weightDimMasks_ = 0;
onChanged();
return this;
}
private java.util.List weightScales_ =
java.util.Collections.emptyList();
private void ensureWeightScalesIsMutable() {
if (!((bitField0_ & 0x00400000) == 0x00400000)) {
weightScales_ = new java.util.ArrayList(weightScales_);
bitField0_ |= 0x00400000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder> weightScalesBuilder_;
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public java.util.List getWeightScalesList() {
if (weightScalesBuilder_ == null) {
return java.util.Collections.unmodifiableList(weightScales_);
} else {
return weightScalesBuilder_.getMessageList();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public int getWeightScalesCount() {
if (weightScalesBuilder_ == null) {
return weightScales_.size();
} else {
return weightScalesBuilder_.getCount();
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue getWeightScales(int index) {
if (weightScalesBuilder_ == null) {
return weightScales_.get(index);
} else {
return weightScalesBuilder_.getMessage(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder setWeightScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (weightScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightScalesIsMutable();
weightScales_.set(index, value);
onChanged();
} else {
weightScalesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder setWeightScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (weightScalesBuilder_ == null) {
ensureWeightScalesIsMutable();
weightScales_.set(index, builderForValue.build());
onChanged();
} else {
weightScalesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder addWeightScales(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (weightScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightScalesIsMutable();
weightScales_.add(value);
onChanged();
} else {
weightScalesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder addWeightScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue value) {
if (weightScalesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightScalesIsMutable();
weightScales_.add(index, value);
onChanged();
} else {
weightScalesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder addWeightScales(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (weightScalesBuilder_ == null) {
ensureWeightScalesIsMutable();
weightScales_.add(builderForValue.build());
onChanged();
} else {
weightScalesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder addWeightScales(
int index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder builderForValue) {
if (weightScalesBuilder_ == null) {
ensureWeightScalesIsMutable();
weightScales_.add(index, builderForValue.build());
onChanged();
} else {
weightScalesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder addAllWeightScales(
java.lang.Iterable extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValue> values) {
if (weightScalesBuilder_ == null) {
ensureWeightScalesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, weightScales_);
onChanged();
} else {
weightScalesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder clearWeightScales() {
if (weightScalesBuilder_ == null) {
weightScales_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
} else {
weightScalesBuilder_.clear();
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public Builder removeWeightScales(int index) {
if (weightScalesBuilder_ == null) {
ensureWeightScalesIsMutable();
weightScales_.remove(index);
onChanged();
} else {
weightScalesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder getWeightScalesBuilder(
int index) {
return getWeightScalesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder getWeightScalesOrBuilder(
int index) {
if (weightScalesBuilder_ == null) {
return weightScales_.get(index); } else {
return weightScalesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getWeightScalesOrBuilderList() {
if (weightScalesBuilder_ != null) {
return weightScalesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(weightScales_);
}
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addWeightScalesBuilder() {
return getWeightScalesFieldBuilder().addBuilder(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder addWeightScalesBuilder(
int index) {
return getWeightScalesFieldBuilder().addBuilder(
index, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.getDefaultInstance());
}
/**
* repeated .com.intel.analytics.bigdl.serialization.AttrValue weightScales = 23;
*/
public java.util.List
getWeightScalesBuilderList() {
return getWeightScalesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>
getWeightScalesFieldBuilder() {
if (weightScalesBuilder_ == null) {
weightScalesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder, com.intel.analytics.bigdl.serialization.Bigdl.AttrValueOrBuilder>(
weightScales_,
((bitField0_ & 0x00400000) == 0x00400000),
getParentForChildren(),
isClean());
weightScales_ = null;
}
return weightScalesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.BigDLModule)
}
// @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.BigDLModule)
private static final com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule();
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BigDLModule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BigDLModule(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InitMethodOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.InitMethod)
com.google.protobuf.MessageOrBuilder {
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
int getMethodTypeValue();
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType();
/**
* repeated double data = 2;
*/
java.util.List getDataList();
/**
* repeated double data = 2;
*/
int getDataCount();
/**
* repeated double data = 2;
*/
double getData(int index);
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.InitMethod}
*/
public static final class InitMethod extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.InitMethod)
InitMethodOrBuilder {
private static final long serialVersionUID = 0L;
// Use InitMethod.newBuilder() to construct.
private InitMethod(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InitMethod() {
methodType_ = 0;
data_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InitMethod(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
methodType_ = rawValue;
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
data_.add(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
data_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.class, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder.class);
}
private int bitField0_;
public static final int METHODTYPE_FIELD_NUMBER = 1;
private int methodType_;
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public int getMethodTypeValue() {
return methodType_;
}
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType() {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType result = com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.valueOf(methodType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.UNRECOGNIZED : result;
}
public static final int DATA_FIELD_NUMBER = 2;
private java.util.List data_;
/**
* repeated double data = 2;
*/
public java.util.List
getDataList() {
return data_;
}
/**
* repeated double data = 2;
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated double data = 2;
*/
public double getData(int index) {
return data_.get(index);
}
private int dataMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (methodType_ != com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.EMPTY_INITIALIZATION.getNumber()) {
output.writeEnum(1, methodType_);
}
if (getDataList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(dataMemoizedSerializedSize);
}
for (int i = 0; i < data_.size(); i++) {
output.writeDoubleNoTag(data_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (methodType_ != com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.EMPTY_INITIALIZATION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, methodType_);
}
{
int dataSize = 0;
dataSize = 8 * getDataList().size();
size += dataSize;
if (!getDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
dataMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.InitMethod)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod other = (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) obj;
boolean result = true;
result = result && methodType_ == other.methodType_;
result = result && getDataList()
.equals(other.getDataList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + METHODTYPE_FIELD_NUMBER;
hash = (53 * hash) + methodType_;
if (getDataCount() > 0) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.InitMethod}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.InitMethod)
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.class, com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
methodType_ = 0;
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_InitMethod_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod build() {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod result = new com.intel.analytics.bigdl.serialization.Bigdl.InitMethod(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.methodType_ = methodType_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = java.util.Collections.unmodifiableList(data_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.getDefaultInstance()) return this;
if (other.methodType_ != 0) {
setMethodTypeValue(other.getMethodTypeValue());
}
if (!other.data_.isEmpty()) {
if (data_.isEmpty()) {
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDataIsMutable();
data_.addAll(other.data_);
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int methodType_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public int getMethodTypeValue() {
return methodType_;
}
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public Builder setMethodTypeValue(int value) {
methodType_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType getMethodType() {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType result = com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.valueOf(methodType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public Builder setMethodType(com.intel.analytics.bigdl.serialization.Bigdl.InitMethodType value) {
if (value == null) {
throw new NullPointerException();
}
methodType_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.InitMethodType methodType = 1;
*/
public Builder clearMethodType() {
methodType_ = 0;
onChanged();
return this;
}
private java.util.List data_ = java.util.Collections.emptyList();
private void ensureDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
data_ = new java.util.ArrayList(data_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated double data = 2;
*/
public java.util.List
getDataList() {
return java.util.Collections.unmodifiableList(data_);
}
/**
* repeated double data = 2;
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated double data = 2;
*/
public double getData(int index) {
return data_.get(index);
}
/**
* repeated double data = 2;
*/
public Builder setData(
int index, double value) {
ensureDataIsMutable();
data_.set(index, value);
onChanged();
return this;
}
/**
* repeated double data = 2;
*/
public Builder addData(double value) {
ensureDataIsMutable();
data_.add(value);
onChanged();
return this;
}
/**
* repeated double data = 2;
*/
public Builder addAllData(
java.lang.Iterable extends java.lang.Double> values) {
ensureDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, data_);
onChanged();
return this;
}
/**
* repeated double data = 2;
*/
public Builder clearData() {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.InitMethod)
}
// @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.InitMethod)
private static final com.intel.analytics.bigdl.serialization.Bigdl.InitMethod DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.InitMethod();
}
public static com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public InitMethod parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InitMethod(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BigDLTensorOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.BigDLTensor)
com.google.protobuf.MessageOrBuilder {
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
int getDatatypeValue();
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype();
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
java.util.List getSizeList();
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
int getSizeCount();
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
int getSize(int index);
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
java.util.List getStrideList();
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
int getStrideCount();
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
int getStride(int index);
/**
*
*offset
*
*
* int32 offset = 4;
*/
int getOffset();
/**
*
* dimension
*
*
* int32 dimension = 5;
*/
int getDimension();
/**
*
*total number of elements
*
*
* int32 nElements = 6;
*/
int getNElements();
/**
*
* is scalar tensor
*
*
* bool isScalar = 7;
*/
boolean getIsScalar();
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
boolean hasStorage();
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage();
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder();
/**
*
* tensor ID, used for tensor sharing
*
*
* int32 id = 9;
*/
int getId();
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
int getTensorTypeValue();
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType();
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLTensor}
*/
public static final class BigDLTensor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.BigDLTensor)
BigDLTensorOrBuilder {
private static final long serialVersionUID = 0L;
// Use BigDLTensor.newBuilder() to construct.
private BigDLTensor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BigDLTensor() {
datatype_ = 0;
size_ = java.util.Collections.emptyList();
stride_ = java.util.Collections.emptyList();
offset_ = 0;
dimension_ = 0;
nElements_ = 0;
isScalar_ = false;
id_ = 0;
tensorType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BigDLTensor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
datatype_ = rawValue;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
size_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
size_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
size_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
size_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stride_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
stride_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
stride_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
stride_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 32: {
offset_ = input.readInt32();
break;
}
case 40: {
dimension_ = input.readInt32();
break;
}
case 48: {
nElements_ = input.readInt32();
break;
}
case 56: {
isScalar_ = input.readBool();
break;
}
case 66: {
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder subBuilder = null;
if (storage_ != null) {
subBuilder = storage_.toBuilder();
}
storage_ = input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storage_);
storage_ = subBuilder.buildPartial();
}
break;
}
case 72: {
id_ = input.readInt32();
break;
}
case 80: {
int rawValue = input.readEnum();
tensorType_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
size_ = java.util.Collections.unmodifiableList(size_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stride_ = java.util.Collections.unmodifiableList(stride_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder.class);
}
private int bitField0_;
public static final int DATATYPE_FIELD_NUMBER = 1;
private int datatype_;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
public static final int SIZE_FIELD_NUMBER = 2;
private java.util.List size_;
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public java.util.List
getSizeList() {
return size_;
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public int getSizeCount() {
return size_.size();
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public int getSize(int index) {
return size_.get(index);
}
private int sizeMemoizedSerializedSize = -1;
public static final int STRIDE_FIELD_NUMBER = 3;
private java.util.List stride_;
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public java.util.List
getStrideList() {
return stride_;
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public int getStrideCount() {
return stride_.size();
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public int getStride(int index) {
return stride_.get(index);
}
private int strideMemoizedSerializedSize = -1;
public static final int OFFSET_FIELD_NUMBER = 4;
private int offset_;
/**
*
*offset
*
*
* int32 offset = 4;
*/
public int getOffset() {
return offset_;
}
public static final int DIMENSION_FIELD_NUMBER = 5;
private int dimension_;
/**
*
* dimension
*
*
* int32 dimension = 5;
*/
public int getDimension() {
return dimension_;
}
public static final int NELEMENTS_FIELD_NUMBER = 6;
private int nElements_;
/**
*
*total number of elements
*
*
* int32 nElements = 6;
*/
public int getNElements() {
return nElements_;
}
public static final int ISSCALAR_FIELD_NUMBER = 7;
private boolean isScalar_;
/**
*
* is scalar tensor
*
*
* bool isScalar = 7;
*/
public boolean getIsScalar() {
return isScalar_;
}
public static final int STORAGE_FIELD_NUMBER = 8;
private com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage storage_;
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public boolean hasStorage() {
return storage_ != null;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage() {
return storage_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder() {
return getStorage();
}
public static final int ID_FIELD_NUMBER = 9;
private int id_;
/**
*
* tensor ID, used for tensor sharing
*
*
* int32 id = 9;
*/
public int getId() {
return id_;
}
public static final int TENSORTYPE_FIELD_NUMBER = 10;
private int tensorType_;
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public int getTensorTypeValue() {
return tensorType_;
}
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType() {
com.intel.analytics.bigdl.serialization.Bigdl.TensorType result = com.intel.analytics.bigdl.serialization.Bigdl.TensorType.valueOf(tensorType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorType.UNRECOGNIZED : result;
}
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 {
getSerializedSize();
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
output.writeEnum(1, datatype_);
}
if (getSizeList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(sizeMemoizedSerializedSize);
}
for (int i = 0; i < size_.size(); i++) {
output.writeInt32NoTag(size_.get(i));
}
if (getStrideList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(strideMemoizedSerializedSize);
}
for (int i = 0; i < stride_.size(); i++) {
output.writeInt32NoTag(stride_.get(i));
}
if (offset_ != 0) {
output.writeInt32(4, offset_);
}
if (dimension_ != 0) {
output.writeInt32(5, dimension_);
}
if (nElements_ != 0) {
output.writeInt32(6, nElements_);
}
if (isScalar_ != false) {
output.writeBool(7, isScalar_);
}
if (storage_ != null) {
output.writeMessage(8, getStorage());
}
if (id_ != 0) {
output.writeInt32(9, id_);
}
if (tensorType_ != com.intel.analytics.bigdl.serialization.Bigdl.TensorType.DENSE.getNumber()) {
output.writeEnum(10, tensorType_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, datatype_);
}
{
int dataSize = 0;
for (int i = 0; i < size_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(size_.get(i));
}
size += dataSize;
if (!getSizeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sizeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < stride_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(stride_.get(i));
}
size += dataSize;
if (!getStrideList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
strideMemoizedSerializedSize = dataSize;
}
if (offset_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, offset_);
}
if (dimension_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, dimension_);
}
if (nElements_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, nElements_);
}
if (isScalar_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isScalar_);
}
if (storage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getStorage());
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, id_);
}
if (tensorType_ != com.intel.analytics.bigdl.serialization.Bigdl.TensorType.DENSE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, tensorType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor other = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) obj;
boolean result = true;
result = result && datatype_ == other.datatype_;
result = result && getSizeList()
.equals(other.getSizeList());
result = result && getStrideList()
.equals(other.getStrideList());
result = result && (getOffset()
== other.getOffset());
result = result && (getDimension()
== other.getDimension());
result = result && (getNElements()
== other.getNElements());
result = result && (getIsScalar()
== other.getIsScalar());
result = result && (hasStorage() == other.hasStorage());
if (hasStorage()) {
result = result && getStorage()
.equals(other.getStorage());
}
result = result && (getId()
== other.getId());
result = result && tensorType_ == other.tensorType_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + datatype_;
if (getSizeCount() > 0) {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSizeList().hashCode();
}
if (getStrideCount() > 0) {
hash = (37 * hash) + STRIDE_FIELD_NUMBER;
hash = (53 * hash) + getStrideList().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
hash = (37 * hash) + DIMENSION_FIELD_NUMBER;
hash = (53 * hash) + getDimension();
hash = (37 * hash) + NELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getNElements();
hash = (37 * hash) + ISSCALAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsScalar());
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + TENSORTYPE_FIELD_NUMBER;
hash = (53 * hash) + tensorType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.BigDLTensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.BigDLTensor)
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.class, com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
datatype_ = 0;
size_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
stride_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
offset_ = 0;
dimension_ = 0;
nElements_ = 0;
isScalar_ = false;
if (storageBuilder_ == null) {
storage_ = null;
} else {
storage_ = null;
storageBuilder_ = null;
}
id_ = 0;
tensorType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_BigDLTensor_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor build() {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor result = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.datatype_ = datatype_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size_ = java.util.Collections.unmodifiableList(size_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.size_ = size_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
stride_ = java.util.Collections.unmodifiableList(stride_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.stride_ = stride_;
result.offset_ = offset_;
result.dimension_ = dimension_;
result.nElements_ = nElements_;
result.isScalar_ = isScalar_;
if (storageBuilder_ == null) {
result.storage_ = storage_;
} else {
result.storage_ = storageBuilder_.build();
}
result.id_ = id_;
result.tensorType_ = tensorType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.getDefaultInstance()) return this;
if (other.datatype_ != 0) {
setDatatypeValue(other.getDatatypeValue());
}
if (!other.size_.isEmpty()) {
if (size_.isEmpty()) {
size_ = other.size_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSizeIsMutable();
size_.addAll(other.size_);
}
onChanged();
}
if (!other.stride_.isEmpty()) {
if (stride_.isEmpty()) {
stride_ = other.stride_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureStrideIsMutable();
stride_.addAll(other.stride_);
}
onChanged();
}
if (other.getOffset() != 0) {
setOffset(other.getOffset());
}
if (other.getDimension() != 0) {
setDimension(other.getDimension());
}
if (other.getNElements() != 0) {
setNElements(other.getNElements());
}
if (other.getIsScalar() != false) {
setIsScalar(other.getIsScalar());
}
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.getId() != 0) {
setId(other.getId());
}
if (other.tensorType_ != 0) {
setTensorTypeValue(other.getTensorTypeValue());
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int datatype_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder setDatatypeValue(int value) {
datatype_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) {
if (value == null) {
throw new NullPointerException();
}
datatype_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder clearDatatype() {
datatype_ = 0;
onChanged();
return this;
}
private java.util.List size_ = java.util.Collections.emptyList();
private void ensureSizeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
size_ = new java.util.ArrayList(size_);
bitField0_ |= 0x00000002;
}
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public java.util.List
getSizeList() {
return java.util.Collections.unmodifiableList(size_);
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public int getSizeCount() {
return size_.size();
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public int getSize(int index) {
return size_.get(index);
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public Builder setSize(
int index, int value) {
ensureSizeIsMutable();
size_.set(index, value);
onChanged();
return this;
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public Builder addSize(int value) {
ensureSizeIsMutable();
size_.add(value);
onChanged();
return this;
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public Builder addAllSize(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSizeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, size_);
onChanged();
return this;
}
/**
*
*size of tensor
*
*
* repeated int32 size = 2;
*/
public Builder clearSize() {
size_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List stride_ = java.util.Collections.emptyList();
private void ensureStrideIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
stride_ = new java.util.ArrayList(stride_);
bitField0_ |= 0x00000004;
}
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public java.util.List
getStrideList() {
return java.util.Collections.unmodifiableList(stride_);
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public int getStrideCount() {
return stride_.size();
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public int getStride(int index) {
return stride_.get(index);
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public Builder setStride(
int index, int value) {
ensureStrideIsMutable();
stride_.set(index, value);
onChanged();
return this;
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public Builder addStride(int value) {
ensureStrideIsMutable();
stride_.add(value);
onChanged();
return this;
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public Builder addAllStride(
java.lang.Iterable extends java.lang.Integer> values) {
ensureStrideIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stride_);
onChanged();
return this;
}
/**
*
*stride of tensor
*
*
* repeated int32 stride = 3;
*/
public Builder clearStride() {
stride_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private int offset_ ;
/**
*
*offset
*
*
* int32 offset = 4;
*/
public int getOffset() {
return offset_;
}
/**
*
*offset
*
*
* int32 offset = 4;
*/
public Builder setOffset(int value) {
offset_ = value;
onChanged();
return this;
}
/**
*
*offset
*
*
* int32 offset = 4;
*/
public Builder clearOffset() {
offset_ = 0;
onChanged();
return this;
}
private int dimension_ ;
/**
*
* dimension
*
*
* int32 dimension = 5;
*/
public int getDimension() {
return dimension_;
}
/**
*
* dimension
*
*
* int32 dimension = 5;
*/
public Builder setDimension(int value) {
dimension_ = value;
onChanged();
return this;
}
/**
*
* dimension
*
*
* int32 dimension = 5;
*/
public Builder clearDimension() {
dimension_ = 0;
onChanged();
return this;
}
private int nElements_ ;
/**
*
*total number of elements
*
*
* int32 nElements = 6;
*/
public int getNElements() {
return nElements_;
}
/**
*
*total number of elements
*
*
* int32 nElements = 6;
*/
public Builder setNElements(int value) {
nElements_ = value;
onChanged();
return this;
}
/**
*
*total number of elements
*
*
* int32 nElements = 6;
*/
public Builder clearNElements() {
nElements_ = 0;
onChanged();
return this;
}
private boolean isScalar_ ;
/**
*
* is scalar tensor
*
*
* bool isScalar = 7;
*/
public boolean getIsScalar() {
return isScalar_;
}
/**
*
* is scalar tensor
*
*
* bool isScalar = 7;
*/
public Builder setIsScalar(boolean value) {
isScalar_ = value;
onChanged();
return this;
}
/**
*
* is scalar tensor
*
*
* bool isScalar = 7;
*/
public Builder clearIsScalar() {
isScalar_ = false;
onChanged();
return this;
}
private com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage storage_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder> storageBuilder_;
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public boolean hasStorage() {
return storageBuilder_ != null || storage_ != null;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public Builder setStorage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
onChanged();
} else {
storageBuilder_.setMessage(value);
}
return this;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public Builder setStorage(
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
onChanged();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public Builder mergeStorage(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage value) {
if (storageBuilder_ == null) {
if (storage_ != null) {
storage_ =
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.newBuilder(storage_).mergeFrom(value).buildPartial();
} else {
storage_ = value;
}
onChanged();
} else {
storageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public Builder clearStorage() {
if (storageBuilder_ == null) {
storage_ = null;
onChanged();
} else {
storage_ = null;
storageBuilder_ = null;
}
return this;
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder getStorageBuilder() {
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance() : storage_;
}
}
/**
*
* reference to storage
*
*
* .com.intel.analytics.bigdl.serialization.TensorStorage storage = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private int id_ ;
/**
*
* tensor ID, used for tensor sharing
*
*
* int32 id = 9;
*/
public int getId() {
return id_;
}
/**
*
* tensor ID, used for tensor sharing
*
*
* int32 id = 9;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
*
* tensor ID, used for tensor sharing
*
*
* int32 id = 9;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private int tensorType_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public int getTensorTypeValue() {
return tensorType_;
}
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public Builder setTensorTypeValue(int value) {
tensorType_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.TensorType getTensorType() {
com.intel.analytics.bigdl.serialization.Bigdl.TensorType result = com.intel.analytics.bigdl.serialization.Bigdl.TensorType.valueOf(tensorType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.TensorType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public Builder setTensorType(com.intel.analytics.bigdl.serialization.Bigdl.TensorType value) {
if (value == null) {
throw new NullPointerException();
}
tensorType_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.TensorType tensorType = 10;
*/
public Builder clearTensorType() {
tensorType_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.BigDLTensor)
}
// @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.BigDLTensor)
private static final com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor();
}
public static com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BigDLTensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BigDLTensor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TensorStorageOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.TensorStorage)
com.google.protobuf.MessageOrBuilder {
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
int getDatatypeValue();
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype();
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
java.util.List getFloatDataList();
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
int getFloatDataCount();
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
float getFloatData(int index);
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
java.util.List getDoubleDataList();
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
int getDoubleDataCount();
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
double getDoubleData(int index);
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
java.util.List getBoolDataList();
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
int getBoolDataCount();
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
boolean getBoolData(int index);
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
java.util.List
getStringDataList();
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
int getStringDataCount();
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
java.lang.String getStringData(int index);
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
com.google.protobuf.ByteString
getStringDataBytes(int index);
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
java.util.List getIntDataList();
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
int getIntDataCount();
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
int getIntData(int index);
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
java.util.List getLongDataList();
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
int getLongDataCount();
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
long getLongData(int index);
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
java.util.List getBytesDataList();
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
int getBytesDataCount();
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
com.google.protobuf.ByteString getBytesData(int index);
/**
*
* storage Id, used for storage sharing
*
*
* int32 id = 9;
*/
int getId();
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.TensorStorage}
*/
public static final class TensorStorage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.TensorStorage)
TensorStorageOrBuilder {
private static final long serialVersionUID = 0L;
// Use TensorStorage.newBuilder() to construct.
private TensorStorage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TensorStorage() {
datatype_ = 0;
floatData_ = java.util.Collections.emptyList();
doubleData_ = java.util.Collections.emptyList();
boolData_ = java.util.Collections.emptyList();
stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY;
intData_ = java.util.Collections.emptyList();
longData_ = java.util.Collections.emptyList();
bytesData_ = java.util.Collections.emptyList();
id_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TensorStorage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
datatype_ = rawValue;
break;
}
case 21: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
floatData_.add(input.readFloat());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
floatData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
floatData_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 25: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
doubleData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
doubleData_.add(input.readDouble());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
doubleData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
doubleData_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
boolData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
boolData_.add(input.readBool());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
boolData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
boolData_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
stringData_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
stringData_.add(s);
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
intData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
intData_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
intData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
intData_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
longData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
longData_.add(input.readInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
longData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
longData_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
bytesData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
bytesData_.add(input.readBytes());
break;
}
case 72: {
id_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatData_ = java.util.Collections.unmodifiableList(floatData_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
doubleData_ = java.util.Collections.unmodifiableList(doubleData_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
boolData_ = java.util.Collections.unmodifiableList(boolData_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
stringData_ = stringData_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
intData_ = java.util.Collections.unmodifiableList(intData_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
longData_ = java.util.Collections.unmodifiableList(longData_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
bytesData_ = java.util.Collections.unmodifiableList(bytesData_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.class, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder.class);
}
private int bitField0_;
public static final int DATATYPE_FIELD_NUMBER = 1;
private int datatype_;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
public static final int FLOAT_DATA_FIELD_NUMBER = 2;
private java.util.List floatData_;
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public java.util.List
getFloatDataList() {
return floatData_;
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public int getFloatDataCount() {
return floatData_.size();
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public float getFloatData(int index) {
return floatData_.get(index);
}
private int floatDataMemoizedSerializedSize = -1;
public static final int DOUBLE_DATA_FIELD_NUMBER = 3;
private java.util.List doubleData_;
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public java.util.List
getDoubleDataList() {
return doubleData_;
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public int getDoubleDataCount() {
return doubleData_.size();
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public double getDoubleData(int index) {
return doubleData_.get(index);
}
private int doubleDataMemoizedSerializedSize = -1;
public static final int BOOL_DATA_FIELD_NUMBER = 4;
private java.util.List boolData_;
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public java.util.List
getBoolDataList() {
return boolData_;
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public int getBoolDataCount() {
return boolData_.size();
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public boolean getBoolData(int index) {
return boolData_.get(index);
}
private int boolDataMemoizedSerializedSize = -1;
public static final int STRING_DATA_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList stringData_;
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public com.google.protobuf.ProtocolStringList
getStringDataList() {
return stringData_;
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public int getStringDataCount() {
return stringData_.size();
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public java.lang.String getStringData(int index) {
return stringData_.get(index);
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public com.google.protobuf.ByteString
getStringDataBytes(int index) {
return stringData_.getByteString(index);
}
public static final int INT_DATA_FIELD_NUMBER = 6;
private java.util.List intData_;
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public java.util.List
getIntDataList() {
return intData_;
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public int getIntDataCount() {
return intData_.size();
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public int getIntData(int index) {
return intData_.get(index);
}
private int intDataMemoizedSerializedSize = -1;
public static final int LONG_DATA_FIELD_NUMBER = 7;
private java.util.List longData_;
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public java.util.List
getLongDataList() {
return longData_;
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public int getLongDataCount() {
return longData_.size();
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public long getLongData(int index) {
return longData_.get(index);
}
private int longDataMemoizedSerializedSize = -1;
public static final int BYTES_DATA_FIELD_NUMBER = 8;
private java.util.List bytesData_;
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public java.util.List
getBytesDataList() {
return bytesData_;
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public int getBytesDataCount() {
return bytesData_.size();
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public com.google.protobuf.ByteString getBytesData(int index) {
return bytesData_.get(index);
}
public static final int ID_FIELD_NUMBER = 9;
private int id_;
/**
*
* storage Id, used for storage sharing
*
*
* int32 id = 9;
*/
public int getId() {
return id_;
}
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 {
getSerializedSize();
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
output.writeEnum(1, datatype_);
}
if (getFloatDataList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(floatDataMemoizedSerializedSize);
}
for (int i = 0; i < floatData_.size(); i++) {
output.writeFloatNoTag(floatData_.get(i));
}
if (getDoubleDataList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(doubleDataMemoizedSerializedSize);
}
for (int i = 0; i < doubleData_.size(); i++) {
output.writeDoubleNoTag(doubleData_.get(i));
}
if (getBoolDataList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(boolDataMemoizedSerializedSize);
}
for (int i = 0; i < boolData_.size(); i++) {
output.writeBoolNoTag(boolData_.get(i));
}
for (int i = 0; i < stringData_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stringData_.getRaw(i));
}
if (getIntDataList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(intDataMemoizedSerializedSize);
}
for (int i = 0; i < intData_.size(); i++) {
output.writeInt32NoTag(intData_.get(i));
}
if (getLongDataList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(longDataMemoizedSerializedSize);
}
for (int i = 0; i < longData_.size(); i++) {
output.writeInt64NoTag(longData_.get(i));
}
for (int i = 0; i < bytesData_.size(); i++) {
output.writeBytes(8, bytesData_.get(i));
}
if (id_ != 0) {
output.writeInt32(9, id_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, datatype_);
}
{
int dataSize = 0;
dataSize = 4 * getFloatDataList().size();
size += dataSize;
if (!getFloatDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
floatDataMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getDoubleDataList().size();
size += dataSize;
if (!getDoubleDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
doubleDataMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 1 * getBoolDataList().size();
size += dataSize;
if (!getBoolDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
boolDataMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < stringData_.size(); i++) {
dataSize += computeStringSizeNoTag(stringData_.getRaw(i));
}
size += dataSize;
size += 1 * getStringDataList().size();
}
{
int dataSize = 0;
for (int i = 0; i < intData_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(intData_.get(i));
}
size += dataSize;
if (!getIntDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
intDataMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < longData_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(longData_.get(i));
}
size += dataSize;
if (!getLongDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
longDataMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < bytesData_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(bytesData_.get(i));
}
size += dataSize;
size += 1 * getBytesDataList().size();
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, id_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage other = (com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) obj;
boolean result = true;
result = result && datatype_ == other.datatype_;
result = result && getFloatDataList()
.equals(other.getFloatDataList());
result = result && getDoubleDataList()
.equals(other.getDoubleDataList());
result = result && getBoolDataList()
.equals(other.getBoolDataList());
result = result && getStringDataList()
.equals(other.getStringDataList());
result = result && getIntDataList()
.equals(other.getIntDataList());
result = result && getLongDataList()
.equals(other.getLongDataList());
result = result && getBytesDataList()
.equals(other.getBytesDataList());
result = result && (getId()
== other.getId());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + datatype_;
if (getFloatDataCount() > 0) {
hash = (37 * hash) + FLOAT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getFloatDataList().hashCode();
}
if (getDoubleDataCount() > 0) {
hash = (37 * hash) + DOUBLE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getDoubleDataList().hashCode();
}
if (getBoolDataCount() > 0) {
hash = (37 * hash) + BOOL_DATA_FIELD_NUMBER;
hash = (53 * hash) + getBoolDataList().hashCode();
}
if (getStringDataCount() > 0) {
hash = (37 * hash) + STRING_DATA_FIELD_NUMBER;
hash = (53 * hash) + getStringDataList().hashCode();
}
if (getIntDataCount() > 0) {
hash = (37 * hash) + INT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getIntDataList().hashCode();
}
if (getLongDataCount() > 0) {
hash = (37 * hash) + LONG_DATA_FIELD_NUMBER;
hash = (53 * hash) + getLongDataList().hashCode();
}
if (getBytesDataCount() > 0) {
hash = (37 * hash) + BYTES_DATA_FIELD_NUMBER;
hash = (53 * hash) + getBytesDataList().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.TensorStorage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.TensorStorage)
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.class, com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
datatype_ = 0;
floatData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
doubleData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
boolData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
intData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
longData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
bytesData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
id_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_TensorStorage_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage build() {
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage result = new com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.datatype_ = datatype_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
floatData_ = java.util.Collections.unmodifiableList(floatData_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.floatData_ = floatData_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
doubleData_ = java.util.Collections.unmodifiableList(doubleData_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.doubleData_ = doubleData_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
boolData_ = java.util.Collections.unmodifiableList(boolData_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.boolData_ = boolData_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
stringData_ = stringData_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.stringData_ = stringData_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
intData_ = java.util.Collections.unmodifiableList(intData_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.intData_ = intData_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
longData_ = java.util.Collections.unmodifiableList(longData_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.longData_ = longData_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
bytesData_ = java.util.Collections.unmodifiableList(bytesData_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.bytesData_ = bytesData_;
result.id_ = id_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage.getDefaultInstance()) return this;
if (other.datatype_ != 0) {
setDatatypeValue(other.getDatatypeValue());
}
if (!other.floatData_.isEmpty()) {
if (floatData_.isEmpty()) {
floatData_ = other.floatData_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFloatDataIsMutable();
floatData_.addAll(other.floatData_);
}
onChanged();
}
if (!other.doubleData_.isEmpty()) {
if (doubleData_.isEmpty()) {
doubleData_ = other.doubleData_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDoubleDataIsMutable();
doubleData_.addAll(other.doubleData_);
}
onChanged();
}
if (!other.boolData_.isEmpty()) {
if (boolData_.isEmpty()) {
boolData_ = other.boolData_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureBoolDataIsMutable();
boolData_.addAll(other.boolData_);
}
onChanged();
}
if (!other.stringData_.isEmpty()) {
if (stringData_.isEmpty()) {
stringData_ = other.stringData_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureStringDataIsMutable();
stringData_.addAll(other.stringData_);
}
onChanged();
}
if (!other.intData_.isEmpty()) {
if (intData_.isEmpty()) {
intData_ = other.intData_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureIntDataIsMutable();
intData_.addAll(other.intData_);
}
onChanged();
}
if (!other.longData_.isEmpty()) {
if (longData_.isEmpty()) {
longData_ = other.longData_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureLongDataIsMutable();
longData_.addAll(other.longData_);
}
onChanged();
}
if (!other.bytesData_.isEmpty()) {
if (bytesData_.isEmpty()) {
bytesData_ = other.bytesData_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureBytesDataIsMutable();
bytesData_.addAll(other.bytesData_);
}
onChanged();
}
if (other.getId() != 0) {
setId(other.getId());
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int datatype_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder setDatatypeValue(int value) {
datatype_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) {
if (value == null) {
throw new NullPointerException();
}
datatype_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 1;
*/
public Builder clearDatatype() {
datatype_ = 0;
onChanged();
return this;
}
private java.util.List floatData_ = java.util.Collections.emptyList();
private void ensureFloatDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
floatData_ = new java.util.ArrayList(floatData_);
bitField0_ |= 0x00000002;
}
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public java.util.List
getFloatDataList() {
return java.util.Collections.unmodifiableList(floatData_);
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public int getFloatDataCount() {
return floatData_.size();
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public float getFloatData(int index) {
return floatData_.get(index);
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public Builder setFloatData(
int index, float value) {
ensureFloatDataIsMutable();
floatData_.set(index, value);
onChanged();
return this;
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public Builder addFloatData(float value) {
ensureFloatDataIsMutable();
floatData_.add(value);
onChanged();
return this;
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public Builder addAllFloatData(
java.lang.Iterable extends java.lang.Float> values) {
ensureFloatDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, floatData_);
onChanged();
return this;
}
/**
*
*float tensor element
*
*
* repeated float float_data = 2;
*/
public Builder clearFloatData() {
floatData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List doubleData_ = java.util.Collections.emptyList();
private void ensureDoubleDataIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
doubleData_ = new java.util.ArrayList(doubleData_);
bitField0_ |= 0x00000004;
}
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public java.util.List
getDoubleDataList() {
return java.util.Collections.unmodifiableList(doubleData_);
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public int getDoubleDataCount() {
return doubleData_.size();
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public double getDoubleData(int index) {
return doubleData_.get(index);
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public Builder setDoubleData(
int index, double value) {
ensureDoubleDataIsMutable();
doubleData_.set(index, value);
onChanged();
return this;
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public Builder addDoubleData(double value) {
ensureDoubleDataIsMutable();
doubleData_.add(value);
onChanged();
return this;
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public Builder addAllDoubleData(
java.lang.Iterable extends java.lang.Double> values) {
ensureDoubleDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, doubleData_);
onChanged();
return this;
}
/**
*
*double tensor element
*
*
* repeated double double_data = 3;
*/
public Builder clearDoubleData() {
doubleData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List boolData_ = java.util.Collections.emptyList();
private void ensureBoolDataIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
boolData_ = new java.util.ArrayList(boolData_);
bitField0_ |= 0x00000008;
}
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public java.util.List
getBoolDataList() {
return java.util.Collections.unmodifiableList(boolData_);
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public int getBoolDataCount() {
return boolData_.size();
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public boolean getBoolData(int index) {
return boolData_.get(index);
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public Builder setBoolData(
int index, boolean value) {
ensureBoolDataIsMutable();
boolData_.set(index, value);
onChanged();
return this;
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public Builder addBoolData(boolean value) {
ensureBoolDataIsMutable();
boolData_.add(value);
onChanged();
return this;
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public Builder addAllBoolData(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureBoolDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, boolData_);
onChanged();
return this;
}
/**
*
*boolean tensor element
*
*
* repeated bool bool_data = 4;
*/
public Builder clearBoolData() {
boolData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringDataIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
stringData_ = new com.google.protobuf.LazyStringArrayList(stringData_);
bitField0_ |= 0x00000010;
}
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public com.google.protobuf.ProtocolStringList
getStringDataList() {
return stringData_.getUnmodifiableView();
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public int getStringDataCount() {
return stringData_.size();
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public java.lang.String getStringData(int index) {
return stringData_.get(index);
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public com.google.protobuf.ByteString
getStringDataBytes(int index) {
return stringData_.getByteString(index);
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public Builder setStringData(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringDataIsMutable();
stringData_.set(index, value);
onChanged();
return this;
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public Builder addStringData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringDataIsMutable();
stringData_.add(value);
onChanged();
return this;
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public Builder addAllStringData(
java.lang.Iterable values) {
ensureStringDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringData_);
onChanged();
return this;
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public Builder clearStringData() {
stringData_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*string tensor element
*
*
* repeated string string_data = 5;
*/
public Builder addStringDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureStringDataIsMutable();
stringData_.add(value);
onChanged();
return this;
}
private java.util.List intData_ = java.util.Collections.emptyList();
private void ensureIntDataIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
intData_ = new java.util.ArrayList(intData_);
bitField0_ |= 0x00000020;
}
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public java.util.List
getIntDataList() {
return java.util.Collections.unmodifiableList(intData_);
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public int getIntDataCount() {
return intData_.size();
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public int getIntData(int index) {
return intData_.get(index);
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public Builder setIntData(
int index, int value) {
ensureIntDataIsMutable();
intData_.set(index, value);
onChanged();
return this;
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public Builder addIntData(int value) {
ensureIntDataIsMutable();
intData_.add(value);
onChanged();
return this;
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public Builder addAllIntData(
java.lang.Iterable extends java.lang.Integer> values) {
ensureIntDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intData_);
onChanged();
return this;
}
/**
*
*int tensor element
*
*
* repeated int32 int_data = 6;
*/
public Builder clearIntData() {
intData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List longData_ = java.util.Collections.emptyList();
private void ensureLongDataIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
longData_ = new java.util.ArrayList(longData_);
bitField0_ |= 0x00000040;
}
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public java.util.List
getLongDataList() {
return java.util.Collections.unmodifiableList(longData_);
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public int getLongDataCount() {
return longData_.size();
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public long getLongData(int index) {
return longData_.get(index);
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public Builder setLongData(
int index, long value) {
ensureLongDataIsMutable();
longData_.set(index, value);
onChanged();
return this;
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public Builder addLongData(long value) {
ensureLongDataIsMutable();
longData_.add(value);
onChanged();
return this;
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public Builder addAllLongData(
java.lang.Iterable extends java.lang.Long> values) {
ensureLongDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, longData_);
onChanged();
return this;
}
/**
*
*long tensor element
*
*
* repeated int64 long_data = 7;
*/
public Builder clearLongData() {
longData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private java.util.List bytesData_ = java.util.Collections.emptyList();
private void ensureBytesDataIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
bytesData_ = new java.util.ArrayList(bytesData_);
bitField0_ |= 0x00000080;
}
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public java.util.List
getBytesDataList() {
return java.util.Collections.unmodifiableList(bytesData_);
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public int getBytesDataCount() {
return bytesData_.size();
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public com.google.protobuf.ByteString getBytesData(int index) {
return bytesData_.get(index);
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public Builder setBytesData(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesDataIsMutable();
bytesData_.set(index, value);
onChanged();
return this;
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public Builder addBytesData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesDataIsMutable();
bytesData_.add(value);
onChanged();
return this;
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public Builder addAllBytesData(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureBytesDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bytesData_);
onChanged();
return this;
}
/**
*
*byte tensor element
*
*
* repeated bytes bytes_data = 8;
*/
public Builder clearBytesData() {
bytesData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private int id_ ;
/**
*
* storage Id, used for storage sharing
*
*
* int32 id = 9;
*/
public int getId() {
return id_;
}
/**
*
* storage Id, used for storage sharing
*
*
* int32 id = 9;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
*
* storage Id, used for storage sharing
*
*
* int32 id = 9;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.TensorStorage)
}
// @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.TensorStorage)
private static final com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage();
}
public static com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TensorStorage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TensorStorage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.intel.analytics.bigdl.serialization.Bigdl.TensorStorage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegularizerOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.Regularizer)
com.google.protobuf.MessageOrBuilder {
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
int getRegularizerTypeValue();
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType();
/**
* repeated double regularData = 2;
*/
java.util.List getRegularDataList();
/**
* repeated double regularData = 2;
*/
int getRegularDataCount();
/**
* repeated double regularData = 2;
*/
double getRegularData(int index);
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.Regularizer}
*/
public static final class Regularizer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.Regularizer)
RegularizerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Regularizer.newBuilder() to construct.
private Regularizer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Regularizer() {
regularizerType_ = 0;
regularData_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Regularizer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
regularizerType_ = rawValue;
break;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
regularData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
regularData_.add(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
regularData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
regularData_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
regularData_ = java.util.Collections.unmodifiableList(regularData_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.class, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder.class);
}
private int bitField0_;
public static final int REGULARIZERTYPE_FIELD_NUMBER = 1;
private int regularizerType_;
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public int getRegularizerTypeValue() {
return regularizerType_;
}
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType() {
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType result = com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.valueOf(regularizerType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.UNRECOGNIZED : result;
}
public static final int REGULARDATA_FIELD_NUMBER = 2;
private java.util.List regularData_;
/**
* repeated double regularData = 2;
*/
public java.util.List
getRegularDataList() {
return regularData_;
}
/**
* repeated double regularData = 2;
*/
public int getRegularDataCount() {
return regularData_.size();
}
/**
* repeated double regularData = 2;
*/
public double getRegularData(int index) {
return regularData_.get(index);
}
private int regularDataMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (regularizerType_ != com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.L1L2Regularizer.getNumber()) {
output.writeEnum(1, regularizerType_);
}
if (getRegularDataList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(regularDataMemoizedSerializedSize);
}
for (int i = 0; i < regularData_.size(); i++) {
output.writeDoubleNoTag(regularData_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (regularizerType_ != com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.L1L2Regularizer.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, regularizerType_);
}
{
int dataSize = 0;
dataSize = 8 * getRegularDataList().size();
size += dataSize;
if (!getRegularDataList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
regularDataMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.Regularizer)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer other = (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) obj;
boolean result = true;
result = result && regularizerType_ == other.regularizerType_;
result = result && getRegularDataList()
.equals(other.getRegularDataList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGULARIZERTYPE_FIELD_NUMBER;
hash = (53 * hash) + regularizerType_;
if (getRegularDataCount() > 0) {
hash = (37 * hash) + REGULARDATA_FIELD_NUMBER;
hash = (53 * hash) + getRegularDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.Regularizer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.Regularizer)
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.class, com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
regularizerType_ = 0;
regularData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_Regularizer_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer build() {
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer result = new com.intel.analytics.bigdl.serialization.Bigdl.Regularizer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.regularizerType_ = regularizerType_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
regularData_ = java.util.Collections.unmodifiableList(regularData_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.regularData_ = regularData_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.getDefaultInstance()) return this;
if (other.regularizerType_ != 0) {
setRegularizerTypeValue(other.getRegularizerTypeValue());
}
if (!other.regularData_.isEmpty()) {
if (regularData_.isEmpty()) {
regularData_ = other.regularData_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRegularDataIsMutable();
regularData_.addAll(other.regularData_);
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int regularizerType_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public int getRegularizerTypeValue() {
return regularizerType_;
}
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public Builder setRegularizerTypeValue(int value) {
regularizerType_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType getRegularizerType() {
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType result = com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.valueOf(regularizerType_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public Builder setRegularizerType(com.intel.analytics.bigdl.serialization.Bigdl.RegularizerType value) {
if (value == null) {
throw new NullPointerException();
}
regularizerType_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.RegularizerType regularizerType = 1;
*/
public Builder clearRegularizerType() {
regularizerType_ = 0;
onChanged();
return this;
}
private java.util.List regularData_ = java.util.Collections.emptyList();
private void ensureRegularDataIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
regularData_ = new java.util.ArrayList(regularData_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated double regularData = 2;
*/
public java.util.List
getRegularDataList() {
return java.util.Collections.unmodifiableList(regularData_);
}
/**
* repeated double regularData = 2;
*/
public int getRegularDataCount() {
return regularData_.size();
}
/**
* repeated double regularData = 2;
*/
public double getRegularData(int index) {
return regularData_.get(index);
}
/**
* repeated double regularData = 2;
*/
public Builder setRegularData(
int index, double value) {
ensureRegularDataIsMutable();
regularData_.set(index, value);
onChanged();
return this;
}
/**
* repeated double regularData = 2;
*/
public Builder addRegularData(double value) {
ensureRegularDataIsMutable();
regularData_.add(value);
onChanged();
return this;
}
/**
* repeated double regularData = 2;
*/
public Builder addAllRegularData(
java.lang.Iterable extends java.lang.Double> values) {
ensureRegularDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, regularData_);
onChanged();
return this;
}
/**
* repeated double regularData = 2;
*/
public Builder clearRegularData() {
regularData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.intel.analytics.bigdl.serialization.Regularizer)
}
// @@protoc_insertion_point(class_scope:com.intel.analytics.bigdl.serialization.Regularizer)
private static final com.intel.analytics.bigdl.serialization.Bigdl.Regularizer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.serialization.Bigdl.Regularizer();
}
public static com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Regularizer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Regularizer(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttrValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.AttrValue)
com.google.protobuf.MessageOrBuilder {
/**
* .com.intel.analytics.bigdl.serialization.DataType dataType = 1;
*/
int getDataTypeValue();
/**
* .com.intel.analytics.bigdl.serialization.DataType dataType = 1;
*/
com.intel.analytics.bigdl.serialization.Bigdl.DataType getDataType();
/**
*
* specific for custom data
*
*
* string subType = 2;
*/
java.lang.String getSubType();
/**
*
* specific for custom data
*
*
* string subType = 2;
*/
com.google.protobuf.ByteString
getSubTypeBytes();
/**
*
* int32 value
*
*
* int32 int32Value = 3;
*/
int getInt32Value();
/**
*
*int64 value
*
*
* int64 int64Value = 4;
*/
long getInt64Value();
/**
*
*float value
*
*
* float floatValue = 5;
*/
float getFloatValue();
/**
*
*float value
*
*
* double doubleValue = 6;
*/
double getDoubleValue();
/**
*
* string value
*
*
* string stringValue = 7;
*/
java.lang.String getStringValue();
/**
*
* string value
*
*
* string stringValue = 7;
*/
com.google.protobuf.ByteString
getStringValueBytes();
/**
*
* bool value
*
*
* bool boolValue = 8;
*/
boolean getBoolValue();
/**
*
* Regularizer
*
*
* .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9;
*/
boolean hasRegularizerValue();
/**
*
* Regularizer
*
*
* .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizerValue();
/**
*
* Regularizer
*
*
* .com.intel.analytics.bigdl.serialization.Regularizer regularizerValue = 9;
*/
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerValueOrBuilder();
/**
*
*tensor value
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10;
*/
boolean hasTensorValue();
/**
*
*tensor value
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensorValue();
/**
*
*tensor value
*
*
* .com.intel.analytics.bigdl.serialization.BigDLTensor tensorValue = 10;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorValueOrBuilder();
/**
*
*Variable format
*
*
* .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11;
*/
int getVariableFormatValueValue();
/**
*
*Variable format
*
*
* .com.intel.analytics.bigdl.serialization.VarFormat variableFormatValue = 11;
*/
com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormatValue();
/**
*
* init method
*
*
* .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12;
*/
boolean hasInitMethodValue();
/**
*
* init method
*
*
* .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethodValue();
/**
*
* init method
*
*
* .com.intel.analytics.bigdl.serialization.InitMethod initMethodValue = 12;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodValueOrBuilder();
/**
*
* big DL module
*
*
* .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13;
*/
boolean hasBigDLModuleValue();
/**
*
* big DL module
*
*
* .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModuleValue();
/**
*
* big DL module
*
*
* .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModuleValue = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleValueOrBuilder();
/**
*
* name attribute list
*
*
* .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14;
*/
boolean hasNameAttrListValue();
/**
*
* name attribute list
*
*
* .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrListValue();
/**
*
* name attribute list
*
*
* .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrListValue = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListValueOrBuilder();
/**
*
*array value of any type
*
*
* .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15;
*/
boolean hasArrayValue();
/**
*
*array value of any type
*
*
* .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getArrayValue();
/**
*
*array value of any type
*
*
* .com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue arrayValue = 15;
*/
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder getArrayValueOrBuilder();
/**
*
* data format
*
*
* .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16;
*/
int getDataFormatValueValue();
/**
*
* data format
*
*
* .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormatValue = 16;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormatValue();
/**
*
* custom value
*
*
* .google.protobuf.Any customValue = 17;
*/
boolean hasCustomValue();
/**
*
* custom value
*
*
* .google.protobuf.Any customValue = 17;
*/
com.google.protobuf.Any getCustomValue();
/**
*
* custom value
*
*
* .google.protobuf.Any customValue = 17;
*/
com.google.protobuf.AnyOrBuilder getCustomValueOrBuilder();
/**
*
* Shape value
*
*
* .com.intel.analytics.bigdl.serialization.Shape shape = 18;
*/
boolean hasShape();
/**
*
* Shape value
*
*
* .com.intel.analytics.bigdl.serialization.Shape shape = 18;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape();
/**
*
* Shape value
*
*
* .com.intel.analytics.bigdl.serialization.Shape shape = 18;
*/
com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder();
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ValueCase getValueCase();
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.AttrValue}
*/
public static final class AttrValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.AttrValue)
AttrValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttrValue.newBuilder() to construct.
private AttrValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttrValue() {
dataType_ = 0;
subType_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttrValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
subType_ = s;
break;
}
case 24: {
valueCase_ = 3;
value_ = input.readInt32();
break;
}
case 32: {
valueCase_ = 4;
value_ = input.readInt64();
break;
}
case 45: {
valueCase_ = 5;
value_ = input.readFloat();
break;
}
case 49: {
valueCase_ = 6;
value_ = input.readDouble();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 7;
value_ = s;
break;
}
case 64: {
valueCase_ = 8;
value_ = input.readBool();
break;
}
case 74: {
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.Builder subBuilder = null;
if (valueCase_ == 9) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Regularizer) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 9;
break;
}
case 82: {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.Builder subBuilder = null;
if (valueCase_ == 10) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 10;
break;
}
case 88: {
int rawValue = input.readEnum();
valueCase_ = 11;
value_ = rawValue;
break;
}
case 98: {
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.Builder subBuilder = null;
if (valueCase_ == 12) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.InitMethod) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 12;
break;
}
case 106: {
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.Builder subBuilder = null;
if (valueCase_ == 13) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 13;
break;
}
case 114: {
com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.Builder subBuilder = null;
if (valueCase_ == 14) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 14;
break;
}
case 122: {
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder subBuilder = null;
if (valueCase_ == 15) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 15;
break;
}
case 128: {
int rawValue = input.readEnum();
valueCase_ = 16;
value_ = rawValue;
break;
}
case 138: {
com.google.protobuf.Any.Builder subBuilder = null;
if (valueCase_ == 17) {
subBuilder = ((com.google.protobuf.Any) value_).toBuilder();
}
value_ =
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.Any) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 17;
break;
}
case 146: {
com.intel.analytics.bigdl.serialization.Bigdl.Shape.Builder subBuilder = null;
if (valueCase_ == 18) {
subBuilder = ((com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_).toBuilder();
}
value_ =
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.Shape) value_);
value_ = subBuilder.buildPartial();
}
valueCase_ = 18;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.Builder.class);
}
public interface ArrayValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue)
com.google.protobuf.MessageOrBuilder {
/**
* int32 size = 1;
*/
int getSize();
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
int getDatatypeValue();
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype();
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
java.util.List getI32List();
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
int getI32Count();
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
int getI32(int index);
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
java.util.List getI64List();
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
int getI64Count();
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
long getI64(int index);
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
java.util.List getFltList();
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
int getFltCount();
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
float getFlt(int index);
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
java.util.List getDblList();
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
int getDblCount();
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
double getDbl(int index);
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
java.util.List
getStrList();
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
int getStrCount();
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
java.lang.String getStr(int index);
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
com.google.protobuf.ByteString
getStrBytes(int index);
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
java.util.List getBooleanList();
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
int getBooleanCount();
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
boolean getBoolean(int index);
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
java.util.List
getRegularizerList();
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizer(int index);
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
int getRegularizerCount();
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder>
getRegularizerOrBuilderList();
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerOrBuilder(
int index);
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
java.util.List
getTensorList();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensor(int index);
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
int getTensorCount();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getTensorOrBuilderList();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorOrBuilder(
int index);
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
java.util.List getVariableFormatList();
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
int getVariableFormatCount();
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormat(int index);
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
java.util.List
getVariableFormatValueList();
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
int getVariableFormatValue(int index);
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
java.util.List
getInitMethodList();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethod(int index);
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
int getInitMethodCount();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder>
getInitMethodOrBuilderList();
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodOrBuilder(
int index);
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
java.util.List
getBigDLModuleList();
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModule(int index);
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
int getBigDLModuleCount();
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getBigDLModuleOrBuilderList();
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleOrBuilder(
int index);
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
java.util.List
getNameAttrListList();
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrList(int index);
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
int getNameAttrListCount();
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder>
getNameAttrListOrBuilderList();
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListOrBuilder(
int index);
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
java.util.List getDataFormatList();
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
int getDataFormatCount();
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormat(int index);
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
java.util.List
getDataFormatValueList();
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
int getDataFormatValue(int index);
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
java.util.List
getCustomList();
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
com.google.protobuf.Any getCustom(int index);
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
int getCustomCount();
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getCustomOrBuilderList();
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
com.google.protobuf.AnyOrBuilder getCustomOrBuilder(
int index);
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
java.util.List
getShapeList();
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index);
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
int getShapeCount();
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>
getShapeOrBuilderList();
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder(
int index);
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue}
*/
public static final class ArrayValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue)
ArrayValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArrayValue.newBuilder() to construct.
private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrayValue() {
size_ = 0;
datatype_ = 0;
i32_ = java.util.Collections.emptyList();
i64_ = java.util.Collections.emptyList();
flt_ = java.util.Collections.emptyList();
dbl_ = java.util.Collections.emptyList();
str_ = com.google.protobuf.LazyStringArrayList.EMPTY;
boolean_ = java.util.Collections.emptyList();
regularizer_ = java.util.Collections.emptyList();
tensor_ = java.util.Collections.emptyList();
variableFormat_ = java.util.Collections.emptyList();
initMethod_ = java.util.Collections.emptyList();
bigDLModule_ = java.util.Collections.emptyList();
nameAttrList_ = java.util.Collections.emptyList();
dataFormat_ = java.util.Collections.emptyList();
custom_ = java.util.Collections.emptyList();
shape_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArrayValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
size_ = input.readInt32();
break;
}
case 16: {
int rawValue = input.readEnum();
datatype_ = rawValue;
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
i32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
i32_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
i32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
i32_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
i64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
i64_.add(input.readInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
i64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
i64_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 45: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
flt_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
flt_.add(input.readFloat());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
flt_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
flt_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
dbl_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
dbl_.add(input.readDouble());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
dbl_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
dbl_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
str_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
str_.add(s);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolean_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
boolean_.add(input.readBool());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
boolean_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
boolean_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
regularizer_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
regularizer_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Regularizer.parser(), extensionRegistry));
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
tensor_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
tensor_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor.parser(), extensionRegistry));
break;
}
case 88: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
variableFormat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
variableFormat_.add(rawValue);
break;
}
case 90: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
variableFormat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
variableFormat_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
initMethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
initMethod_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.InitMethod.parser(), extensionRegistry));
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
bigDLModule_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
bigDLModule_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule.parser(), extensionRegistry));
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
nameAttrList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
nameAttrList_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList.parser(), extensionRegistry));
break;
}
case 120: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
dataFormat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
dataFormat_.add(rawValue);
break;
}
case 122: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
dataFormat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
dataFormat_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
custom_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
custom_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
shape_.add(
input.readMessage(com.intel.analytics.bigdl.serialization.Bigdl.Shape.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
i32_ = java.util.Collections.unmodifiableList(i32_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
i64_ = java.util.Collections.unmodifiableList(i64_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
flt_ = java.util.Collections.unmodifiableList(flt_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
dbl_ = java.util.Collections.unmodifiableList(dbl_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
str_ = str_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolean_ = java.util.Collections.unmodifiableList(boolean_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
regularizer_ = java.util.Collections.unmodifiableList(regularizer_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
tensor_ = java.util.Collections.unmodifiableList(tensor_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
variableFormat_ = java.util.Collections.unmodifiableList(variableFormat_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
initMethod_ = java.util.Collections.unmodifiableList(initMethod_);
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
bigDLModule_ = java.util.Collections.unmodifiableList(bigDLModule_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
nameAttrList_ = java.util.Collections.unmodifiableList(nameAttrList_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
dataFormat_ = java.util.Collections.unmodifiableList(dataFormat_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
custom_ = java.util.Collections.unmodifiableList(custom_);
}
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder.class);
}
private int bitField0_;
public static final int SIZE_FIELD_NUMBER = 1;
private int size_;
/**
* int32 size = 1;
*/
public int getSize() {
return size_;
}
public static final int DATATYPE_FIELD_NUMBER = 2;
private int datatype_;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
public static final int I32_FIELD_NUMBER = 3;
private java.util.List i32_;
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
public java.util.List
getI32List() {
return i32_;
}
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
public int getI32Count() {
return i32_.size();
}
/**
*
* "Array(int32)"
*
*
* repeated int32 i32 = 3;
*/
public int getI32(int index) {
return i32_.get(index);
}
private int i32MemoizedSerializedSize = -1;
public static final int I64_FIELD_NUMBER = 4;
private java.util.List i64_;
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
public java.util.List
getI64List() {
return i64_;
}
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
public int getI64Count() {
return i64_.size();
}
/**
*
* "Array(int64)"
*
*
* repeated int64 i64 = 4;
*/
public long getI64(int index) {
return i64_.get(index);
}
private int i64MemoizedSerializedSize = -1;
public static final int FLT_FIELD_NUMBER = 5;
private java.util.List flt_;
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
public java.util.List
getFltList() {
return flt_;
}
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
public int getFltCount() {
return flt_.size();
}
/**
*
* "Array(float)"
*
*
* repeated float flt = 5;
*/
public float getFlt(int index) {
return flt_.get(index);
}
private int fltMemoizedSerializedSize = -1;
public static final int DBL_FIELD_NUMBER = 6;
private java.util.List dbl_;
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
public java.util.List
getDblList() {
return dbl_;
}
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
public int getDblCount() {
return dbl_.size();
}
/**
*
* "Array(double)"
*
*
* repeated double dbl = 6;
*/
public double getDbl(int index) {
return dbl_.get(index);
}
private int dblMemoizedSerializedSize = -1;
public static final int STR_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList str_;
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
public com.google.protobuf.ProtocolStringList
getStrList() {
return str_;
}
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
public int getStrCount() {
return str_.size();
}
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
public java.lang.String getStr(int index) {
return str_.get(index);
}
/**
*
* "Array(string)"
*
*
* repeated string str = 7;
*/
public com.google.protobuf.ByteString
getStrBytes(int index) {
return str_.getByteString(index);
}
public static final int BOOLEAN_FIELD_NUMBER = 8;
private java.util.List boolean_;
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
public java.util.List
getBooleanList() {
return boolean_;
}
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
public int getBooleanCount() {
return boolean_.size();
}
/**
*
* "Array(bool)"
*
*
* repeated bool boolean = 8;
*/
public boolean getBoolean(int index) {
return boolean_.get(index);
}
private int booleanMemoizedSerializedSize = -1;
public static final int REGULARIZER_FIELD_NUMBER = 9;
private java.util.List regularizer_;
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
public java.util.List getRegularizerList() {
return regularizer_;
}
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder>
getRegularizerOrBuilderList() {
return regularizer_;
}
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
public int getRegularizerCount() {
return regularizer_.size();
}
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Regularizer getRegularizer(int index) {
return regularizer_.get(index);
}
/**
*
* "Array(Regularizer)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Regularizer Regularizer = 9;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.RegularizerOrBuilder getRegularizerOrBuilder(
int index) {
return regularizer_.get(index);
}
public static final int TENSOR_FIELD_NUMBER = 10;
private java.util.List tensor_;
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
public java.util.List getTensorList() {
return tensor_;
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder>
getTensorOrBuilderList() {
return tensor_;
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
public int getTensorCount() {
return tensor_.size();
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensor getTensor(int index) {
return tensor_.get(index);
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLTensor tensor = 10;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLTensorOrBuilder getTensorOrBuilder(
int index) {
return tensor_.get(index);
}
public static final int VARIABLEFORMAT_FIELD_NUMBER = 11;
private java.util.List variableFormat_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat> variableFormat_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat>() {
public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat convert(java.lang.Integer from) {
com.intel.analytics.bigdl.serialization.Bigdl.VarFormat result = com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.valueOf(from);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.VarFormat.UNRECOGNIZED : result;
}
};
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
public java.util.List getVariableFormatList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.VarFormat>(variableFormat_, variableFormat_converter_);
}
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
public int getVariableFormatCount() {
return variableFormat_.size();
}
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.VarFormat getVariableFormat(int index) {
return variableFormat_converter_.convert(variableFormat_.get(index));
}
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
public java.util.List
getVariableFormatValueList() {
return variableFormat_;
}
/**
*
* "Array(VariableFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.VarFormat variableFormat = 11;
*/
public int getVariableFormatValue(int index) {
return variableFormat_.get(index);
}
private int variableFormatMemoizedSerializedSize;
public static final int INITMETHOD_FIELD_NUMBER = 12;
private java.util.List initMethod_;
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
public java.util.List getInitMethodList() {
return initMethod_;
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder>
getInitMethodOrBuilderList() {
return initMethod_;
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
public int getInitMethodCount() {
return initMethod_.size();
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethod getInitMethod(int index) {
return initMethod_.get(index);
}
/**
*
* "Array(BigDLTensor)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InitMethod initMethod = 12;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.InitMethodOrBuilder getInitMethodOrBuilder(
int index) {
return initMethod_.get(index);
}
public static final int BIGDLMODULE_FIELD_NUMBER = 13;
private java.util.List bigDLModule_;
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
public java.util.List getBigDLModuleList() {
return bigDLModule_;
}
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder>
getBigDLModuleOrBuilderList() {
return bigDLModule_;
}
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
public int getBigDLModuleCount() {
return bigDLModule_.size();
}
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModule getBigDLModule(int index) {
return bigDLModule_.get(index);
}
/**
*
* "Array(BigDLModel)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.BigDLModule bigDLModule = 13;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.BigDLModuleOrBuilder getBigDLModuleOrBuilder(
int index) {
return bigDLModule_.get(index);
}
public static final int NAMEATTRLIST_FIELD_NUMBER = 14;
private java.util.List nameAttrList_;
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
public java.util.List getNameAttrListList() {
return nameAttrList_;
}
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder>
getNameAttrListOrBuilderList() {
return nameAttrList_;
}
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
public int getNameAttrListCount() {
return nameAttrList_.size();
}
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrList getNameAttrList(int index) {
return nameAttrList_.get(index);
}
/**
*
*
*
* repeated .com.intel.analytics.bigdl.serialization.NameAttrList nameAttrList = 14;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.NameAttrListOrBuilder getNameAttrListOrBuilder(
int index) {
return nameAttrList_.get(index);
}
public static final int DATAFORMAT_FIELD_NUMBER = 15;
private java.util.List dataFormat_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat> dataFormat_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat>() {
public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat convert(java.lang.Integer from) {
com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat result = com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.valueOf(from);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat.UNRECOGNIZED : result;
}
};
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
public java.util.List getDataFormatList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat>(dataFormat_, dataFormat_converter_);
}
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
public int getDataFormatCount() {
return dataFormat_.size();
}
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.InputDataFormat getDataFormat(int index) {
return dataFormat_converter_.convert(dataFormat_.get(index));
}
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
public java.util.List
getDataFormatValueList() {
return dataFormat_;
}
/**
*
* "Array(DataFormat)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.InputDataFormat dataFormat = 15;
*/
public int getDataFormatValue(int index) {
return dataFormat_.get(index);
}
private int dataFormatMemoizedSerializedSize;
public static final int CUSTOM_FIELD_NUMBER = 16;
private java.util.List custom_;
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
public java.util.List getCustomList() {
return custom_;
}
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getCustomOrBuilderList() {
return custom_;
}
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
public int getCustomCount() {
return custom_.size();
}
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
public com.google.protobuf.Any getCustom(int index) {
return custom_.get(index);
}
/**
*
* "Array(Any)"
*
*
* repeated .google.protobuf.Any custom = 16;
*/
public com.google.protobuf.AnyOrBuilder getCustomOrBuilder(
int index) {
return custom_.get(index);
}
public static final int SHAPE_FIELD_NUMBER = 17;
private java.util.List shape_;
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
public java.util.List getShapeList() {
return shape_;
}
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
public java.util.List extends com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder>
getShapeOrBuilderList() {
return shape_;
}
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
public int getShapeCount() {
return shape_.size();
}
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.Shape getShape(int index) {
return shape_.get(index);
}
/**
*
* "Array(Shape)"
*
*
* repeated .com.intel.analytics.bigdl.serialization.Shape shape = 17;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.ShapeOrBuilder getShapeOrBuilder(
int index) {
return shape_.get(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 {
getSerializedSize();
if (size_ != 0) {
output.writeInt32(1, size_);
}
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
output.writeEnum(2, datatype_);
}
if (getI32List().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(i32MemoizedSerializedSize);
}
for (int i = 0; i < i32_.size(); i++) {
output.writeInt32NoTag(i32_.get(i));
}
if (getI64List().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(i64MemoizedSerializedSize);
}
for (int i = 0; i < i64_.size(); i++) {
output.writeInt64NoTag(i64_.get(i));
}
if (getFltList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(fltMemoizedSerializedSize);
}
for (int i = 0; i < flt_.size(); i++) {
output.writeFloatNoTag(flt_.get(i));
}
if (getDblList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(dblMemoizedSerializedSize);
}
for (int i = 0; i < dbl_.size(); i++) {
output.writeDoubleNoTag(dbl_.get(i));
}
for (int i = 0; i < str_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, str_.getRaw(i));
}
if (getBooleanList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(booleanMemoizedSerializedSize);
}
for (int i = 0; i < boolean_.size(); i++) {
output.writeBoolNoTag(boolean_.get(i));
}
for (int i = 0; i < regularizer_.size(); i++) {
output.writeMessage(9, regularizer_.get(i));
}
for (int i = 0; i < tensor_.size(); i++) {
output.writeMessage(10, tensor_.get(i));
}
if (getVariableFormatList().size() > 0) {
output.writeUInt32NoTag(90);
output.writeUInt32NoTag(variableFormatMemoizedSerializedSize);
}
for (int i = 0; i < variableFormat_.size(); i++) {
output.writeEnumNoTag(variableFormat_.get(i));
}
for (int i = 0; i < initMethod_.size(); i++) {
output.writeMessage(12, initMethod_.get(i));
}
for (int i = 0; i < bigDLModule_.size(); i++) {
output.writeMessage(13, bigDLModule_.get(i));
}
for (int i = 0; i < nameAttrList_.size(); i++) {
output.writeMessage(14, nameAttrList_.get(i));
}
if (getDataFormatList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(dataFormatMemoizedSerializedSize);
}
for (int i = 0; i < dataFormat_.size(); i++) {
output.writeEnumNoTag(dataFormat_.get(i));
}
for (int i = 0; i < custom_.size(); i++) {
output.writeMessage(16, custom_.get(i));
}
for (int i = 0; i < shape_.size(); i++) {
output.writeMessage(17, shape_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (size_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, size_);
}
if (datatype_ != com.intel.analytics.bigdl.serialization.Bigdl.DataType.INT32.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, datatype_);
}
{
int dataSize = 0;
for (int i = 0; i < i32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(i32_.get(i));
}
size += dataSize;
if (!getI32List().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
i32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < i64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(i64_.get(i));
}
size += dataSize;
if (!getI64List().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
i64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getFltList().size();
size += dataSize;
if (!getFltList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
fltMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getDblList().size();
size += dataSize;
if (!getDblList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
dblMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < str_.size(); i++) {
dataSize += computeStringSizeNoTag(str_.getRaw(i));
}
size += dataSize;
size += 1 * getStrList().size();
}
{
int dataSize = 0;
dataSize = 1 * getBooleanList().size();
size += dataSize;
if (!getBooleanList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
booleanMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < regularizer_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, regularizer_.get(i));
}
for (int i = 0; i < tensor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, tensor_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < variableFormat_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(variableFormat_.get(i));
}
size += dataSize;
if (!getVariableFormatList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}variableFormatMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < initMethod_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, initMethod_.get(i));
}
for (int i = 0; i < bigDLModule_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, bigDLModule_.get(i));
}
for (int i = 0; i < nameAttrList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, nameAttrList_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < dataFormat_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(dataFormat_.get(i));
}
size += dataSize;
if (!getDataFormatList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}dataFormatMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < custom_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, custom_.get(i));
}
for (int i = 0; i < shape_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, shape_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue other = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) obj;
boolean result = true;
result = result && (getSize()
== other.getSize());
result = result && datatype_ == other.datatype_;
result = result && getI32List()
.equals(other.getI32List());
result = result && getI64List()
.equals(other.getI64List());
result = result && getFltList()
.equals(other.getFltList());
result = result && getDblList()
.equals(other.getDblList());
result = result && getStrList()
.equals(other.getStrList());
result = result && getBooleanList()
.equals(other.getBooleanList());
result = result && getRegularizerList()
.equals(other.getRegularizerList());
result = result && getTensorList()
.equals(other.getTensorList());
result = result && variableFormat_.equals(other.variableFormat_);
result = result && getInitMethodList()
.equals(other.getInitMethodList());
result = result && getBigDLModuleList()
.equals(other.getBigDLModuleList());
result = result && getNameAttrListList()
.equals(other.getNameAttrListList());
result = result && dataFormat_.equals(other.dataFormat_);
result = result && getCustomList()
.equals(other.getCustomList());
result = result && getShapeList()
.equals(other.getShapeList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSize();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + datatype_;
if (getI32Count() > 0) {
hash = (37 * hash) + I32_FIELD_NUMBER;
hash = (53 * hash) + getI32List().hashCode();
}
if (getI64Count() > 0) {
hash = (37 * hash) + I64_FIELD_NUMBER;
hash = (53 * hash) + getI64List().hashCode();
}
if (getFltCount() > 0) {
hash = (37 * hash) + FLT_FIELD_NUMBER;
hash = (53 * hash) + getFltList().hashCode();
}
if (getDblCount() > 0) {
hash = (37 * hash) + DBL_FIELD_NUMBER;
hash = (53 * hash) + getDblList().hashCode();
}
if (getStrCount() > 0) {
hash = (37 * hash) + STR_FIELD_NUMBER;
hash = (53 * hash) + getStrList().hashCode();
}
if (getBooleanCount() > 0) {
hash = (37 * hash) + BOOLEAN_FIELD_NUMBER;
hash = (53 * hash) + getBooleanList().hashCode();
}
if (getRegularizerCount() > 0) {
hash = (37 * hash) + REGULARIZER_FIELD_NUMBER;
hash = (53 * hash) + getRegularizerList().hashCode();
}
if (getTensorCount() > 0) {
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensorList().hashCode();
}
if (getVariableFormatCount() > 0) {
hash = (37 * hash) + VARIABLEFORMAT_FIELD_NUMBER;
hash = (53 * hash) + variableFormat_.hashCode();
}
if (getInitMethodCount() > 0) {
hash = (37 * hash) + INITMETHOD_FIELD_NUMBER;
hash = (53 * hash) + getInitMethodList().hashCode();
}
if (getBigDLModuleCount() > 0) {
hash = (37 * hash) + BIGDLMODULE_FIELD_NUMBER;
hash = (53 * hash) + getBigDLModuleList().hashCode();
}
if (getNameAttrListCount() > 0) {
hash = (37 * hash) + NAMEATTRLIST_FIELD_NUMBER;
hash = (53 * hash) + getNameAttrListList().hashCode();
}
if (getDataFormatCount() > 0) {
hash = (37 * hash) + DATAFORMAT_FIELD_NUMBER;
hash = (53 * hash) + dataFormat_.hashCode();
}
if (getCustomCount() > 0) {
hash = (37 * hash) + CUSTOM_FIELD_NUMBER;
hash = (53 * hash) + getCustomList().hashCode();
}
if (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.intel.analytics.bigdl.serialization.AttrValue.ArrayValue)
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.class, com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.Builder.class);
}
// Construct using com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegularizerFieldBuilder();
getTensorFieldBuilder();
getInitMethodFieldBuilder();
getBigDLModuleFieldBuilder();
getNameAttrListFieldBuilder();
getCustomFieldBuilder();
getShapeFieldBuilder();
}
}
public Builder clear() {
super.clear();
size_ = 0;
datatype_ = 0;
i32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
i64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
flt_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
dbl_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
str_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
boolean_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
if (regularizerBuilder_ == null) {
regularizer_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
regularizerBuilder_.clear();
}
if (tensorBuilder_ == null) {
tensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
tensorBuilder_.clear();
}
variableFormat_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
if (initMethodBuilder_ == null) {
initMethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
initMethodBuilder_.clear();
}
if (bigDLModuleBuilder_ == null) {
bigDLModule_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
} else {
bigDLModuleBuilder_.clear();
}
if (nameAttrListBuilder_ == null) {
nameAttrList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
} else {
nameAttrListBuilder_.clear();
}
dataFormat_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
if (customBuilder_ == null) {
custom_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
customBuilder_.clear();
}
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
} else {
shapeBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.internal_static_com_intel_analytics_bigdl_serialization_AttrValue_ArrayValue_descriptor;
}
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue getDefaultInstanceForType() {
return com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance();
}
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue build() {
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue buildPartial() {
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue result = new com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.size_ = size_;
result.datatype_ = datatype_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
i32_ = java.util.Collections.unmodifiableList(i32_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.i32_ = i32_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
i64_ = java.util.Collections.unmodifiableList(i64_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.i64_ = i64_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
flt_ = java.util.Collections.unmodifiableList(flt_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.flt_ = flt_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
dbl_ = java.util.Collections.unmodifiableList(dbl_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.dbl_ = dbl_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
str_ = str_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.str_ = str_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
boolean_ = java.util.Collections.unmodifiableList(boolean_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.boolean_ = boolean_;
if (regularizerBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
regularizer_ = java.util.Collections.unmodifiableList(regularizer_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.regularizer_ = regularizer_;
} else {
result.regularizer_ = regularizerBuilder_.build();
}
if (tensorBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
tensor_ = java.util.Collections.unmodifiableList(tensor_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.tensor_ = tensor_;
} else {
result.tensor_ = tensorBuilder_.build();
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
variableFormat_ = java.util.Collections.unmodifiableList(variableFormat_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.variableFormat_ = variableFormat_;
if (initMethodBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800)) {
initMethod_ = java.util.Collections.unmodifiableList(initMethod_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.initMethod_ = initMethod_;
} else {
result.initMethod_ = initMethodBuilder_.build();
}
if (bigDLModuleBuilder_ == null) {
if (((bitField0_ & 0x00001000) == 0x00001000)) {
bigDLModule_ = java.util.Collections.unmodifiableList(bigDLModule_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.bigDLModule_ = bigDLModule_;
} else {
result.bigDLModule_ = bigDLModuleBuilder_.build();
}
if (nameAttrListBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000)) {
nameAttrList_ = java.util.Collections.unmodifiableList(nameAttrList_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.nameAttrList_ = nameAttrList_;
} else {
result.nameAttrList_ = nameAttrListBuilder_.build();
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
dataFormat_ = java.util.Collections.unmodifiableList(dataFormat_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.dataFormat_ = dataFormat_;
if (customBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
custom_ = java.util.Collections.unmodifiableList(custom_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.custom_ = custom_;
} else {
result.custom_ = customBuilder_.build();
}
if (shapeBuilder_ == null) {
if (((bitField0_ & 0x00010000) == 0x00010000)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) {
return mergeFrom((com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue other) {
if (other == com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue.getDefaultInstance()) return this;
if (other.getSize() != 0) {
setSize(other.getSize());
}
if (other.datatype_ != 0) {
setDatatypeValue(other.getDatatypeValue());
}
if (!other.i32_.isEmpty()) {
if (i32_.isEmpty()) {
i32_ = other.i32_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureI32IsMutable();
i32_.addAll(other.i32_);
}
onChanged();
}
if (!other.i64_.isEmpty()) {
if (i64_.isEmpty()) {
i64_ = other.i64_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureI64IsMutable();
i64_.addAll(other.i64_);
}
onChanged();
}
if (!other.flt_.isEmpty()) {
if (flt_.isEmpty()) {
flt_ = other.flt_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureFltIsMutable();
flt_.addAll(other.flt_);
}
onChanged();
}
if (!other.dbl_.isEmpty()) {
if (dbl_.isEmpty()) {
dbl_ = other.dbl_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureDblIsMutable();
dbl_.addAll(other.dbl_);
}
onChanged();
}
if (!other.str_.isEmpty()) {
if (str_.isEmpty()) {
str_ = other.str_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureStrIsMutable();
str_.addAll(other.str_);
}
onChanged();
}
if (!other.boolean_.isEmpty()) {
if (boolean_.isEmpty()) {
boolean_ = other.boolean_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureBooleanIsMutable();
boolean_.addAll(other.boolean_);
}
onChanged();
}
if (regularizerBuilder_ == null) {
if (!other.regularizer_.isEmpty()) {
if (regularizer_.isEmpty()) {
regularizer_ = other.regularizer_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureRegularizerIsMutable();
regularizer_.addAll(other.regularizer_);
}
onChanged();
}
} else {
if (!other.regularizer_.isEmpty()) {
if (regularizerBuilder_.isEmpty()) {
regularizerBuilder_.dispose();
regularizerBuilder_ = null;
regularizer_ = other.regularizer_;
bitField0_ = (bitField0_ & ~0x00000100);
regularizerBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegularizerFieldBuilder() : null;
} else {
regularizerBuilder_.addAllMessages(other.regularizer_);
}
}
}
if (tensorBuilder_ == null) {
if (!other.tensor_.isEmpty()) {
if (tensor_.isEmpty()) {
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureTensorIsMutable();
tensor_.addAll(other.tensor_);
}
onChanged();
}
} else {
if (!other.tensor_.isEmpty()) {
if (tensorBuilder_.isEmpty()) {
tensorBuilder_.dispose();
tensorBuilder_ = null;
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000200);
tensorBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTensorFieldBuilder() : null;
} else {
tensorBuilder_.addAllMessages(other.tensor_);
}
}
}
if (!other.variableFormat_.isEmpty()) {
if (variableFormat_.isEmpty()) {
variableFormat_ = other.variableFormat_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureVariableFormatIsMutable();
variableFormat_.addAll(other.variableFormat_);
}
onChanged();
}
if (initMethodBuilder_ == null) {
if (!other.initMethod_.isEmpty()) {
if (initMethod_.isEmpty()) {
initMethod_ = other.initMethod_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureInitMethodIsMutable();
initMethod_.addAll(other.initMethod_);
}
onChanged();
}
} else {
if (!other.initMethod_.isEmpty()) {
if (initMethodBuilder_.isEmpty()) {
initMethodBuilder_.dispose();
initMethodBuilder_ = null;
initMethod_ = other.initMethod_;
bitField0_ = (bitField0_ & ~0x00000800);
initMethodBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInitMethodFieldBuilder() : null;
} else {
initMethodBuilder_.addAllMessages(other.initMethod_);
}
}
}
if (bigDLModuleBuilder_ == null) {
if (!other.bigDLModule_.isEmpty()) {
if (bigDLModule_.isEmpty()) {
bigDLModule_ = other.bigDLModule_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureBigDLModuleIsMutable();
bigDLModule_.addAll(other.bigDLModule_);
}
onChanged();
}
} else {
if (!other.bigDLModule_.isEmpty()) {
if (bigDLModuleBuilder_.isEmpty()) {
bigDLModuleBuilder_.dispose();
bigDLModuleBuilder_ = null;
bigDLModule_ = other.bigDLModule_;
bitField0_ = (bitField0_ & ~0x00001000);
bigDLModuleBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBigDLModuleFieldBuilder() : null;
} else {
bigDLModuleBuilder_.addAllMessages(other.bigDLModule_);
}
}
}
if (nameAttrListBuilder_ == null) {
if (!other.nameAttrList_.isEmpty()) {
if (nameAttrList_.isEmpty()) {
nameAttrList_ = other.nameAttrList_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureNameAttrListIsMutable();
nameAttrList_.addAll(other.nameAttrList_);
}
onChanged();
}
} else {
if (!other.nameAttrList_.isEmpty()) {
if (nameAttrListBuilder_.isEmpty()) {
nameAttrListBuilder_.dispose();
nameAttrListBuilder_ = null;
nameAttrList_ = other.nameAttrList_;
bitField0_ = (bitField0_ & ~0x00002000);
nameAttrListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNameAttrListFieldBuilder() : null;
} else {
nameAttrListBuilder_.addAllMessages(other.nameAttrList_);
}
}
}
if (!other.dataFormat_.isEmpty()) {
if (dataFormat_.isEmpty()) {
dataFormat_ = other.dataFormat_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureDataFormatIsMutable();
dataFormat_.addAll(other.dataFormat_);
}
onChanged();
}
if (customBuilder_ == null) {
if (!other.custom_.isEmpty()) {
if (custom_.isEmpty()) {
custom_ = other.custom_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureCustomIsMutable();
custom_.addAll(other.custom_);
}
onChanged();
}
} else {
if (!other.custom_.isEmpty()) {
if (customBuilder_.isEmpty()) {
customBuilder_.dispose();
customBuilder_ = null;
custom_ = other.custom_;
bitField0_ = (bitField0_ & ~0x00008000);
customBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomFieldBuilder() : null;
} else {
customBuilder_.addAllMessages(other.custom_);
}
}
}
if (shapeBuilder_ == null) {
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
} else {
if (!other.shape_.isEmpty()) {
if (shapeBuilder_.isEmpty()) {
shapeBuilder_.dispose();
shapeBuilder_ = null;
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00010000);
shapeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getShapeFieldBuilder() : null;
} else {
shapeBuilder_.addAllMessages(other.shape_);
}
}
}
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 {
com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.serialization.Bigdl.AttrValue.ArrayValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int size_ ;
/**
* int32 size = 1;
*/
public int getSize() {
return size_;
}
/**
* int32 size = 1;
*/
public Builder setSize(int value) {
size_ = value;
onChanged();
return this;
}
/**
* int32 size = 1;
*/
public Builder clearSize() {
size_ = 0;
onChanged();
return this;
}
private int datatype_ = 0;
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public int getDatatypeValue() {
return datatype_;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public Builder setDatatypeValue(int value) {
datatype_ = value;
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public com.intel.analytics.bigdl.serialization.Bigdl.DataType getDatatype() {
com.intel.analytics.bigdl.serialization.Bigdl.DataType result = com.intel.analytics.bigdl.serialization.Bigdl.DataType.valueOf(datatype_);
return result == null ? com.intel.analytics.bigdl.serialization.Bigdl.DataType.UNRECOGNIZED : result;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public Builder setDatatype(com.intel.analytics.bigdl.serialization.Bigdl.DataType value) {
if (value == null) {
throw new NullPointerException();
}
datatype_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.intel.analytics.bigdl.serialization.DataType datatype = 2;
*/
public Builder clearDatatype() {
datatype_ = 0;
onChanged();
return this;
}
private java.util.List i32_ = java.util.Collections.emptyList();
private void ensureI32IsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
i32_ = new java.util.ArrayList