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