Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -131,9 +131,9 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
| 131 |
provided job URL to view a variety of on-device performance metrics.
|
| 132 |
```python
|
| 133 |
profile_job = hub.submit_profile_job(
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
|
| 138 |
```
|
| 139 |
|
|
@@ -144,10 +144,10 @@ on sample input data on the same cloud hosted device.
|
|
| 144 |
```python
|
| 145 |
input_data = torch_model.sample_inputs()
|
| 146 |
inference_job = hub.submit_inference_job(
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
on_device_output = inference_job.download_output_data()
|
| 152 |
|
| 153 |
```
|
|
|
|
| 131 |
provided job URL to view a variety of on-device performance metrics.
|
| 132 |
```python
|
| 133 |
profile_job = hub.submit_profile_job(
|
| 134 |
+
model=target_model,
|
| 135 |
+
device=device,
|
| 136 |
+
)
|
| 137 |
|
| 138 |
```
|
| 139 |
|
|
|
|
| 144 |
```python
|
| 145 |
input_data = torch_model.sample_inputs()
|
| 146 |
inference_job = hub.submit_inference_job(
|
| 147 |
+
model=target_model,
|
| 148 |
+
device=device,
|
| 149 |
+
inputs=input_data,
|
| 150 |
+
)
|
| 151 |
on_device_output = inference_job.download_output_data()
|
| 152 |
|
| 153 |
```
|