/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/develop/rocAL/include/api/rocal_api.h Source File#
rocal_api.h
Go to the documentation of this file.
84 extern "C" RocalContext ROCAL_API_CALL rocalCreate(size_t batch_size, RocalProcessMode affinity, int gpu_id = 0, size_t cpu_thread_count = 1, size_t prefetch_queue_depth = 3, RocalTensorOutputType output_tensor_data_type = RocalTensorOutputType::ROCAL_FP32, bool enable_checkpointing = false);
120 extern "C" RocalStatus ROCAL_API_CALL rocalSerialize(RocalContext rocal_context, size_t* serialized_string_size);
140 extern "C" RocalStatus ROCAL_API_CALL rocalGetSerializedString(RocalContext rocal_context, char* serialized_string);
157 extern "C" RocalContext ROCAL_API_CALL rocalDeserialize(const char* serialized_pipeline, size_t serialized_string_size, RocalPipelineParams* pipe_params);
178 extern "C" RocalStatus ROCAL_API_CALL rocalCheckpoint(RocalContext rocal_context, size_t* serialized_ckpt_string_size);
200 extern "C" RocalStatus ROCAL_API_CALL rocalGetSerializedCheckpointString(RocalContext rocal_context, char* serialized_ckpt_string);
222 extern "C" RocalStatus ROCAL_API_CALL rocalRestoreFromSerializedCheckpoint(RocalContext rocal_context, const char* serialized_ckpt_string, size_t serialized_ckpt_size);
RocalTensorOutputType
rocAL Tensor Output Type enum
Definition: rocal_api_types.h:247
RocalStatus ROCAL_API_CALL rocalGetSerializedCheckpointString(RocalContext rocal_context, char *serialized_ckpt_string)
Copy the last serialized checkpoint blob into a user buffer.
RocalStatus ROCAL_API_CALL rocalCheckpoint(RocalContext rocal_context, size_t *serialized_ckpt_string_size)
Serialize the current pipeline state into an opaque checkpoint blob.
RocalStatus ROCAL_API_CALL rocalRelease(RocalContext rocal_context)
rocalRelease function to free all the resources allocated during the graph creation process.
RocalStatus ROCAL_API_CALL rocalRestoreFromSerializedCheckpoint(RocalContext rocal_context, const char *serialized_ckpt_string, size_t serialized_ckpt_size)
Restore pipeline state from a serialized checkpoint blob.
RocalContext ROCAL_API_CALL rocalDeserialize(const char *serialized_pipeline, size_t serialized_string_size, RocalPipelineParams *pipe_params)
Deserialize a pipeline from a serialized binary string.
RocalContext ROCAL_API_CALL rocalCreate(size_t batch_size, RocalProcessMode affinity, int gpu_id=0, size_t cpu_thread_count=1, size_t prefetch_queue_depth=3, RocalTensorOutputType output_tensor_data_type=RocalTensorOutputType::ROCAL_FP32, bool enable_checkpointing=false)
rocalCreate creates the context for a new augmentation pipeline. Initializes all the required interna...
RocalStatus ROCAL_API_CALL rocalSerialize(RocalContext rocal_context, size_t *serialized_string_size)
Serialize the current pipeline into an opaque binary string.
RocalStatus ROCAL_API_CALL rocalGetSerializedString(RocalContext rocal_context, char *serialized_string)
Copy the last serialized pipeline string into a user buffer.
RocalStatus ROCAL_API_CALL rocalRun(RocalContext context)
rocalRun function to process and run the built and verified graph.
RocalStatus ROCAL_API_CALL rocalVerify(RocalContext context)
rocalVerify function to verify the graph for all the inputs and outputs
The AMD rocAL Library - Augmentations.
The AMD rocAL Library - Data Loaders.
The AMD rocAL Library - Data Transfer.
The AMD rocAL Library - Info.
The AMD rocAL Library - Meta Data.
The AMD rocAL Library - Parameters.
The AMD rocAL Library - Tensor.
The AMD rocAL Library - Types.