ApiDef.Builder

public static final class ApiDef.Builder

 Used to specify and override the default API & behavior in the
 generated code for client languages, from what you would get from
 the OpDef alone. There will be a set of ApiDefs that are common
 to all client languages, and another set per client language.
 The per-client-language ApiDefs will inherit values from the
 common ApiDefs which it can either replace or modify.
 We separate the API definition from the OpDef so we can evolve the
 API while remaining backwards compatible when interpretting old
 graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
 ApiDefs message.
 WARNING: Be *very* careful changing the API for any existing op --
 you can change the semantics of existing code.  These changes may
 need to wait until a major release of TensorFlow to avoid breaking
 our compatibility promises.
 
Protobuf type tensorflow.ApiDef

Public Methods

ApiDef.Builder
addAllArgOrder (Iterable<String> values)
 List of original in_arg names to specify new argument order.
ApiDef.Builder
addAllAttr (Iterable<? extends ApiDef.Attr > values)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
addAllEndpoint (Iterable<? extends ApiDef.Endpoint > values)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
addAllInArg (Iterable<? extends ApiDef.Arg > values)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
addAllOutArg (Iterable<? extends ApiDef.Arg > values)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
addArgOrder (String value)
 List of original in_arg names to specify new argument order.
ApiDef.Builder
addArgOrderBytes (com.google.protobuf.ByteString value)
 List of original in_arg names to specify new argument order.
ApiDef.Builder
addAttr (int index, ApiDef.Attr value)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
addAttr (int index, ApiDef.Attr.Builder builderForValue)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
addAttr ( ApiDef.Attr.Builder builderForValue)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
addAttr ( ApiDef.Attr value)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Attr.Builder
addAttrBuilder ()
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Attr.Builder
addAttrBuilder (int index)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
addEndpoint (int index, ApiDef.Endpoint.Builder builderForValue)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
addEndpoint (int index, ApiDef.Endpoint value)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
addEndpoint ( ApiDef.Endpoint.Builder builderForValue)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
addEndpoint ( ApiDef.Endpoint value)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Endpoint.Builder
addEndpointBuilder (int index)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Endpoint.Builder
addEndpointBuilder ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
addInArg ( ApiDef.Arg value)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
addInArg (int index, ApiDef.Arg.Builder builderForValue)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
addInArg ( ApiDef.Arg.Builder builderForValue)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
addInArg (int index, ApiDef.Arg value)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Arg.Builder
addInArgBuilder (int index)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Arg.Builder
addInArgBuilder ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
addOutArg ( ApiDef.Arg value)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
addOutArg (int index, ApiDef.Arg value)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
addOutArg (int index, ApiDef.Arg.Builder builderForValue)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
addOutArg ( ApiDef.Arg.Builder builderForValue)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Arg.Builder
addOutArgBuilder ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Arg.Builder
addOutArgBuilder (int index)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApiDef
ApiDef
ApiDef.Builder
ApiDef.Builder
clearArgOrder ()
 List of original in_arg names to specify new argument order.
ApiDef.Builder
clearAttr ()
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Builder
clearDeprecationMessage ()
 If this op is deprecated, set deprecation message to the message
 that should be logged when this op is used.
ApiDef.Builder
clearDeprecationVersion ()
 Major version when the op will be deleted.
ApiDef.Builder
clearDescription ()
 Additional, longer human-readable description of what the Op does.
ApiDef.Builder
clearDescriptionPrefix ()
 Modify an existing/inherited description by adding text to the beginning
 or end.
ApiDef.Builder
clearDescriptionSuffix ()
string description_suffix = 10;
ApiDef.Builder
clearEndpoint ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
ApiDef.Builder
clearGraphOpName ()
 Name of the op (in the OpDef) to specify the API for.
ApiDef.Builder
clearInArg ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApiDef.Builder
clearOutArg ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Builder
clearSummary ()
 One-line human-readable description of what the Op does.
ApiDef.Builder
clearVisibility ()
.tensorflow.ApiDef.Visibility visibility = 2;
ApiDef.Builder
String
getArgOrder (int index)
 List of original in_arg names to specify new argument order.
com.google.protobuf.ByteString
getArgOrderBytes (int index)
 List of original in_arg names to specify new argument order.
int
getArgOrderCount ()
 List of original in_arg names to specify new argument order.
com.google.protobuf.ProtocolStringList
getArgOrderList ()
 List of original in_arg names to specify new argument order.
ApiDef.Attr
getAttr (int index)
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.Attr.Builder
getAttrBuilder (int index)
repeated .tensorflow.ApiDef.Attr attr = 6;
List< ApiDef.Attr.Builder >
getAttrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
int
getAttrCount ()
repeated .tensorflow.ApiDef.Attr attr = 6;
List< ApiDef.Attr >
getAttrList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef.AttrOrBuilder
getAttrOrBuilder (int index)
repeated .tensorflow.ApiDef.Attr attr = 6;
List<? extends ApiDef.AttrOrBuilder >
getAttrOrBuilderList ()
repeated .tensorflow.ApiDef.Attr attr = 6;
ApiDef
String
getDeprecationMessage ()
 If this op is deprecated, set deprecation message to the message
 that should be logged when this op is used.
com.google.protobuf.ByteString
getDeprecationMessageBytes ()
 If this op is deprecated, set deprecation message to the message
 that should be logged when this op is used.
int
getDeprecationVersion ()
 Major version when the op will be deleted.
String
getDescription ()
 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.
String
getDescriptionPrefix ()
 Modify an existing/inherited description by adding text to the beginning
 or end.
com.google.protobuf.ByteString
getDescriptionPrefixBytes ()
 Modify an existing/inherited description by adding text to the beginning
 or end.
String
getDescriptionSuffix ()
string description_suffix = 10;
com.google.protobuf.ByteString
getDescriptionSuffixBytes ()
string description_suffix = 10;
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
ApiDef.Endpoint
getEndpoint (int index)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.Endpoint.Builder
getEndpointBuilder (int index)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
List< ApiDef.Endpoint.Builder >
getEndpointBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
int
getEndpointCount ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
List< ApiDef.Endpoint >
getEndpointList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
ApiDef.EndpointOrBuilder
getEndpointOrBuilder (int index)
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
List<? extends ApiDef.EndpointOrBuilder >
getEndpointOrBuilderList ()
repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
String
getGraphOpName ()
 Name of the op (in the OpDef) to specify the API for.
com.google.protobuf.ByteString
getGraphOpNameBytes ()
 Name of the op (in the OpDef) to specify the API for.
ApiDef.Arg
getInArg (int index)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Arg.Builder
getInArgBuilder (int index)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
List< ApiDef.Arg.Builder >
getInArgBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
int
getInArgCount ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
List< ApiDef.Arg >
getInArgList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.ArgOrBuilder
getInArgOrBuilder (int index)
repeated .tensorflow.ApiDef.Arg in_arg = 4;
List<? extends ApiDef.ArgOrBuilder >
getInArgOrBuilderList ()
repeated .tensorflow.ApiDef.Arg in_arg = 4;
ApiDef.Arg
getOutArg (int index)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
ApiDef.Arg.Builder
getOutArgBuilder (int index)
repeated .tensorflow.ApiDef.Arg out_arg = 5;
List< ApiDef.Arg.Builder >
getOutArgBuilderList ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
int
getOutArgCount ()
repeated .tensorflow.ApiDef.Arg out_arg = 5;
List<