public org.tensorflow.framework.NodeDef getDefaultInstanceForType() { return org.tensorflow.framework.NodeDef.getDefaultInstance(); }
/** * <code>repeated .tensorflow.NodeDef node = 1;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeBuilder() { return getNodeFieldBuilder().addBuilder( org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.NodeDef node = 1;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeBuilder( int index) { return getNodeFieldBuilder().addBuilder( index, org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * By convention, "op" in node_def is resolved by consulting with a * user-defined library first. If not resolved, "func" is assumed to * be a builtin op. * </pre> * * <code>repeated .tensorflow.NodeDef node_def = 3;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeDefBuilder() { return getNodeDefFieldBuilder().addBuilder( org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * The operation name. There may be custom parameters in attrs. * Op names starting with an underscore are reserved for internal use. * </pre> * * <code>string op = 2;</code> */ public Builder clearOp() { op_ = getDefaultInstance().getOp(); onChanged(); return this; } /**
/** * <pre> * The name given to this operator. Used for naming inputs, * logging, visualization, etc. Unique within a single GraphDef. * Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_./]*". * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * By convention, "op" in node_def is resolved by consulting with a * user-defined library first. If not resolved, "func" is assumed to * be a builtin op. * </pre> * * <code>repeated .tensorflow.NodeDef node_def = 3;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeDefBuilder( int index) { return getNodeDefFieldBuilder().addBuilder( index, org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * A (possibly partial) specification for the device on which this * node should be placed. * The expected syntax for this string is as follows: * DEVICE_SPEC ::= PARTIAL_SPEC * PARTIAL_SPEC ::= ("/" CONSTRAINT) * * CONSTRAINT ::= ("job:" JOB_NAME) * | ("replica:" [1-9][0-9]*) * | ("task:" [1-9][0-9]*) * | ("device:" [A-Za-z]* ":" ([1-9][0-9]* | "*") ) * Valid values for this string include: * * "/job:worker/replica:0/task:1/device:GPU:3" (full specification) * * "/job:worker/device:GPU:3" (partial specification) * * "" (no specification) * If the constraints do not resolve to a single device (or if this * field is empty or not present), the runtime will attempt to * choose a device automatically. * </pre> * * <code>string device = 4;</code> */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /**
public Builder mergeFrom(org.tensorflow.framework.NodeDef other) { if (other == org.tensorflow.framework.NodeDef.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getOp().isEmpty()) { op_ = other.op_; onChanged(); } if (!other.input_.isEmpty()) { if (input_.isEmpty()) { input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInputIsMutable(); input_.addAll(other.input_); } onChanged(); } if (!other.getDevice().isEmpty()) { device_ = other.device_; onChanged(); } internalGetMutableAttr().mergeFrom( other.internalGetAttr()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public org.tensorflow.framework.NodeDef getDefaultInstanceForType() { return org.tensorflow.framework.NodeDef.getDefaultInstance(); }
/** * <code>repeated .tensorflow.NodeDef node = 1;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeBuilder( int index) { return getNodeFieldBuilder().addBuilder( index, org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.NodeDef node = 1;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeBuilder() { return getNodeFieldBuilder().addBuilder( org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * By convention, "op" in node_def is resolved by consulting with a * user-defined library first. If not resolved, "func" is assumed to * be a builtin op. * </pre> * * <code>repeated .tensorflow.NodeDef node_def = 3;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeDefBuilder() { return getNodeDefFieldBuilder().addBuilder( org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * By convention, "op" in node_def is resolved by consulting with a * user-defined library first. If not resolved, "func" is assumed to * be a builtin op. * </pre> * * <code>repeated .tensorflow.NodeDef node_def = 3;</code> */ public org.tensorflow.framework.NodeDef.Builder addNodeDefBuilder( int index) { return getNodeDefFieldBuilder().addBuilder( index, org.tensorflow.framework.NodeDef.getDefaultInstance()); } /**
/** * <pre> * The operation name. There may be custom parameters in attrs. * Op names starting with an underscore are reserved for internal use. * </pre> * * <code>string op = 2;</code> */ public Builder clearOp() { op_ = getDefaultInstance().getOp(); onChanged(); return this; } /**
/** * <pre> * The name given to this operator. Used for naming inputs, * logging, visualization, etc. Unique within a single GraphDef. * Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_./]*". * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * A (possibly partial) specification for the device on which this * node should be placed. * The expected syntax for this string is as follows: * DEVICE_SPEC ::= PARTIAL_SPEC * PARTIAL_SPEC ::= ("/" CONSTRAINT) * * CONSTRAINT ::= ("job:" JOB_NAME) * | ("replica:" [1-9][0-9]*) * | ("task:" [1-9][0-9]*) * | ("device:" [A-Za-z]* ":" ([1-9][0-9]* | "*") ) * Valid values for this string include: * * "/job:worker/replica:0/task:1/device:GPU:3" (full specification) * * "/job:worker/device:GPU:3" (partial specification) * * "" (no specification) * If the constraints do not resolve to a single device (or if this * field is empty or not present), the runtime will attempt to * choose a device automatically. * </pre> * * <code>string device = 4;</code> */ public Builder clearDevice() { device_ = getDefaultInstance().getDevice(); onChanged(); return this; } /**
public Builder mergeFrom(org.tensorflow.framework.NodeDef other) { if (other == org.tensorflow.framework.NodeDef.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getOp().isEmpty()) { op_ = other.op_; onChanged(); } if (!other.input_.isEmpty()) { if (input_.isEmpty()) { input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureInputIsMutable(); input_.addAll(other.input_); } onChanged(); } if (!other.getDevice().isEmpty()) { device_ = other.device_; onChanged(); } internalGetMutableAttr().mergeFrom( other.internalGetAttr()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }