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