database_client_interface module reference
<undocumented>
Data Types
Dummy type for dataset. |
|
Stores all data and methods associated with the communication client that is used to communicate with the database. |
Functions/Subroutines
Decode a response code from an API function. |
|
Initializes a new instance of a communication client. |
|
Check whether the client has been initialized. |
|
A destructor for the communication client. |
|
Put a 32-bit real 1d tensor into the database. |
|
Put a 32-bit real 2d tensor into the database. |
|
Put a 32-bit real 3d tensor into the database. |
|
Put a 32-bit real 4d tensor into the database. |
|
Put a 64-bit real 1d tensor into the database. |
|
Put a 64-bit real 2d tensor into the database. |
|
Put a 64-bit real 3d tensor into the database. |
|
Put a 64-bit real 4d tensor into the database. |
|
Put a 32-bit integer 1d tensor into the database. |
|
Put a 32-bit integer 2d tensor into the database. |
|
Put a 32-bit integer 3d tensor into the database. |
|
Put a 32-bit integer 4d tensor into the database. |
|
Unpack a 32-bit real 1d tensor from the database. |
|
Unpack a 32-bit real 2d tensor from the database. |
|
Unpack a 32-bit real 3d tensor from the database. |
|
Unpack a 32-bit real 4d tensor from the database. |
|
Unpack a 64-bit real 1d tensor from the database. |
|
Unpack a 64-bit real 2d tensor from the database. |
|
Unpack a 64-bit real 3d tensor from the database. |
|
Unpack a 64-bit real 4d tensor from the database. |
|
Unpack a 32-bit integer 1d tensor from the database. |
|
Unpack a 32-bit integer 2d tensor from the database. |
|
Unpack a 32-bit integer 3d tensor from the database. |
|
Unpack a 32-bit integer 4d tensor from the database. |
|
Move a tensor to a new name. |
|
Delete a tensor. |
|
Copy a tensor to the destination name. |
|
Retrieve the model from the database. |
|
Load the machine learning model from a file and set the configuration. |
|
Load the machine learning model from a file and set the configuration for use in multi-GPU systems. |
|
Establish a model to run. |
|
Set a model from a byte string to run on a system with multiple GPUs. |
|
Run a model in the database using the specified input and output tensors. |
|
Run a model in the database using the specified input and output tensors in a multi-GPU system. |
|
Remove a model from the database. |
|
Remove a model from the database. |
|
Retrieve the script from the database. |
|
Set a script (from file) in the database for future execution. |
|
Set a script (from file) in the database for future execution in a multi-GPU system. |
|
Set a script (from buffer) in the database for future execution. |
|
Set a script (from buffer) in the database for future execution in a multi-GPU system. |
|
Remove a script from the database. |
|
Remove a script_multigpu from the database. |
|
Store a dataset in the database. |
|
Retrieve a dataset from the database. |
|
Rename a dataset stored in the database. |
|
Copy a dataset within the database to a new name. |
|
Delete a dataset stored within a database. |
|
Appends a dataset to the aggregation list When appending a dataset to an aggregation list, the list will automatically be created if it does not exist (i.e. |
|
Delete an aggregation list. |
|
Copy an aggregation list. |
|
Rename an aggregation list. |
Detailed Description
<undocumented>
Type Documentation
- type database_client_interface/dbclient_type
Stores all data and methods associated with the communication client that is used to communicate with the database.
- Type fields:
% put_tensor ::
genericPuts a tensor into the database for a variety of datatypes.% unpack_tensor ::
genericRetrieve the tensor in the database into already allocated memory for a variety of datatypesm.% sr_error_parser ::
procedureDecode a response code from an API function.% initialize ::
procedureInitializes a new instance of the communication client.% isinitialized ::
procedureCheck if a communication client has been initialized.% destructor ::
procedureDestructs a new instance of the communication client.% rename_tensor ::
procedureRename a tensor within the database.% delete_tensor ::
procedureDelete a tensor from the database.% copy_tensor ::
procedureCopy a tensor within the database to a new name.% set_model_from_file ::
procedureSet a model from a file.% set_model_from_file_multigpu ::
procedureSet a model from a file on a system with multiple GPUs.% set_model ::
procedureSet a model from a byte string that has been loaded within the application.% set_model_multigpu ::
procedureSet a model from a byte string that has been loaded within the application on a system with multiple GPUs.% get_model ::
procedureRetrieve the model as a byte string.% set_script_from_file ::
procedureSet a script from a specified file.% set_script_from_file_multigpu ::
procedureSet a script from a specified file on a system with multiple GPUS.% set_script ::
procedureSet a script as a byte or text string.% set_script_multigpu ::
procedureSet a script as a byte or text string on a system with multiple GPUs.% get_script ::
procedureRetrieve the script from the database.% run_script ::
procedureRun a script that has already been stored in the database.% run_script_multigpu ::
procedureRun a script that has already been stored in the database with multiple GPUs.% run_model ::
procedureRun a model that has already been stored in the database.% run_model_multigpu ::
procedureRun a model that has already been stored in the database with multiple GPUs.% delete_script ::
procedureRemove a script from the database.% delete_script_multigpu ::
procedureRemove a script from the database with multiple GPUs.% delete_model ::
procedureRemove a model from the database.% delete_model_multigpu ::
procedureRemove a model from the database with multiple GPUs.% put_dataset ::
procedurePut a communication dataset into the database.% get_dataset ::
procedureRetrieve a communication dataset from the database.% rename_dataset ::
procedureRename the dataset within the database.% copy_dataset ::
procedureCopy a dataset stored in the database into another name.% delete_dataset ::
procedureDelete the dataset from the database.% put_tensor_float_1d ::
procedure, private, privatePut a 1d, 32-bit real tensor into database.% put_tensor_float_2d ::
procedure, private, privatePut a 2d, 32-bit real tensor into database.% put_tensor_float_3d ::
procedure, private, privatePut a 3d, 32-bit real tensor into database.% put_tensor_float_4d ::
procedure, private, privatePut a 4d, 32-bit real tensor into database.% put_tensor_double_1d ::
procedure, private, privatePut a 1d, 64-bit real tensor into database.% put_tensor_double_2d ::
procedure, private, privatePut a 2d, 64-bit real tensor into database.% put_tensor_double_3d ::
procedure, private, privatePut a 3d, 64-bit real tensor into database.% put_tensor_double_4d ::
procedure, private, privatePut a 4d, 64-bit real tensor into database.% put_tensor_int32_1d ::
procedure, private, privatePut a 1d, 32-bit integer tensor into database.% put_tensor_int32_2d ::
procedure, private, privatePut a 2d, 32-bit integer tensor into database.% put_tensor_int32_3d ::
procedure, private, privatePut a 3d, 32-bit integer tensor into database.% put_tensor_int32_4d ::
procedure, private, privatePut a 4d, 32-bit integer tensor into database.% unpack_tensor_float_1d ::
procedure, private, privateUnpack a 1d, 32-bit real tensor from the database.% unpack_tensor_float_2d ::
procedure, private, privateUnpack a 2d, 32-bit real tensor from the database.% unpack_tensor_float_3d ::
procedure, private, privateUnpack a 3d, 32-bit real tensor from the database.% unpack_tensor_float_4d ::
procedure, private, privateUnpack a 4d, 32-bit real tensor from the database.% unpack_tensor_double_1d ::
procedure, private, privateUnpack a 1d, 64-bit real tensor from the database.% unpack_tensor_double_2d ::
procedure, private, privateUnpack a 2d, 64-bit real tensor from the database.% unpack_tensor_double_3d ::
procedure, private, privateUnpack a 3d, 64-bit real tensor from the database.% unpack_tensor_double_4d ::
procedure, private, privateUnpack a 4d, 64-bit real tensor from the database.% unpack_tensor_int32_1d ::
procedure, private, privateUnpack a 1d, 32-bit integer tensor from the database.% unpack_tensor_int32_2d ::
procedure, private, privateUnpack a 2d, 32-bit integer tensor from the database.% unpack_tensor_int32_3d ::
procedure, private, privateUnpack a 3d, 32-bit integer tensor from the database.% unpack_tensor_int32_4d ::
procedure, private, privateUnpack a 4d, 32-bit integer tensor from the database.
Function/Subroutine Documentation
- function database_client_interface/sr_error_parser(self, response_code)
Decode a response code from an API function.
- Parameters:
self ::
self[in] Receives the initialized clientresponse_code ::
response_code[in] The response code to decode
- Return:
undefined :: Indicates whether this is an error response
- function database_client_interface/initialize_client(self, cluster)
Initializes a new instance of a communication client.
- Parameters:
self ::
self[inout] Receives the initialized clientcluster ::
cluster[in] If true, client uses a database cluster (Default: .false.)
- function database_client_interface/isinitialized(this)
Check whether the client has been initialized.
- function database_client_interface/destructor(self)
A destructor for the communication client.
- function database_client_interface/put_tensor_float_1d(self, name, data, dims)
Put a 32-bit real 1d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_float_2d(self, name, data, dims)
Put a 32-bit real 2d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_float_3d(self, name, data, dims)
Put a 32-bit real 3d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_float_4d(self, name, data, dims)
Put a 32-bit real 4d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_double_1d(self, name, data, dims)
Put a 64-bit real 1d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_double_2d(self, name, data, dims)
Put a 64-bit real 2d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_double_3d(self, name, data, dims)
Put a 64-bit real 3d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_double_4d(self, name, data, dims)
Put a 64-bit real 4d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_int32_1d(self, name, data, dims)
Put a 32-bit integer 1d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_int32_2d(self, name, data, dims)
Put a 32-bit integer 2d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_int32_3d(self, name, data, dims)
Put a 32-bit integer 3d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/put_tensor_int32_4d(self, name, data, dims)
Put a 32-bit integer 4d tensor into the database.
- Parameters:
data ::
data[in] Data to be sentself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::put_tensor
- function database_client_interface/unpack_tensor_float_1d(self, name, data, dims)
Unpack a 32-bit real 1d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_float_2d(self, name, data, dims)
Unpack a 32-bit real 2d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_float_3d(self, name, data, dims)
Unpack a 32-bit real 3d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_float_4d(self, name, data, dims)
Unpack a 32-bit real 4d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_double_1d(self, name, data, dims)
Unpack a 64-bit real 1d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_double_2d(self, name, data, dims)
Unpack a 64-bit real 2d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_double_3d(self, name, data, dims)
Unpack a 64-bit real 3d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_double_4d(self, name, data, dims)
Unpack a 64-bit real 4d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_int32_1d(self, name, data, dims)
Unpack a 32-bit integer 1d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_int32_2d(self, name, data, dims)
Unpack a 32-bit integer 2d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_int32_3d(self, name, data, dims)
Unpack a 32-bit integer 3d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/unpack_tensor_int32_4d(self, name, data, dims)
Unpack a 32-bit integer 4d tensor from the database.
- Parameters:
data ::
data[out] Data to be receivedself ::
self[in] Fortran communication clientname ::
name[in] The unique name used to store in the databasedims ::
dims[in] The length of each dimension
- Called from:
database_client_interface::dbclient_type::unpack_tensor
- function database_client_interface/rename_tensor(self, old_name, new_name)
Move a tensor to a new name.
- Parameters:
self ::
self[in] The initialized Fortran communication clientold_name ::
old_name[in] The current name for the tensor excluding null terminating characternew_name ::
new_name[in] The new tensor name
- function database_client_interface/delete_tensor(self, name)
Delete a tensor.
- Parameters:
self ::
self[in] The initialized Fortran communication clientname ::
name[in] The name associated with the tensor
- function database_client_interface/copy_tensor(self, src_name, dest_name)
Copy a tensor to the destination name.
- Parameters:
self ::
self[in] The initialized Fortran communication clientsrc_name ::
src_name[in] The name associated with the tensor excluding null terminating characterdest_name ::
dest_name[in] The new tensor name
- function database_client_interface/get_model(self, name, model)
Retrieve the model from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name associated with the modelmodel ::
model[out] The model as a continuous buffer
- function database_client_interface/set_model_from_file(self, name, model_file, backend, device, batch_size, min_batch_size, tag, inputs, outputs)
Load the machine learning model from a file and set the configuration.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelmodel_file ::
model_file[in] The file storing the modelbackend ::
backend[in] The name of the backend (TF, TFLITE, TORCH, ONNX)device ::
device[in] The name of the device (CPU, GPU, GPU:0, GPU:1…)batch_size ::
batch_size[in] The batch size for model executionmin_batch_size ::
min_batch_size[in] The minimum batch size for model executiontag ::
tag[in] A tag to attach to the model for information purposesinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)
- function database_client_interface/set_model_from_file_multigpu(self, name, model_file, backend, first_gpu, num_gpus, batch_size, min_batch_size, tag, inputs, outputs)
Load the machine learning model from a file and set the configuration for use in multi-GPU systems.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelmodel_file ::
model_file[in] The file storing the modelbackend ::
backend[in] The name of the backend (TF, TFLITE, TORCH, ONNX)first_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the modelbatch_size ::
batch_size[in] The batch size for model executionmin_batch_size ::
min_batch_size[in] The minimum batch size for model executiontag ::
tag[in] A tag to attach to the model for information purposesinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)
- function database_client_interface/set_model(self, name, model, backend, device, batch_size, min_batch_size, tag, inputs, outputs)
Establish a model to run.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelmodel ::
model[in] The binary representation of the modelbackend ::
backend[in] The name of the backend (TF, TFLITE, TORCH, ONNX)device ::
device[in] The name of the device (CPU, GPU, GPU:0, GPU:1…)batch_size ::
batch_size[in] The batch size for model executionmin_batch_size ::
min_batch_size[in] The minimum batch size for model executiontag ::
tag[in] A tag to attach to the model for information purposesinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)
- function database_client_interface/set_model_multigpu(self, name, model, backend, first_gpu, num_gpus, batch_size, min_batch_size, tag, inputs, outputs)
Set a model from a byte string to run on a system with multiple GPUs.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelmodel ::
model[in] The binary representation of the modelbackend ::
backend[in] The name of the backend (TF, TFLITE, TORCH, ONNX)first_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the modelbatch_size ::
batch_size[in] The batch size for model executionmin_batch_size ::
min_batch_size[in] The minimum batch size for model executiontag ::
tag[in] A tag to attach to the model for information purposesinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)
- function database_client_interface/run_model(self, name, inputs, outputs)
Run a model in the database using the specified input and output tensors.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)
- function database_client_interface/run_model_multigpu(self, name, inputs, outputs, offset, first_gpu, num_gpus)
Run a model in the database using the specified input and output tensors in a multi-GPU system.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the modelinputs ::
inputs[in] One or more names of model input nodes (TF models)outputs ::
outputs[in] One or more names of model output nodes (TF models)offset ::
offset[in] Index of the current image, such as a processor ID or MPI rankfirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/delete_model(self, name)
Remove a model from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to remove the model
- function database_client_interface/delete_model_multigpu(self, name, first_gpu, num_gpus)
Remove a model from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to remove the modelfirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/get_script(self, name, script)
Retrieve the script from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptscript ::
script[out] The script as a continuous buffer
- function database_client_interface/set_script_from_file(self, name, device, script_file)
Set a script (from file) in the database for future execution.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptdevice ::
device[in] The name of the device (CPU, GPU, GPU:0, GPU:1…)script_file ::
script_file[in] The file storing the script
- function database_client_interface/set_script_from_file_multigpu(self, name, script_file, first_gpu, num_gpus)
Set a script (from file) in the database for future execution in a multi-GPU system.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptscript_file ::
script_file[in] The file storing the scriptfirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/set_script(self, name, device, script)
Set a script (from buffer) in the database for future execution.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptdevice ::
device[in] The name of the device (CPU, GPU, GPU:0, GPU:1…)script ::
script[in] The file storing the script
- function database_client_interface/set_script_multigpu(self, name, script, first_gpu, num_gpus)
Set a script (from buffer) in the database for future execution in a multi-GPU system.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptscript ::
script[in] The file storing the scriptfirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/run_script(self, name, func, inputs, outputs)
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptfunc ::
func[in] The name of the function in the script to callinputs ::
inputs[in] One or more names of script input nodes (TF scripts)outputs ::
outputs[in] One or more names of script output nodes (TF scripts)
- function database_client_interface/run_script_multigpu(self, name, func, inputs, outputs, offset, first_gpu, num_gpus)
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to place the scriptfunc ::
func[in] The name of the function in the script to callinputs ::
inputs[in] One or more names of script input nodes (TF scripts)outputs ::
outputs[in] One or more names of script output nodes (TF scripts)offset ::
offset[in] Index of the current image, such as a processor ID or MPI rankfirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/delete_script(self, name)
Remove a script from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to delete the script
- function database_client_interface/delete_script_multigpu(self, name, first_gpu, num_gpus)
Remove a script_multigpu from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] The name to use to delete the script_multigpufirst_gpu ::
first_gpu[in] The first GPU (zero-based) to use with the modelnum_gpus ::
num_gpus[in] The number of GPUs to use with the model
- function database_client_interface/put_dataset(self, dataset)
Store a dataset in the database.
- Parameters:
self ::
self[in] An initialized communication clientdataset ::
dataset[in] Dataset to store in the dataset
- function database_client_interface/get_dataset(self, name, dataset)
Retrieve a dataset from the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] Name of the dataset to getdataset ::
dataset[out] receives the dataset
- function database_client_interface/rename_dataset(self, name, new_name)
Rename a dataset stored in the database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] Original name of the datasetnew_name ::
new_name[in] New name of the dataset
- function database_client_interface/copy_dataset(self, name, new_name)
Copy a dataset within the database to a new name.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] Source name of the datasetnew_name ::
new_name[in] Name of the new dataset
- function database_client_interface/delete_dataset(self, name)
Delete a dataset stored within a database.
- Parameters:
self ::
self[in] An initialized communication clientname ::
name[in] Name of the dataset to delete
- function database_client_interface/append_to_list(self, list_name, dataset)
Appends a dataset to the aggregation list When appending a dataset to an aggregation list, the list will automatically be created if it does not exist (i.e. this is the first entry in the list). Aggregation lists work by referencing the dataset by storing its key, so appending a dataset to an aggregation list does not create a copy of the dataset. Also, for this reason, the dataset must have been previously placed into the database with a separate call to
put_dataset(). .- Parameters:
self ::
self[in] An initialized communication clientlist_name ::
list_name[in] Name of the dataset to getdataset ::
dataset[in] Dataset to append to the list
- function database_client_interface/delete_list(self, list_name)
Delete an aggregation list.
- Parameters:
self ::
self[in] An initialized communication clientlist_name ::
list_name[in] Name of the aggregated dataset list to delete
- function database_client_interface/copy_list(self, src_name, dest_name)
Copy an aggregation list.
- Parameters:
self ::
self[in] An initialized communication clientsrc_name ::
src_name[in] Name of the dataset to copydest_name ::
dest_name[in] The new list name
- function database_client_interface/rename_list(self, src_name, dest_name)
Rename an aggregation list.
- Parameters:
self ::
self[in] An initialized communication clientsrc_name ::
src_name[in] Name of the dataset to renamedest_name ::
dest_name[in] The new list name