public final class FunctionDef extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements FunctionDefOrBuilder
A function can be instantiated when the runtime can bind every attr with a value. When a GraphDef has a call to a function, it must have binding for every attr defined in the signature. TODO(zhifengc): * device spec, etc.Protobuf type
tensorflow.FunctionDef| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionDef.Builder
A function can be instantiated when the runtime can bind every attr
with a value.
|
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_FIELD_NUMBER |
static int |
NODE_DEF_FIELD_NUMBER |
static int |
RET_FIELD_NUMBER |
static int |
SIGNATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttr(String key)
Attributes specific to this function definition.
|
boolean |
containsRet(String key)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
boolean |
equals(Object obj) |
Map<String,AttrValue> |
getAttr()
Deprecated.
|
int |
getAttrCount()
Attributes specific to this function definition.
|
Map<String,AttrValue> |
getAttrMap()
Attributes specific to this function definition.
|
AttrValue |
getAttrOrDefault(String key,
AttrValue defaultValue)
Attributes specific to this function definition.
|
AttrValue |
getAttrOrThrow(String key)
Attributes specific to this function definition.
|
static FunctionDef |
getDefaultInstance() |
FunctionDef |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
NodeDef |
getNodeDef(int index)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
int |
getNodeDefCount()
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
List<NodeDef> |
getNodeDefList()
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
NodeDefOrBuilder |
getNodeDefOrBuilder(int index)
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
List<? extends NodeDefOrBuilder> |
getNodeDefOrBuilderList()
By convention, "op" in node_def is resolved by consulting with a
user-defined library first.
|
org.nd4j.shade.protobuf.Parser<FunctionDef> |
getParserForType() |
Map<String,String> |
getRet()
Deprecated.
|
int |
getRetCount()
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
Map<String,String> |
getRetMap()
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
String |
getRetOrDefault(String key,
String defaultValue)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
String |
getRetOrThrow(String key)
A mapping from the output arg names from `signature` to the
outputs from `node_def` that should be returned by the function.
|
int |
getSerializedSize() |
OpDef |
getSignature()
The definition of the function's name, arguments, return values,
attrs etc.
|
OpDefOrBuilder |
getSignatureOrBuilder()
The definition of the function's name, arguments, return values,
attrs etc.
|
org.nd4j.shade.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasSignature()
The definition of the function's name, arguments, return values,
attrs etc.
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected org.nd4j.shade.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static FunctionDef.Builder |
newBuilder() |
static FunctionDef.Builder |
newBuilder(FunctionDef prototype) |
FunctionDef.Builder |
newBuilderForType() |
protected FunctionDef.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FunctionDef |
parseDelimitedFrom(InputStream input) |
static FunctionDef |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(byte[] data) |
static FunctionDef |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(ByteBuffer data) |
static FunctionDef |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static FunctionDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static FunctionDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static FunctionDef |
parseFrom(InputStream input) |
static FunctionDef |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<FunctionDef> |
parser() |
FunctionDef.Builder |
toBuilder() |
void |
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SIGNATURE_FIELD_NUMBER
public static final int ATTR_FIELD_NUMBER
public static final int NODE_DEF_FIELD_NUMBER
public static final int RET_FIELD_NUMBER
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuildergetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class org.nd4j.shade.protobuf.GeneratedMessageV3protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean hasSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;hasSignature in interface FunctionDefOrBuilderpublic OpDef getSignature()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;getSignature in interface FunctionDefOrBuilderpublic OpDefOrBuilder getSignatureOrBuilder()
The definition of the function's name, arguments, return values, attrs etc.
.tensorflow.OpDef signature = 1;getSignatureOrBuilder in interface FunctionDefOrBuilderpublic int getAttrCount()
FunctionDefOrBuilderAttributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrCount in interface FunctionDefOrBuilderpublic boolean containsAttr(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;containsAttr in interface FunctionDefOrBuilder@Deprecated public Map<String,AttrValue> getAttr()
getAttrMap() instead.getAttr in interface FunctionDefOrBuilderpublic Map<String,AttrValue> getAttrMap()
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrMap in interface FunctionDefOrBuilderpublic AttrValue getAttrOrDefault(String key, AttrValue defaultValue)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrDefault in interface FunctionDefOrBuilderpublic AttrValue getAttrOrThrow(String key)
Attributes specific to this function definition.
map<string, .tensorflow.AttrValue> attr = 5;getAttrOrThrow in interface FunctionDefOrBuilderpublic List<NodeDef> getNodeDefList()
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.
repeated .tensorflow.NodeDef node_def = 3;getNodeDefList in interface FunctionDefOrBuilderpublic List<? extends NodeDefOrBuilder> getNodeDefOrBuilderList()
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.
repeated .tensorflow.NodeDef node_def = 3;getNodeDefOrBuilderList in interface FunctionDefOrBuilderpublic int getNodeDefCount()
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.
repeated .tensorflow.NodeDef node_def = 3;getNodeDefCount in interface FunctionDefOrBuilderpublic NodeDef getNodeDef(int index)
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.
repeated .tensorflow.NodeDef node_def = 3;getNodeDef in interface FunctionDefOrBuilderpublic NodeDefOrBuilder getNodeDefOrBuilder(int index)
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.
repeated .tensorflow.NodeDef node_def = 3;getNodeDefOrBuilder in interface FunctionDefOrBuilderpublic int getRetCount()
FunctionDefOrBuilderA mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;getRetCount in interface FunctionDefOrBuilderpublic boolean containsRet(String key)
A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;containsRet in interface FunctionDefOrBuilder@Deprecated public Map<String,String> getRet()
getRetMap() instead.getRet in interface FunctionDefOrBuilderpublic Map<String,String> getRetMap()
A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;getRetMap in interface FunctionDefOrBuilderpublic String getRetOrDefault(String key, String defaultValue)
A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;getRetOrDefault in interface FunctionDefOrBuilderpublic String getRetOrThrow(String key)
A mapping from the output arg names from `signature` to the outputs from `node_def` that should be returned by the function.
map<string, string> ret = 4;getRetOrThrow in interface FunctionDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface org.nd4j.shade.protobuf.MessageLitewriteTo in class org.nd4j.shade.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface org.nd4j.shade.protobuf.MessageLitegetSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface org.nd4j.shade.protobuf.Messageequals in class org.nd4j.shade.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface org.nd4j.shade.protobuf.MessagehashCode in class org.nd4j.shade.protobuf.AbstractMessagepublic static FunctionDef parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static FunctionDef parseFrom(InputStream input) throws IOException
IOExceptionpublic static FunctionDef parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FunctionDef parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FunctionDef parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FunctionDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FunctionDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FunctionDef.Builder newBuilderForType()
newBuilderForType in interface org.nd4j.shade.protobuf.MessagenewBuilderForType in interface org.nd4j.shade.protobuf.MessageLitepublic static FunctionDef.Builder newBuilder()
public static FunctionDef.Builder newBuilder(FunctionDef prototype)
public FunctionDef.Builder toBuilder()
toBuilder in interface org.nd4j.shade.protobuf.MessagetoBuilder in interface org.nd4j.shade.protobuf.MessageLiteprotected FunctionDef.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public static FunctionDef getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<FunctionDef> parser()
public org.nd4j.shade.protobuf.Parser<FunctionDef> getParserForType()
getParserForType in interface org.nd4j.shade.protobuf.MessagegetParserForType in interface org.nd4j.shade.protobuf.MessageLitegetParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public FunctionDef getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderCopyright © 2022. All rights reserved.