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