public final class TensorRepresentationGroup extends com.google.protobuf.GeneratedMessageV3 implements TensorRepresentationGroupOrBuilder
A TensorRepresentationGroup is a collection of TensorRepresentations with
names. These names may serve as identifiers when converting the dataset
to a collection of Tensors or tf.CompositeTensors.
For example, given the following group:
{
key: "dense_tensor"
tensor_representation {
dense_tensor {
column_name: "univalent_feature"
shape {
dim {
size: 1
}
}
default_value {
float_value: 0
}
}
}
}
{
key: "varlen_sparse_tensor"
tensor_representation {
varlen_sparse_tensor {
column_name: "multivalent_feature"
}
}
}
Then the schema is expected to have feature "univalent_feature" and
"multivalent_feature", and when a batch of data is converted to Tensors using
this TensorRepresentationGroup, the result may be the following dict:
{
"dense_tensor": tf.Tensor(...),
"varlen_sparse_tensor": tf.SparseTensor(...),
}
Protobuf type tensorflow.metadata.v0.TensorRepresentationGroup| Modifier and Type | Class and Description |
|---|---|
static class |
TensorRepresentationGroup.Builder
A TensorRepresentationGroup is a collection of TensorRepresentations with
names.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static com.google.protobuf.Parser<TensorRepresentationGroup> |
PARSER
Deprecated.
|
static int |
TENSOR_REPRESENTATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTensorRepresentation(String key)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1; |
boolean |
equals(Object obj) |
static TensorRepresentationGroup |
getDefaultInstance() |
TensorRepresentationGroup |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<TensorRepresentationGroup> |
getParserForType() |
int |
getSerializedSize() |
Map<String,TensorRepresentation> |
getTensorRepresentation()
Deprecated.
|
int |
getTensorRepresentationCount()
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1; |
Map<String,TensorRepresentation> |
getTensorRepresentationMap()
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1; |
TensorRepresentation |
getTensorRepresentationOrDefault(String key,
TensorRepresentation defaultValue)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1; |
TensorRepresentation |
getTensorRepresentationOrThrow(String key)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TensorRepresentationGroup.Builder |
newBuilder() |
static TensorRepresentationGroup.Builder |
newBuilder(TensorRepresentationGroup prototype) |
TensorRepresentationGroup.Builder |
newBuilderForType() |
protected TensorRepresentationGroup.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TensorRepresentationGroup |
parseDelimitedFrom(InputStream input) |
static TensorRepresentationGroup |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TensorRepresentationGroup |
parseFrom(byte[] data) |
static TensorRepresentationGroup |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TensorRepresentationGroup |
parseFrom(ByteBuffer data) |
static TensorRepresentationGroup |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TensorRepresentationGroup |
parseFrom(com.google.protobuf.ByteString data) |
static TensorRepresentationGroup |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TensorRepresentationGroup |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TensorRepresentationGroup |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TensorRepresentationGroup |
parseFrom(InputStream input) |
static TensorRepresentationGroup |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TensorRepresentationGroup> |
parser() |
TensorRepresentationGroup.Builder |
toBuilder() |
void |
writeTo(com.google.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 TENSOR_REPRESENTATION_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<TensorRepresentationGroup> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTensorRepresentationCount()
TensorRepresentationGroupOrBuildermap<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1;getTensorRepresentationCount in interface TensorRepresentationGroupOrBuilderpublic boolean containsTensorRepresentation(String key)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1;containsTensorRepresentation in interface TensorRepresentationGroupOrBuilder@Deprecated public Map<String,TensorRepresentation> getTensorRepresentation()
getTensorRepresentationMap() instead.getTensorRepresentation in interface TensorRepresentationGroupOrBuilderpublic Map<String,TensorRepresentation> getTensorRepresentationMap()
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1;getTensorRepresentationMap in interface TensorRepresentationGroupOrBuilderpublic TensorRepresentation getTensorRepresentationOrDefault(String key, TensorRepresentation defaultValue)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1;getTensorRepresentationOrDefault in interface TensorRepresentationGroupOrBuilderpublic TensorRepresentation getTensorRepresentationOrThrow(String key)
map<string, .tensorflow.metadata.v0.TensorRepresentation> tensor_representation = 1;getTensorRepresentationOrThrow in interface TensorRepresentationGroupOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TensorRepresentationGroup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TensorRepresentationGroup parseFrom(InputStream input) throws IOException
IOExceptionpublic static TensorRepresentationGroup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TensorRepresentationGroup parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TensorRepresentationGroup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TensorRepresentationGroup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TensorRepresentationGroup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TensorRepresentationGroup.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TensorRepresentationGroup.Builder newBuilder()
public static TensorRepresentationGroup.Builder newBuilder(TensorRepresentationGroup prototype)
public TensorRepresentationGroup.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TensorRepresentationGroup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TensorRepresentationGroup getDefaultInstance()
public static com.google.protobuf.Parser<TensorRepresentationGroup> parser()
public com.google.protobuf.Parser<TensorRepresentationGroup> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TensorRepresentationGroup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Gojek. All rights reserved.