Extracts the saved ONNX blob from a remote saved ONNX store. This action allows you to retrieve binary ONNX model data that has been previously saved into a CAS table, facilitating model portability and external deployment.
| Parameter | Description |
|---|---|
| rstore | Specifies the binary table that contains the analytic store to be extracted. This parameter is required. |
| caslib | Specifies the caslib for the input table. If omitted, the active caslib is used. |
| name | Specifies the name of the input table containing the analytic store. |
| whereTable | Specifies an input table that contains rows to use as a WHERE filter. This allows for selective extraction based on keys or specific criteria defined in the filter table. |
| vars | Specifies the variable names to use from the filter table (within whereTable) to identify matching rows. |
| where | Specifies an expression for subsetting the data from the filter table (within whereTable). |
Load a sample ONNX analytic store table into CAS for demonstration purposes.
| 1 | |
| 2 | PROC CAS; |
| 3 | astore.upload / rstore={name="onnx_store", caslib="casuser"} path="/path/to/model.onnx"; |
| 4 | |
| 5 | RUN; |
| 6 |
Extracts the content of an ONNX store table named 'onnx_store'.
| 1 | |
| 2 | PROC CAS; |
| 3 | astore.extract / rstore={name="onnx_store", caslib="casuser"}; |
| 4 | |
| 5 | RUN; |
| 6 |
Extracts specific ONNX data using a secondary table 'filter_keys' to filter the rows in the store.
| 1 | |
| 2 | PROC CAS; |
| 3 | astore.extract / rstore={name="multi_model_store", caslib="public", whereTable={name="filter_keys", caslib="casuser", where="model_id=1"}}; |
| 4 | |
| 5 | RUN; |
| 6 |