SavedResource.Builder

public static final class SavedResource.Builder

 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.
 
Protobuf type tensorflow.SavedResource

Public Methods

SavedResource.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedResource
SavedResource
SavedResource.Builder
SavedResource.Builder
clearDevice ()
 A device specification indicating a required placement for the resource
 creation function, e.g.
SavedResource.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
SavedResource.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
SavedResource.Builder
SavedResource
final static com.google.protobuf.Descriptors.Descriptor
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.
final boolean
SavedResource.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SavedResource.Builder
mergeFrom (com.google.protobuf.Message other)
final SavedResource.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
SavedResource.Builder
setDevice (String value)
 A device specification indicating a required placement for the resource
 creation function, e.g.
SavedResource.Builder
setDeviceBytes (com.google.protobuf.ByteString value)
 A device specification indicating a required placement for the resource
 creation function, e.g.
SavedResource.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedResource.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final SavedResource.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public SavedResource.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public SavedResource build ()

public SavedResource buildPartial ()

public SavedResource.Builder clear ()

public SavedResource.Builder clearDevice ()

 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 SavedResource.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public SavedResource.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public SavedResource.Builder clone ()

public SavedResource getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

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 final boolean isInitialized ()

public SavedResource.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public SavedResource.Builder mergeFrom (com.google.protobuf.Message other)

public final SavedResource.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public SavedResource.Builder setDevice (String value)

 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 SavedResource.Builder setDeviceBytes (com.google.protobuf.ByteString value)

 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 SavedResource.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public SavedResource.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public final SavedResource.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)