This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
MegEngine
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
31
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix(dtype): dtype scalar set_retain_dtype supports bool
GitOrigin-RevId:
aafd378e1b
release-1.10
Megvii Engine Team
3 years ago
parent
53d48ca399
commit
99df4a7996
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/core/impl/dtype.cpp
+ 1
- 0
src/core/impl/dtype.cpp
View File
@@ -209,6 +209,7 @@ typename ctype_enable_if<ctype>::type DTypeScalar::set_retain_dtype(ctype val) {
}
MEGDNN_FOREACH_COMPUTING_DTYPE(cb)
MEGDNN_FOREACH_QUANTIZED_DTYPE(cb)
cb(dt_bool);
#undef cb
default:
mgb_throw(ConversionError, "can not assign to dtype %s", m_dtype.name());
Write
Preview
Loading…
Cancel
Save