Package org.tensorflow.framework
Interface ResourceHandleProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceHandleProto,ResourceHandleProto.Builder
public interface ResourceHandleProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description java.lang.StringgetAllowedDevices(int index)A set of devices containing the resource.com.google.protobuf.ByteStringgetAllowedDevicesBytes(int index)A set of devices containing the resource.intgetAllowedDevicesCount()A set of devices containing the resource.java.util.List<java.lang.String>getAllowedDevicesList()A set of devices containing the resource.java.lang.StringgetContainer()Container in which this resource is placed.com.google.protobuf.ByteStringgetContainerBytes()Container in which this resource is placed.java.lang.StringgetDevice()Unique name for the device containing the resource.com.google.protobuf.ByteStringgetDeviceBytes()Unique name for the device containing the resource.ResourceHandleProto.DtypeAndShapegetDtypesAndShapes(int index)Data types and shapes for the underlying resource.intgetDtypesAndShapesCount()Data types and shapes for the underlying resource.java.util.List<ResourceHandleProto.DtypeAndShape>getDtypesAndShapesList()Data types and shapes for the underlying resource.ResourceHandleProto.DtypeAndShapeOrBuildergetDtypesAndShapesOrBuilder(int index)Data types and shapes for the underlying resource.java.util.List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder>getDtypesAndShapesOrBuilderList()Data types and shapes for the underlying resource.longgetHashCode()Hash code for the type of the resource.java.lang.StringgetMaybeTypeName()For debug-only, the name of the type pointed to by this handle, if available.com.google.protobuf.ByteStringgetMaybeTypeNameBytes()For debug-only, the name of the type pointed to by this handle, if available.java.lang.StringgetName()Unique name of this resource.com.google.protobuf.ByteStringgetNameBytes()Unique name of this resource.Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDevice
java.lang.String getDevice()Unique name for the device containing the resource.
string device = 1;- Returns:
- The device.
-
getDeviceBytes
com.google.protobuf.ByteString getDeviceBytes()Unique name for the device containing the resource.
string device = 1;- Returns:
- The bytes for device.
-
getContainer
java.lang.String getContainer()Container in which this resource is placed.
string container = 2;- Returns:
- The container.
-
getContainerBytes
com.google.protobuf.ByteString getContainerBytes()Container in which this resource is placed.
string container = 2;- Returns:
- The bytes for container.
-
getName
java.lang.String getName()Unique name of this resource.
string name = 3;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Unique name of this resource.
string name = 3;- Returns:
- The bytes for name.
-
getHashCode
long getHashCode()Hash code for the type of the resource. Is only valid in the same device and in the same execution.
uint64 hash_code = 4;- Returns:
- The hashCode.
-
getMaybeTypeName
java.lang.String getMaybeTypeName()For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Returns:
- The maybeTypeName.
-
getMaybeTypeNameBytes
com.google.protobuf.ByteString getMaybeTypeNameBytes()For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Returns:
- The bytes for maybeTypeName.
-
getDtypesAndShapesList
java.util.List<ResourceHandleProto.DtypeAndShape> getDtypesAndShapesList()Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapes
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesCount
int getDtypesAndShapesCount()Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesOrBuilderList
java.util.List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> getDtypesAndShapesOrBuilderList()Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesOrBuilder
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getAllowedDevicesList
java.util.List<java.lang.String> getAllowedDevicesList()A set of devices containing the resource. If empty, the resource only exists on `device`.
repeated string allowed_devices = 7;- Returns:
- A list containing the allowedDevices.
-
getAllowedDevicesCount
int getAllowedDevicesCount()A set of devices containing the resource. If empty, the resource only exists on `device`.
repeated string allowed_devices = 7;- Returns:
- The count of allowedDevices.
-
getAllowedDevices
java.lang.String getAllowedDevices(int index)A set of devices containing the resource. If empty, the resource only exists on `device`.
repeated string allowed_devices = 7;- Parameters:
index- The index of the element to return.- Returns:
- The allowedDevices at the given index.
-
getAllowedDevicesBytes
com.google.protobuf.ByteString getAllowedDevicesBytes(int index)A set of devices containing the resource. If empty, the resource only exists on `device`.
repeated string allowed_devices = 7;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedDevices at the given index.
-