Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -142,9 +142,9 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
| 142 |
provided job URL to view a variety of on-device performance metrics.
|
| 143 |
```python
|
| 144 |
profile_job = hub.submit_profile_job(
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
|
| 149 |
```
|
| 150 |
|
|
@@ -155,10 +155,10 @@ on sample input data on the same cloud hosted device.
|
|
| 155 |
```python
|
| 156 |
input_data = torch_model.sample_inputs()
|
| 157 |
inference_job = hub.submit_inference_job(
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
on_device_output = inference_job.download_output_data()
|
| 163 |
|
| 164 |
```
|
|
|
|
| 142 |
provided job URL to view a variety of on-device performance metrics.
|
| 143 |
```python
|
| 144 |
profile_job = hub.submit_profile_job(
|
| 145 |
+
model=target_model,
|
| 146 |
+
device=device,
|
| 147 |
+
)
|
| 148 |
|
| 149 |
```
|
| 150 |
|
|
|
|
| 155 |
```python
|
| 156 |
input_data = torch_model.sample_inputs()
|
| 157 |
inference_job = hub.submit_inference_job(
|
| 158 |
+
model=target_model,
|
| 159 |
+
device=device,
|
| 160 |
+
inputs=input_data,
|
| 161 |
+
)
|
| 162 |
on_device_output = inference_job.download_output_data()
|
| 163 |
|
| 164 |
```
|