Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strongoier committed Jul 6, 2022
1 parent c34344a commit 14f768d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions taichi/codegen/llvm/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1737,8 +1737,7 @@ void CodeGenLLVM::create_offload_struct_for(OffloadedStmt *stmt, bool spmd) {
} else {
TI_ERROR(
"A bit-vectorized struct-for must loop over a quant array with a "
"dense "
"parent");
"dense parent");
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/ir/type_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ TEST(Type, BitTypes) {
EXPECT_EQ(bs->to_string(), "bs(qi5@0, qu11@5)");

auto qi1 = TypeFactory::get_instance().get_quant_int_type(1, true, i32);
auto ba = TypeFactory::get_instance().get_quant_array_type(i32, qi1, 32);
auto qa = TypeFactory::get_instance().get_quant_array_type(i32, qi1, 32);

EXPECT_EQ(ba->to_string(), "qa(qi1x32)");
EXPECT_EQ(qa->to_string(), "qa(qi1x32)");
}

} // namespace lang
Expand Down
4 changes: 2 additions & 2 deletions tests/python/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def _get_expected_matrix_apis():
user_api[ti.Texture] = ['device_allocation_ptr', 'from_field', 'from_ndarray']
user_api[ti.SNode] = [
'bit_struct', 'bitmasked', 'deactivate_all', 'dense', 'dynamic',
'lazy_dual', 'lazy_grad', 'parent', 'place', 'pointer', 'shape',
'quant_array'
'lazy_dual', 'lazy_grad', 'parent', 'place', 'pointer', 'quant_array',
'shape'
]
user_api[ti.ScalarField] = [
'copy_from', 'dtype', 'fill', 'from_numpy', 'from_paddle', 'from_torch',
Expand Down

0 comments on commit 14f768d

Please sign in to comment.