public static final class
GraphOpCreation.Builder
The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
tensorflow.GraphOpCreation
Public Methods
GraphOpCreation.Builder |
addAllInputNames(Iterable<String> values)
Names of the input tensors to the op. |
GraphOpCreation.Builder |
addAllOutputTensorIds(Iterable<? extends Integer> values)
Unique IDs for the output tensors of this op. |
GraphOpCreation.Builder |
addInputNames(String value)
Names of the input tensors to the op. |
GraphOpCreation.Builder |
addInputNamesBytes(com.google.protobuf.ByteString value)
Names of the input tensors to the op. |
GraphOpCreation.Builder |
addOutputTensorIds(int value)
Unique IDs for the output tensors of this op. |
GraphOpCreation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
GraphOpCreation |
build()
|
GraphOpCreation | |
GraphOpCreation.Builder |
clear()
|
GraphOpCreation.Builder |
clearCodeLocation()
The unique ID for code location (stack trace) of the op's creation. |
GraphOpCreation.Builder |
clearDeviceName()
Name of the device that the op is assigned to (if available). |
GraphOpCreation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
GraphOpCreation.Builder |
clearGraphId()
Unique ID of the graph (generated by debugger). |
GraphOpCreation.Builder |
clearGraphName()
Name of the graph that the op is a part of (if available). |
GraphOpCreation.Builder |
clearInputNames()
Names of the input tensors to the op. |
GraphOpCreation.Builder |
clearNumOutputs()
Number of output tensors emitted by the op. |
GraphOpCreation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
GraphOpCreation.Builder |
clearOpName()
Name of the op (e.g., "Dense/MatMul_1"). |
GraphOpCreation.Builder |
clearOpType()
Type of the op (e.g., "MatMul"). |
GraphOpCreation.Builder |
clearOutputTensorIds()
Unique IDs for the output tensors of this op. |
GraphOpCreation.Builder |
clone()
|
CodeLocation |
getCodeLocation()
The unique ID for code location (stack trace) of the op's creation. |
CodeLocation.Builder |
getCodeLocationBuilder()
The unique ID for code location (stack trace) of the op's creation. |
CodeLocationOrBuilder |
getCodeLocationOrBuilder()
The unique ID for code location (stack trace) of the op's creation. |
GraphOpCreation | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
String |
getDeviceName()
Name of the device that the op is assigned to (if available). |
com.google.protobuf.ByteString |
getDeviceNameBytes()
Name of the device that the op is assigned to (if available). |
String |
getGraphId()
Unique ID of the graph (generated by debugger). |
com.google.protobuf.ByteString |
getGraphIdBytes()
Unique ID of the graph (generated by debugger). |
String |
getGraphName()
Name of the graph that the op is a part of (if available). |
com.google.protobuf.ByteString |
getGraphNameBytes()
Name of the graph that the op is a part of (if available). |
String |
getInputNames(int index)
Names of the input tensors to the op. |
com.google.protobuf.ByteString |
getInputNamesBytes(int index)
Names of the input tensors to the op. |
int |
getInputNamesCount()
Names of the input tensors to the op. |
com.google.protobuf.ProtocolStringList |
getInputNamesList()
Names of the input tensors to the op. |
int |
getNumOutputs()
Number of output tensors emitted by the op. |
String |
getOpName()
Name of the op (e.g., "Dense/MatMul_1"). |
com.google.protobuf.ByteString |
getOpNameBytes()
Name of the op (e.g., "Dense/MatMul_1"). |
String |
getOpType()
Type of the op (e.g., "MatMul"). |
com.google.protobuf.ByteString |
getOpTypeBytes()
Type of the op (e.g., "MatMul"). |
int |
getOutputTensorIds(int index)
Unique IDs for the output tensors of this op. |
int |
getOutputTensorIdsCount()
Unique IDs for the output tensors of this op. |
List<Integer> |
getOutputTensorIdsList()
Unique IDs for the output tensors of this op. |
boolean |
hasCodeLocation()
The unique ID for code location (stack trace) of the op's creation. |
final boolean | |
GraphOpCreation.Builder |
mergeCodeLocation(CodeLocation value)
The unique ID for code location (stack trace) of the op's creation. |
GraphOpCreation.Builder |
mergeFrom(com.google.protobuf.Message other)
|
GraphOpCreation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
final GraphOpCreation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
GraphOpCreation.Builder |
setCodeLocation(CodeLocation value)
The unique ID for code location (stack trace) of the op's creation. |
GraphOpCreation.Builder |
setCodeLocation(CodeLocation.Builder builderForValue)
The unique ID for code location (stack trace) of the op's creation. |
GraphOpCreation.Builder |
setDeviceName(String value)
Name of the device that the op is assigned to (if available). |
GraphOpCreation.Builder |
setDeviceNameBytes(com.google.protobuf.ByteString value)
Name of the device that the op is assigned to (if available). |
GraphOpCreation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
GraphOpCreation.Builder |
setGraphId(String value)
Unique ID of the graph (generated by debugger). |
GraphOpCreation.Builder |
setGraphIdBytes(com.google.protobuf.ByteString value)
Unique ID of the graph (generated by debugger). |
GraphOpCreation.Builder |
setGraphName(String value)
Name of the graph that the op is a part of (if available). |
GraphOpCreation.Builder |
setGraphNameBytes(com.google.protobuf.ByteString value)
Name of the graph that the op is a part of (if available). |
GraphOpCreation.Builder |
setInputNames(int index, String value)
Names of the input tensors to the op. |
GraphOpCreation.Builder |
setNumOutputs(int value)
Number of output tensors emitted by the op. |
GraphOpCreation.Builder |
setOpName(String value)
Name of the op (e.g., "Dense/MatMul_1"). |
GraphOpCreation.Builder |
setOpNameBytes(com.google.protobuf.ByteString value)
Name of the op (e.g., "Dense/MatMul_1"). |
GraphOpCreation.Builder |
setOpType(String value)
Type of the op (e.g., "MatMul"). |
GraphOpCreation.Builder |
setOpTypeBytes(com.google.protobuf.ByteString value)
Type of the op (e.g., "MatMul"). |
GraphOpCreation.Builder |
setOutputTensorIds(int index, int value)
Unique IDs for the output tensors of this op. |
GraphOpCreation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final GraphOpCreation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public GraphOpCreation.Builder addAllInputNames (Iterable<String> values)
Names of the input tensors to the op.
repeated string input_names = 6;
public GraphOpCreation.Builder addAllOutputTensorIds (Iterable<? extends Integer> values)
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public GraphOpCreation.Builder addInputNames (String value)
Names of the input tensors to the op.
repeated string input_names = 6;
public GraphOpCreation.Builder addInputNamesBytes (com.google.protobuf.ByteString value)
Names of the input tensors to the op.
repeated string input_names = 6;
public GraphOpCreation.Builder addOutputTensorIds (int value)
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public GraphOpCreation.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public GraphOpCreation.Builder clearCodeLocation ()
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public GraphOpCreation.Builder clearDeviceName ()
Name of the device that the op is assigned to (if available).
string device_name = 5;
public GraphOpCreation.Builder clearGraphId ()
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;
public GraphOpCreation.Builder clearGraphName ()
Name of the graph that the op is a part of (if available).
string graph_name = 3;
public GraphOpCreation.Builder clearInputNames ()
Names of the input tensors to the op.
repeated string input_names = 6;
public GraphOpCreation.Builder clearNumOutputs ()
Number of output tensors emitted by the op.
int32 num_outputs = 7;
public GraphOpCreation.Builder clearOpName ()
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;
public GraphOpCreation.Builder clearOutputTensorIds ()
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public CodeLocation getCodeLocation ()
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public CodeLocation.Builder getCodeLocationBuilder ()
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public CodeLocationOrBuilder getCodeLocationOrBuilder ()
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public String getDeviceName ()
Name of the device that the op is assigned to (if available).
string device_name = 5;
public com.google.protobuf.ByteString getDeviceNameBytes ()
Name of the device that the op is assigned to (if available).
string device_name = 5;
public String getGraphId ()
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;
public com.google.protobuf.ByteString getGraphIdBytes ()
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;
public String getGraphName ()
Name of the graph that the op is a part of (if available).
string graph_name = 3;
public com.google.protobuf.ByteString getGraphNameBytes ()
Name of the graph that the op is a part of (if available).
string graph_name = 3;
public String getInputNames (int index)
Names of the input tensors to the op.
repeated string input_names = 6;
public com.google.protobuf.ByteString getInputNamesBytes (int index)
Names of the input tensors to the op.
repeated string input_names = 6;
public int getInputNamesCount ()
Names of the input tensors to the op.
repeated string input_names = 6;
public com.google.protobuf.ProtocolStringList getInputNamesList ()
Names of the input tensors to the op.
repeated string input_names = 6;
public int getNumOutputs ()
Number of output tensors emitted by the op.
int32 num_outputs = 7;
public String getOpName ()
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;
public com.google.protobuf.ByteString getOpNameBytes ()
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;
public String getOpType ()
Type of the op (e.g., "MatMul").
string op_type = 1;
public com.google.protobuf.ByteString getOpTypeBytes ()
Type of the op (e.g., "MatMul").
string op_type = 1;
public int getOutputTensorIds (int index)
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public int getOutputTensorIdsCount ()
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public List<Integer> getOutputTensorIdsList ()
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;
public boolean hasCodeLocation ()
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public final boolean isInitialized ()
public GraphOpCreation.Builder mergeCodeLocation (CodeLocation value)
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public GraphOpCreation.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public final GraphOpCreation.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public GraphOpCreation.Builder setCodeLocation (CodeLocation value)
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public GraphOpCreation.Builder setCodeLocation (CodeLocation.Builder builderForValue)
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;
public GraphOpCreation.Builder setDeviceName (String value)
Name of the device that the op is assigned to (if available).
string device_name = 5;
public GraphOpCreation.Builder setDeviceNameBytes (com.google.protobuf.ByteString value)
Name of the device that the op is assigned to (if available).
string device_name = 5;
public GraphOpCreation.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public GraphOpCreation.Builder setGraphId (String value)
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;
public GraphOpCreation.Builder setGraphIdBytes (com.google.protobuf.ByteString value)
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;
public GraphOpCreation.Builder setGraphName (String value)
Name of the graph that the op is a part of (if available).
string graph_name = 3;
public GraphOpCreation.Builder setGraphNameBytes (com.google.protobuf.ByteString value)
Name of the graph that the op is a part of (if available).
string graph_name = 3;
public GraphOpCreation.Builder setInputNames (int index, String value)
Names of the input tensors to the op.
repeated string input_names = 6;
public GraphOpCreation.Builder setNumOutputs (int value)
Number of output tensors emitted by the op.
int32 num_outputs = 7;
public GraphOpCreation.Builder setOpName (String value)
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;
public GraphOpCreation.Builder setOpNameBytes (com.google.protobuf.ByteString value)
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;
public GraphOpCreation.Builder setOpType (String value)
Type of the op (e.g., "MatMul").
string op_type = 1;
public GraphOpCreation.Builder setOpTypeBytes (com.google.protobuf.ByteString value)
Type of the op (e.g., "MatMul").
string op_type = 1;
public GraphOpCreation.Builder setOutputTensorIds (int index, int value)
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;