Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
strongoier committed Aug 10, 2022
1 parent 9246973 commit d36f05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lang/articles/advanced/quant.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ can reinterpret a primitive type into an array of a quantized type:
bin_value_type = ti.types.quant.int(bits=4, signed=False)

# The quant array for 512 x 512 bin values
array = ti.root.dense(ti.ij, (512, 64)).quant_array(ti.i, 8, max_num_bits=32)
array = ti.root.dense(ti.ij, (512, 64)).quant_array(ti.j, 8, max_num_bits=32)
# Place the unsigned 4-bit bin value into the array
array.place(bin_value_type)
```
Expand Down

0 comments on commit d36f05f

Please sign in to comment.