public final class
SavedResource
A SavedResource represents a TF object that holds state during its lifetime. An object of this type can have a reference to a: create_resource() and an initialize() function.
tensorflow.SavedResource
Nested Classes
class | SavedResource.Builder | A SavedResource represents a TF object that holds state during its lifetime. |
Constants
int | DEVICE_FIELD_NUMBER |
Public Methods
boolean |
equals(Object obj)
|
static SavedResource | |
SavedResource | |
final static com.google.protobuf.Descriptors.Descriptor | |
String |
getDevice()
A device specification indicating a required placement for the resource creation function, e.g. |
com.google.protobuf.ByteString |
getDeviceBytes()
A device specification indicating a required placement for the resource creation function, e.g. |
|
|
int | |
final com.google.protobuf.UnknownFieldSet | |
int |
hashCode()
|
final boolean | |
static SavedResource.Builder | |
static SavedResource.Builder |
newBuilder(SavedResource prototype)
|
SavedResource.Builder | |
static SavedResource |
parseDelimitedFrom(InputStream input)
|
static SavedResource |
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedResource |
parseFrom(ByteBuffer data)
|
static SavedResource |
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedResource |
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedResource |
parseFrom(com.google.protobuf.CodedInputStream input)
|
static SavedResource |
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedResource |
parseFrom(com.google.protobuf.ByteString data)
|
static SavedResource |
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static SavedResource |
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static
|
parser()
|
SavedResource.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|
Inherited Methods
Constants
public static final int DEVICE_FIELD_NUMBER
Constant Value:
1
Public Methods
public boolean equals (Object obj)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public String getDevice ()
A device specification indicating a required placement for the resource creation function, e.g. "CPU". An empty string allows the user to select a device.
string device = 1;
public com.google.protobuf.ByteString getDeviceBytes ()
A device specification indicating a required placement for the resource creation function, e.g. "CPU". An empty string allows the user to select a device.
string device = 1;
public
getParserForType
()
public int getSerializedSize ()
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int hashCode ()
public final boolean isInitialized ()
public static SavedResource parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedResource parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedResource parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static SavedResource parseFrom (com.google.protobuf.CodedInputStream input)
Throws
IOException |
---|
public static SavedResource parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static SavedResource parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static SavedResource parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static SavedResource parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public
static
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
IOException |
---|