Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] the example does not define test_data variable #21822

Closed
R4ZZ3 opened this issue Aug 21, 2024 · 1 comment
Closed

[Documentation] the example does not define test_data variable #21822

R4ZZ3 opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
documentation improvements or additions to documentation; typically submitted using template

Comments

@R4ZZ3
Copy link

R4ZZ3 commented Aug 21, 2024

Describe the documentation issue

Please provide definition of test_data on this page
h

This part:
from onnxconverter_common import auto_mixed_precision
import onnx

model = onnx.load("path/to/model.onnx")
model_fp16 = auto_convert_mixed_precision(model, test_data, rtol=0.01, atol=0.001, keep_io_types=True)
onnx.save(model_fp16, "path/to/model_fp16.onnx")

Page / URL

https://onnxruntime.ai/docs/performance/model-optimizations/float16.html

@R4ZZ3 R4ZZ3 added the documentation improvements or additions to documentation; typically submitted using template label Aug 21, 2024
@MaanavD MaanavD self-assigned this Sep 16, 2024
shubhambhokare1 added a commit that referenced this issue Oct 1, 2024
…able names (#22250)

### Description
Correct variable name from `test_data` to `feed_dict` to fix example
code in mixed precision example docs.



### Motivation and Context
Fixes #21822
@MaanavD
Copy link
Contributor

MaanavD commented Oct 1, 2024

Closed with #22250

@MaanavD MaanavD closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation improvements or additions to documentation; typically submitted using template
Projects
None yet
Development

No branches or pull requests

3 participants