RuntimeError: Unexpected optimization level 01. Option are '00' '01' '02' '03'
See original GitHub issueWhen I made the following changes to the original code and reported this error, I don’t know where the problem occurred. Can you give me some advice? Thank you.
model, optimizer = amp.initialize(model, optimizer, opt_level="O1") with amp.scale_loss(loss, optimizer) as scaled_loss: scaled_loss.backward()
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
apex.amp — Apex 0.1.0 documentation - GitHub Pages
apex.amp¶. This page documents the updated API for Amp (Automatic Mixed Precision), a tool to enable Tensor Core-accelerated training in only 3 lines...
Read more >[Tutorial] GCC Optimization Pragmas
From the official source on GCC pragmas, this pragma allows you to set global optimization flags (specified by option ) for functions that...
Read more >XL C/C++: Compiler Reference for Little Endian Distributions
This document is for experienced C or C++ developers who have some familiarity with the XL C/C++ compilers or other command-line compilers on...
Read more >SPEC CPU®2017 Frequently Asked Questions
runcpu.03 Why am I getting errors about libnsl.so.1 ? ... Setting up. Setup.01 ... Miscompare.02 The benchmark took less than 1 second.
Read more >Aruba Instant 6.4.3.x-4.2 Syslog Messages Reference Guide
Figure 1 Configuring Syslog Server Settings. You can also configure Syslog server details and logging levels by using the command-line Interface (CLI).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @wangyingyu, could you check if you are trying to pass the
opt_level
as two integers (i.e. “zero one”"01"
) instead of the expected uppercase O letter and 1 ("O1"
)?(Glad to find I am not the only one) the names couldn’t get any better than
O1
,O2
,O3
😆! Oh, by the way, that’s not zero😲, it’s theO
as in 🍊🤦🏻♂️Suggestion (before moving to pytorch core):
o
at least that would make it obvious when written likeo1, o2, o3
🙏🏼