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
Публичные методы
OpDef.Builder | addAllAttr (Iterable<? расширяет значения OpDef.AttrDef >) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | addAllControlOutput (значения Iterable<String>) Named control outputs for this operation. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | addAttr (индекс int, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | |
OpDef.Builder | |
OpDef.AttrDef.Builder | добавитьАттрБилдер () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDef.Builder | addAttrBuilder (индекс целого числа) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | addControlOutput (строковое значение) Named control outputs for this operation. |
OpDef.Builder | addControlOutputBytes (значение com.google.protobuf.ByteString) Named control outputs for this operation. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.ArgDef.Builder | добавитьИнпутАргБилдер () Description of the input(s). |
OpDef.ArgDef.Builder | addInputArgBuilder (индекс целого числа) Description of the input(s). |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | |
OpDef.ArgDef.Builder | addOutputArgBuilder (индекс целого числа) Description of the output(s). |
OpDef.ArgDef.Builder | addOutputArgBuilder () Description of the output(s). |
OpDef.Builder | addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта) |
ОпДеф | строить () |
ОпДеф | |
OpDef.Builder | прозрачный () |
OpDef.Builder | ClearAllowsUninitializedInput () By default, all inputs to an Op must be initialized Tensors. |
OpDef.Builder | очиститьАттр () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | ОчиститьКонтрольВыход () Named control outputs for this operation. |
OpDef.Builder | Очистить устаревание () Optional deprecation based on GraphDef versions. |
OpDef.Builder | ОчиститьОписание () Additional, longer human-readable description of what the Op does. |
OpDef.Builder | ClearField (поле com.google.protobuf.Descriptors.FieldDescriptor) |
OpDef.Builder | ОчиститьИнпутАрг () Description of the input(s). |
OpDef.Builder | очиститьIsAggregate () 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 | ясное имя () Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | ClearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OpDef.Builder | ОчиститьВыходАрг () Description of the output(s). |
OpDef.Builder | очиститьСводка () One-line human-readable description of what the Op does. |
OpDef.Builder | клон () |
логическое значение | getAllowsUninitializedInput () By default, all inputs to an Op must be initialized Tensors. |
Опдеф.АттрДеф | getAttr (целевой индекс) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDef.Builder | getAttrBuilder (индекс целого числа) repeated .tensorflow.OpDef.AttrDef attr = 4; |
Список< OpDef.AttrDef.Builder > | getAttrBuilderList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
интервал | getAttrCount () repeated .tensorflow.OpDef.AttrDef attr = 4; |
Список< OpDef.AttrDef > | getAttrList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.AttrDefOrBuilder | getAttrOrBuilder (индекс целого числа) repeated .tensorflow.OpDef.AttrDef attr = 4; |
Список <? расширяет OpDef.AttrDefOrBuilder > | getAttrOrBuilderList () repeated .tensorflow.OpDef.AttrDef attr = 4; |
Нить | getControlOutput (индекс целого числа) Named control outputs for this operation. |
com.google.protobuf.ByteString | getControlOutputBytes (индекс int) Named control outputs for this operation. |
интервал | getControlOutputCount () Named control outputs for this operation. |
com.google.protobuf.ProtocolStringList | getControlOutputList () Named control outputs for this operation. |
ОпДеф | |
Устаревание | получить устаревание () Optional deprecation based on GraphDef versions. |
OpDeprecation.Builder | getDeprecationBuilder () Optional deprecation based on GraphDef versions. |
OpDeprecationOrBuilder | getDeprecationOrBuilder () Optional deprecation based on GraphDef versions. |
Нить | получитьОписание () Additional, longer human-readable description of what the Op does. |
com.google.protobuf.ByteString | getDescriptionBytes () Additional, longer human-readable description of what the Op does. |
окончательный статический com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
OpDef.ArgDef | getInputArg (целочисленный индекс) Description of the input(s). |
OpDef.ArgDef.Builder | getInputArgBuilder (индекс целого числа) Description of the input(s). |
Список< OpDef.ArgDef.Builder > | getInputArgBuilderList () Description of the input(s). |
интервал | getInputArgCount () Description of the input(s). |
Список< OpDef.ArgDef > | getInputArgList () Description of the input(s). |
OpDef.ArgDefOrBuilder | getInputArgOrBuilder (индекс целого числа) Description of the input(s). |
Список<? расширяет OpDef.ArgDefOrBuilder > | getInputArgOrBuilderList () Description of the input(s). |
логическое значение | getIsAggregate () If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. |
логическое значение | getIsCommutative () True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs) bool is_commutative = 18; |
логическое значение | getIsStateful () Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. |
Нить | получитьИмя () Op names starting with an underscore are reserved for internal use. |
com.google.protobuf.ByteString | getNameBytes () Op names starting with an underscore are reserved for internal use. |
OpDef.ArgDef | getOutputArg (целочисленный индекс) Description of the output(s). |
OpDef.ArgDef.Builder | getOutputArgBuilder (индекс целого числа) Description of the output(s). |
Список< OpDef.ArgDef.Builder > | getOutputArgBuilderList () Description of the output(s). |
интервал | getOutputArgCount () Description of the output(s). |
Список< OpDef.ArgDef > | getOutputArgList () Description of the output(s). |
OpDef.ArgDefOrBuilder | getOutputArgOrBuilder (индекс целого числа) Description of the output(s). |
Список <? расширяет OpDef.ArgDefOrBuilder > | getOutputArgOrBuilderList () Description of the output(s). |
Нить | получитьСводку () One-line human-readable description of what the Op does. |
com.google.protobuf.ByteString | getSummaryBytes () One-line human-readable description of what the Op does. |
логическое значение | имеетУстарение () Optional deprecation based on GraphDef versions. |
последнее логическое значение | |
OpDef.Builder | |
OpDef.Builder | mergeFrom (com.google.protobuf.Message другое) |
OpDef.Builder | mergeFrom (ввод com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
окончательный OpDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields) |
OpDef.Builder | RemoveAttr (целочисленный индекс) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | RemoveInputArg (целочисленный индекс) Description of the input(s). |
OpDef.Builder | RemoveOutputArg (индекс целого числа) Description of the output(s). |
OpDef.Builder | setAllowsUninitializedInput (логическое значение) By default, all inputs to an Op must be initialized Tensors. |
OpDef.Builder | |
OpDef.Builder | setAttr (индекс целого числа, OpDef.AttrDef.Builder builderForValue) repeated .tensorflow.OpDef.AttrDef attr = 4; |
OpDef.Builder | setControlOutput (индекс int, строковое значение) Named control outputs for this operation. |
OpDef.Builder | setDeprecation ( OpDeprecation.Builder builderForValue) Optional deprecation based on GraphDef versions. |
OpDef.Builder | |
OpDef.Builder | setDescription (строковое значение) Additional, longer human-readable description of what the Op does. |
OpDef.Builder | setDescriptionBytes (значение com.google.protobuf.ByteString) Additional, longer human-readable description of what the Op does. |
OpDef.Builder | setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта) |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | setIsAggregate (логическое значение) If is_aggregate is true, then this operation accepts N >= 2 inputs and produces 1 output all of the same type. |
OpDef.Builder | setIsCommutative (логическое значение) True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs) bool is_commutative = 18; |
OpDef.Builder | setIsStateful (логическое значение) Ops are marked as stateful if their behavior depends on some state beyond their input tensors (e.g. |
OpDef.Builder | setName (строковое значение) Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | setNameBytes (значение com.google.protobuf.ByteString) Op names starting with an underscore are reserved for internal use. |
OpDef.Builder | |
OpDef.Builder | |
OpDef.Builder | setRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта) |
OpDef.Builder | setSummary (строковое значение) One-line human-readable description of what the Op does. |
OpDef.Builder | setSummaryBytes (значение com.google.protobuf.ByteString) One-line human-readable description of what the Op does. |
окончательный OpDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields) |
Унаследованные методы
Публичные методы
public OpDef.Builder addAllAttr (Iterable<? расширяет значения OpDef.AttrDef >)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addAllControlOutput (значения Iterable<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;
public OpDef.Builder addAllInputArg (Iterable<? расширяет значения OpDef.ArgDef >)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addAllOutputArg (Iterable<? расширяет значения OpDef.ArgDef >)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addAttr ( OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addAttr (индекс int, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addAttr (индекс int, значение OpDef.AttrDef )
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.AttrDef.Builder addAttrBuilder (индекс int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder addControlOutput (строковое значение)
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 addControlOutputBytes (значение 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;
public OpDef.Builder addInputArg ( OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addInputArg (индекс int, значение OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addInputArg (значение OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addInputArg (индекс int, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступный OpDef.ArgDef.Builder addInputArgBuilder ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.ArgDef.Builder addInputArgBuilder (индекс int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder addOutputArg (индекс int, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addOutputArg ( OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addOutputArg (индекс int, значение OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addOutputArg (значение OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.ArgDef.Builder addOutputArgBuilder (индекс int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
общедоступный OpDef.ArgDef.Builder addOutputArgBuilder ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
public OpDef.BuildercleAllowsUninitializedInput ( )
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 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 ClearDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
общедоступный OpDef.Builder ClearDescription ()
Additional, longer human-readable description of what the Op does.
string description = 6;
общедоступный OpDef.Builder ClearInputArg ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступный OpDef.Builder 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 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. 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.BuilderclearName ( )
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 ClearOutputArg ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
общедоступный OpDef.Builder ClearSummary ()
One-line human-readable description of what the Op does.
string summary = 5;
общедоступное логическое значение getAllowsUninitializedInput ()
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;
public OpDef.AttrDef.Builder getAttrBuilder (индекс int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
общедоступный список < OpDef.AttrDef.Builder > getAttrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
public int getAttrCount ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.AttrDefOrBuilder getAttrOrBuilder (индекс int)
repeated .tensorflow.OpDef.AttrDef attr = 4;
общедоступный список<? расширяет OpDef.AttrDefOrBuilder > getAttrOrBuilderList ()
repeated .tensorflow.OpDef.AttrDef attr = 4;
публичная строка getControlOutput (индекс 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;
public com.google.protobuf.ByteString getControlOutputBytes (индекс 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;
public int 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 ()
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 getDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
общедоступный OpDeprecation.Builder getDeprecationBuilder ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
общедоступный OpDeprecationOrBuilder getDeprecationOrBuilder ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
публичная строка getDescription ()
Additional, longer human-readable description of what the Op does.
string description = 6;
public com.google.protobuf.ByteString getDescriptionBytes ()
Additional, longer human-readable description of what the Op does.
string description = 6;
общедоступный статический окончательный com.google.protobuf.Descriptors.Descriptor getDescriptor ()
общедоступный com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public OpDef.ArgDef getInputArg (индекс int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.ArgDef.Builder getInputArgBuilder (индекс int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступный список < OpDef.ArgDef.Builder > getInputArgBuilderList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public int getInputArgCount ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступный список < OpDef.ArgDef > getInputArgList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.ArgDefOrBuilder getInputArgOrBuilder (индекс int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступный список<? расширяет OpDef.ArgDefOrBuilder > getInputArgOrBuilderList ()
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
общедоступное логическое значение getIsAggregate ()
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;
общедоступное логическое значение getIsCommutative ()
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
общедоступное логическое значение 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 ()
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;
public 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;
public OpDef.ArgDef getOutputArg (индекс int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.ArgDef.Builder getOutputArgBuilder (индекс int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
общедоступный список < OpDef.ArgDef.Builder > getOutputArgBuilderList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public int getOutputArgCount ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
общедоступный список < OpDef.ArgDef > getOutputArgList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.ArgDefOrBuilder getOutputArgOrBuilder (индекс int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
общедоступный список<? расширяет OpDef.ArgDefOrBuilder > getOutputArgOrBuilderList ()
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
публичная строка getSummary ()
One-line human-readable description of what the Op does.
string summary = 5;
public com.google.protobuf.ByteString getSummaryBytes ()
One-line human-readable description of what the Op does.
string summary = 5;
общедоступное логическое значение hasDeprecation ()
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
публичное окончательное логическое значение isInitialized ()
public OpDef.Builder mergeDeprecation (значение OpDeprecation )
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
public OpDef.Builder mergeFrom (вход com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Броски
Исключение IO |
---|
общедоступный финальный OpDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
public OpDef.Builder removeInputArg (индекс int)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder removeOutputArg (индекс int)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder setAllowsUninitializedInput (логическое значение)
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;
public OpDef.Builder setAttr (индекс int, значение OpDef.AttrDef )
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder setAttr (индекс int, OpDef.AttrDef.Builder builderForValue)
repeated .tensorflow.OpDef.AttrDef attr = 4;
public OpDef.Builder setControlOutput (индекс 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;
public OpDef.Builder setDeprecation ( OpDeprecation.Builder builderForValue)
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
public OpDef.Builder setDeprecation (значение OpDeprecation )
Optional deprecation based on GraphDef versions.
.tensorflow.OpDeprecation deprecation = 8;
public OpDef.Builder setDescription (строковое значение)
Additional, longer human-readable description of what the Op does.
string description = 6;
общедоступный OpDef.Builder setDescriptionBytes (значение com.google.protobuf.ByteString)
Additional, longer human-readable description of what the Op does.
string description = 6;
public OpDef.Builder setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
public OpDef.Builder setInputArg (индекс int, значение OpDef.ArgDef )
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder setInputArg (индекс int, OpDef.ArgDef.Builder builderForValue)
Description of the input(s).
repeated .tensorflow.OpDef.ArgDef input_arg = 2;
public OpDef.Builder setIsAggregate (логическое значение)
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 (логическое значение)
True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
bool is_commutative = 18;
public OpDef.Builder setIsStateful (логическое значение)
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;
public OpDef.Builder setName (строковое значение)
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;
public OpDef.Builder setNameBytes (значение 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;
public OpDef.Builder setOutputArg (индекс int, значение OpDef.ArgDef )
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder setOutputArg (индекс int, OpDef.ArgDef.Builder builderForValue)
Description of the output(s).
repeated .tensorflow.OpDef.ArgDef output_arg = 3;
public OpDef.Builder setRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта)
public OpDef.Builder setSummary (строковое значение)
One-line human-readable description of what the Op does.
string summary = 5;
общедоступный OpDef.Builder setSummaryBytes (значение com.google.protobuf.ByteString)
One-line human-readable description of what the Op does.
string summary = 5;