Package org.platanios.tensorflow.proto
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAllowedDevices(int index)
A set of devices containing the resource.com.google.protobuf.ByteString
getAllowedDevicesBytes(int index)
A set of devices containing the resource.int
getAllowedDevicesCount()
A set of devices containing the resource.java.util.List<java.lang.String>
getAllowedDevicesList()
A set of devices containing the resource.java.lang.String
getContainer()
Container in which this resource is placed.com.google.protobuf.ByteString
getContainerBytes()
Container in which this resource is placed.java.lang.String
getDevice()
Unique name for the device containing the resource.com.google.protobuf.ByteString
getDeviceBytes()
Unique name for the device containing the resource.ResourceHandleProto.DtypeAndShape
getDtypesAndShapes(int index)
Data types and shapes for the underlying resource.int
getDtypesAndShapesCount()
Data types and shapes for the underlying resource.java.util.List<ResourceHandleProto.DtypeAndShape>
getDtypesAndShapesList()
Data types and shapes for the underlying resource.ResourceHandleProto.DtypeAndShapeOrBuilder
getDtypesAndShapesOrBuilder(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.long
getHashCode()
Hash code for the type of the resource.java.lang.String
getMaybeTypeName()
For debug-only, the name of the type pointed to by this handle, if available.com.google.protobuf.ByteString
getMaybeTypeNameBytes()
For debug-only, the name of the type pointed to by this handle, if available.java.lang.String
getName()
Unique name of this resource.com.google.protobuf.ByteString
getNameBytes()
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 Detail
-
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 .org.platanios.tensorflow.proto.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
-
getDtypesAndShapes
ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index)
Data types and shapes for the underlying resource.
repeated .org.platanios.tensorflow.proto.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
-
getDtypesAndShapesCount
int getDtypesAndShapesCount()
Data types and shapes for the underlying resource.
repeated .org.platanios.tensorflow.proto.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
-
getDtypesAndShapesOrBuilderList
java.util.List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> getDtypesAndShapesOrBuilderList()
Data types and shapes for the underlying resource.
repeated .org.platanios.tensorflow.proto.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
-
getDtypesAndShapesOrBuilder
ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder(int index)
Data types and shapes for the underlying resource.
repeated .org.platanios.tensorflow.proto.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.
-
-