dtype is copy assignable (#1436)

This commit is contained in:
Awni Hannun
2024-09-25 12:07:13 -07:00
committed by GitHub
parent 195b429d99
commit afc9c0ec1b
7 changed files with 29 additions and 18 deletions

View File

@@ -370,7 +370,7 @@ void compile_simplify(
auto get_scalar_rep = [](const array& a) {
uint64_t v = 0;
int dtype;
switch (a.dtype().size) {
switch (a.dtype().size()) {
case 1:
v = *a.data<uint8_t>();
break;
@@ -384,7 +384,7 @@ void compile_simplify(
v = *a.data<uint64_t>();
break;
}
return std::make_pair(v, a.dtype().val);
return std::make_pair(v, a.dtype().val());
};
for (auto& a : tape) {