dmlc / HalideIR

Symbolic Expression and Statement Module for new DSLs
Other
205 stars 59 forks source link

Add tvm::Array::at #22

Closed jroesch closed 5 years ago

jroesch commented 6 years ago

Add an indexing operator which does bounds checking.

PENGUINLIONG commented 5 years ago

For practical use I think overloading the operator[] is perfectly enough.

But if we have to do this... how about make tvm::Array<T> a standard container?