Defines an operation. A NodeDef in a GraphDef specifies an Op by using the "op" field which should match the name of a OpDef. LINT.IfChange
tensorflow.OpDef
Metode Publik
OpDef.Builder | |
OpDef.Builder | addAllControlOutput (nilai<String> yang dapat diubah) Named control outputs for this operation. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | addAttr (indeks int, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | |
OpDef.Builder | |
OpDef.AttrDef.Builder | tambahkanAttrBuilder () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDef.Builder | addAttrBuilder (indeks int) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | addControlOutput (Nilai string) Named control outputs for this operation. |
OpDef.Builder | addControlOutputBytes (nilai com.google.protobuf.ByteString) Named control outputs for this operation. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.ArgDef.Builder | tambahkanInputArgBuilder () Description of the input(s). |
OpDef.ArgDef.Builder | addInputArgBuilder (indeks int) Description of the input(s). |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.ArgDef.Builder | addOutputArgBuilder (indeks int) Description of the output(s). |
OpDef.ArgDef.Builder | tambahkanOutputArgBuilder () Description of the output(s). |
OpDef.Builder | addRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek) |
OpDef | membangun () |
OpDef | |
OpDef.Builder | jernih () |
OpDef.Builder | clearAllowsUninitializedInput () By default, all inputs to an Op must be initialized Tensors. |
OpDef.Builder | hapusAttr () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | hapusKontrolOutput () Named control outputs for this operation. |
OpDef.Builder | penghapusan yang jelas () Optional deprecation based on GraphDef versions. |
OpDef.Builder | jelasDeskripsi () Additional, longer human-readable description of what the Op does. |
OpDef.Builder | clearField (bidang com.google.protobuf.Descriptors.FieldDescriptor) |
OpDef.Builder | hapusInputArg () Description of the input(s). |
OpDef.Builder | clearIsAggregate () If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. |
OpDef.Builder | clearIsCommutative () True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs) bool is_commutative = 18; |
OpDef.Builder | clearIsStateful () Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. |
OpDef.Builder | nama jelas () Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OpDef.Builder | hapusOutputArg () Description of the output(s). |
OpDef.Builder | jelasRingkasan () One-line human-readable description of what the Op does. |
OpDef.Builder | klon () |
boolean | getAllowsUninitializedInput () By default, all inputs to an Op must be initialized Tensors. |
OpDef.AttrDef | getAttr (indeks int) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDef.Builder | getAttrBuilder (indeks int) repeated .tensorflow.OpDef.AttrDef attr = 4; |
Daftar< OpDef.AttrDef.Builder > | dapatkanAttrBuilderList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
ke dalam | dapatkanAttrCount () repeated .tensorflow.OpDef.AttrDef attr = 4; |
Daftar< OpDef.AttrDef > | dapatkanAttrList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDefOrBuilder | getAttrOrBuilder (indeks int) repeated .tensorflow.OpDef.AttrDef attr = 4; |
Daftar<? memperluas OpDef.AttrDefOrBuilder > | dapatkanAttrOrBuilderList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
Rangkaian | getControlOutput (indeks int) Named control outputs for this operation. |
com.google.protobuf.ByteString | getControlOutputBytes (indeks int) Named control outputs for this operation. |
ke dalam | dapatkanControlOutputCount () Named control outputs for this operation. |
com.google.protobuf.ProtocolStringList | dapatkanControlOutputList () Named control outputs for this operation. |
OpDef | |
Penghentian Op | dapatkan Penghentian () Optional deprecation based on GraphDef versions. |
OpDeprecation.Builder | dapatkanDeprecationBuilder () Optional deprecation based on GraphDef versions. |
OpDeprecationOrBuilder | dapatkanDeprecationOrBuilder () Optional deprecation based on GraphDef versions. |
Rangkaian | dapatkanDeskripsi () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | dapatkanDeskripsiBytes () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.Descriptors.Descriptor statis terakhir | |
com.google.protobuf.Descriptors.Descriptor | |
OpDef.ArgDef | getInputArg (indeks int) Description of the input(s). |
OpDef.ArgDef.Builder | getInputArgBuilder (indeks int) Description of the input(s). |
Daftar< OpDef.ArgDef.Builder > | dapatkanInputArgBuilderList () Description of the input(s). |
ke dalam | dapatkanInputArgCount () Description of the input(s). |
Daftar< OpDef.ArgDef > | dapatkanInputArgList () Description of the input(s). |
OpDef.ArgDefOrBuilder | getInputArgOrBuilder (indeks int) Description of the input(s). |
Daftar<? memperluas OpDef.ArgDefOrBuilder > | dapatkanInputArgOrBuilderList () Description of the input(s). |
boolean | getIsAggregate () If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. |
boolean | getIsCommutative () True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs) bool is_commutative = 18; |
boolean | getIsStateful () Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. |
Rangkaian | dapatkan Nama () Op names starting with an underscore are reserved for internal use. |
com.google.protobuf.ByteString | dapatkanNamaBytes () Op names starting with an underscore are reserved for internal use. |
OpDef.ArgDef | getOutputArg (indeks int) Description of the output(s). |
OpDef.ArgDef.Builder | getOutputArgBuilder (indeks int) Description of the output(s). |
Daftar< OpDef.ArgDef.Builder > | dapatkanOutputArgBuilderList () Description of the output(s). |
ke dalam | dapatkanOutputArgCount () Description of the output(s). |
Daftar< OpDef.ArgDef > | dapatkanOutputArgList () Description of the output(s). |
OpDef.ArgDefOrBuilder | getOutputArgOrBuilder (indeks int) Description of the output(s). |
Daftar<? memperluas OpDef.ArgDefOrBuilder > | dapatkanOutputArgOrBuilderList () Description of the output(s). |
Rangkaian | dapatkan Ringkasan () One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | dapatkanSummaryBytes () One-line human-readable description of what the Op does. |
boolean | sudah tidak digunakan lagi () Optional deprecation based on GraphDef versions. |
boolean terakhir | |
OpDef.Builder | |
OpDef.Builder | mergeFrom (com.google.protobuf.Pesan lainnya) |
OpDef.Builder | mergeFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OpDef.Builder terakhir | mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
OpDef.Builder | hapusAttr (indeks int) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | hapusInputArg (indeks int) Description of the input(s). |
OpDef.Builder | hapusOutputArg (indeks int) Description of the output(s). |
OpDef.Builder | setAllowsUninitializedInput (nilai boolean) By default, all inputs to an Op must be initialized Tensors. |
OpDef.Builder | |
OpDef.Builder | setAttr (indeks int, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | setControlOutput (indeks int, nilai String) Named control outputs for this operation. |
OpDef.Builder | setDeprecation ( OpDeprecation.Pembuat pembangunForValue) Optional deprecation based on GraphDef versions. |
OpDef.Builder | |
OpDef.Builder | setDescription (Nilai string) Additional, longer human-readable description of what the Op does. |
OpDef.Builder | setDescriptionBytes (nilai com.google.protobuf.ByteString) Additional, longer human-readable description of what the Op does. |
OpDef.Builder | setField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek) |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | setIsAggregate (nilai boolean) If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. |
OpDef.Builder | setIsCommutative (nilai boolean) True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs) bool is_commutative = 18; |
OpDef.Builder | setIsStateful (nilai boolean) Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. |
OpDef.Builder | setName (Nilai string) Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | setNameBytes (nilai com.google.protobuf.ByteString) Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | setRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, indeks int, Nilai objek) |
OpDef.Builder | setSummary (Nilai string) One-line human-readable description of what the Op does. |
OpDef.Builder | setSummaryBytes (nilai com.google.protobuf.ByteString) One-line human-readable description of what the Op does. |
OpDef.Builder terakhir | setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
Metode Warisan
Metode Publik
public OpDef.Builder addAllAttr (Nilai Iterable<? extends OpDef.AttrDef >)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addAllControlOutput (nilai<String> yang dapat diubah)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
public OpDef.Builder addAllInputArg (Nilai Iterable<? extends OpDef.ArgDef >)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addAllOutputArg (Nilai Iterable<? extends OpDef.ArgDef >)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.Builder addAttr publik ( OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder addAttr publik (indeks int, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
publik OpDef.Builder addAttr (indeks int, nilai OpDef.AttrDef )
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDef.Builder publik addAttrBuilder (indeks int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addControlOutput (Nilai string)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
publik OpDef.Builder addControlOutputBytes (nilai com.google.protobuf.ByteString)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
OpDef.Builder addInputArg publik ( OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
publik OpDef.Builder addInputArg (indeks int, nilai OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
publik OpDef.Builder addInputArg (nilai OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.Builder addInputArg publik (indeks int, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.ArgDef.Builder publik addInputArgBuilder ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.ArgDef.Builder publik addInputArgBuilder (indeks int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.Builder addOutputArg publik (indeks int, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.Builder addOutputArg publik ( OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
publik OpDef.Builder addOutputArg (indeks int, nilai OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
publik OpDef.Builder addOutputArg ( nilai OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.ArgDef.Builder publik addOutputArgBuilder (indeks int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.ArgDef.Builder publik addOutputArgBuilder ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek)
OpDef.Builder publik clearAllowsUninitializedInput ()
By default, all inputs to an Op must be initialized Tensors. Ops that may initialize tensors for the first time should set this field to true, to allow the Op to take an uninitialized Tensor as input.
bool allows_uninitialized_input = 19;
OpDef.Builder publik clearControlOutput ()
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
OpDef.Builder publik clearDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
OpDef.Builder publik clearDescription ()
Additional, longer human-readable description of what the Op does.
string description = 6;
OpDef.Builder publik clearInputArg ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.Builder publik clearIsAggregate ()
If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. Should be associative and commutative, and produce output with the same shape as the input. The optimizer may replace an aggregate op taking input from multiple devices with a tree of aggregate ops that aggregate locally within each device (and possibly within groups of nearby devices) before communicating. TODO(josh11b): Implement that optimization.
bool is_aggregate = 16;
OpDef.Builder publik clearIsCommutative ()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
OpDef.Builder publik clearIsStateful ()
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. variable reading op) or if they have a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops must always produce the same output for the same input and have no side-effects. By default Ops may be moved between devices. Stateful ops should either not be moved, or should only be moved if that state can also be moved (e.g. via some sort of save / restore). Stateful ops are guaranteed to never be optimized away by Common Subexpression Elimination (CSE).
bool is_stateful = 17;
OpDef publik.Builder clearName ()
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
string name = 1;
OpDef.Builder publik clearOutputArg ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.Builder publik clearSummary ()
One-line human-readable description of what the Op does.
string summary = 5;
getAllowsUninitializedInput boolean publik ()
By default, all inputs to an Op must be initialized Tensors. Ops that may initialize tensors for the first time should set this field to true, to allow the Op to take an uninitialized Tensor as input.
bool allows_uninitialized_input = 19;
OpDef.AttrDef.Builder publik getAttrBuilder (indeks int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
Daftar publik< OpDef.AttrDef.Builder > getAttrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
int publik getAttrCount ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.AttrDefOrBuilder publik getAttrOrBuilder (indeks int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
Daftar Publik<? memperluas OpDef.AttrDefOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
String publik getControlOutput (indeks int)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
publik com.google.protobuf.ByteString getControlOutputBytes (indeks int)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
int publik getControlOutputCount ()
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
com.google.protobuf.ProtocolStringList getControlOutputList () publik
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
OpDeprecation publik getDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
OpDeprecation.Builder publik getDeprecationBuilder ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
OpDeprecationOrBuilder publik getDeprecationOrBuilder ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
GetDeskripsi String publik ()
Additional, longer human-readable description of what the Op does.
string description = 6;
com.google.protobuf.ByteString publik getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 6;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
com.google.protobuf.Descriptors.Descriptor publik getDescriptorForType ()
OpDef.ArgDef publik getInputArg (indeks int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.ArgDef.Builder publik getInputArgBuilder (indeks int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
Daftar publik< OpDef.ArgDef.Builder > getInputArgBuilderList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
int publik getInputArgCount ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
Daftar publik< OpDef.ArgDef > getInputArgList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.ArgDefOrBuilder publik getInputArgOrBuilder (indeks int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
Daftar Publik<? memperluas OpDef.ArgDefOrBuilder > getInputArgOrBuilderList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
getIsAggregate boolean publik ()
If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. Should be associative and commutative, and produce output with the same shape as the input. The optimizer may replace an aggregate op taking input from multiple devices with a tree of aggregate ops that aggregate locally within each device (and possibly within groups of nearby devices) before communicating. TODO(josh11b): Implement that optimization.
bool is_aggregate = 16;
boolean publik getIsCommutative ()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
boolean publik getIsStateful ()
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. variable reading op) or if they have a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops must always produce the same output for the same input and have no side-effects. By default Ops may be moved between devices. Stateful ops should either not be moved, or should only be moved if that state can also be moved (e.g. via some sort of save / restore). Stateful ops are guaranteed to never be optimized away by Common Subexpression Elimination (CSE).
bool is_stateful = 17;
GetName String publik ()
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
string name = 1;
publik com.google.protobuf.ByteString getNameBytes ()
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
string name = 1;
OpDef.ArgDef publik getOutputArg (indeks int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.ArgDef.Builder publik getOutputArgBuilder (indeks int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
Daftar publik< OpDef.ArgDef.Builder > getOutputArgBuilderList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
int publik getOutputArgCount ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
Daftar publik< OpDef.ArgDef > getOutputArgList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.ArgDefOrBuilder publik getOutputArgOrBuilder (int indeks)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
Daftar Publik<? memperluas OpDef.ArgDefOrBuilder > getOutputArgOrBuilderList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
String publik getSummary ()
One-line human-readable description of what the Op does.
string summary = 5;
publik com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 5;
boolean publik hasDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
boolean akhir publik diinisialisasi ()
Penggabungan OpDef.Builder publik (nilai OpDeprecation )
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
public OpDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
OpDef.Builder akhir publik menggabungkanUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
OpDef.Builder publik deleteInputArg (int indeks)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.Builder publik deleteOutputArg (int indeks)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder setAllowsUninitializedInput (nilai boolean)
By default, all inputs to an Op must be initialized Tensors. Ops that may initialize tensors for the first time should set this field to true, to allow the Op to take an uninitialized Tensor as input.
bool allows_uninitialized_input = 19;
OpDef.Builder setAttr publik (indeks int, nilai OpDef.AttrDef )
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder setAttr publik (indeks int, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
OpDef.Builder setControlOutput publik (indeks int, nilai String)
Named control outputs for this operation. Useful only for composite operations (i.e. functions) which want to name different control outputs.
repeated string control_output = 20;
OpDef.Builder setDeprecation publik ( OpDeprecation.Builder builderForValue)
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
setDeprecation OpDef.Builder publik (nilai OpDeprecation )
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
public OpDef.Builder setDescription (Nilai string)
Additional, longer human-readable description of what the Op does.
string description = 6;
setDescriptionBytes OpDef.Builder publik (nilai com.google.protobuf.ByteString)
Additional, longer human-readable description of what the Op does.
string description = 6;
OpDef.Builder publik setInputArg (indeks int, nilai OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
OpDef.Builder setInputArg publik (indeks int, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
setIsAggregate OpDef.Builder publik (nilai boolean)
If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. Should be associative and commutative, and produce output with the same shape as the input. The optimizer may replace an aggregate op taking input from multiple devices with a tree of aggregate ops that aggregate locally within each device (and possibly within groups of nearby devices) before communicating. TODO(josh11b): Implement that optimization.
bool is_aggregate = 16;
public OpDef.Builder setIsCommutative (nilai boolean)
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
OpDef.Builder publik setIsStateful (nilai boolean)
Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. variable reading op) or if they have a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops must always produce the same output for the same input and have no side-effects. By default Ops may be moved between devices. Stateful ops should either not be moved, or should only be moved if that state can also be moved (e.g. via some sort of save / restore). Stateful ops are guaranteed to never be optimized away by Common Subexpression Elimination (CSE).
bool is_stateful = 17;
setName OpDef.Builder publik (Nilai string)
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
string name = 1;
OpDef.Builder publik setNameBytes (nilai com.google.protobuf.ByteString)
Op names starting with an underscore are reserved for internal use. Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
string name = 1;
OpDef.Builder publik setOutputArg (indeks int, nilai OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
OpDef.Builder setOutputArg publik (indeks int, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder setRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, indeks int, Nilai objek)
public OpDef.Builder setSummary (Nilai string)
One-line human-readable description of what the Op does.
string summary = 5;
setSummaryBytes OpDef.Builder publik (nilai com.google.protobuf.ByteString)
One-line human-readable description of what the Op does.
string summary = 5;