Model
When you want to integrate a new model
you can do that by doing these three things:
- Build a struct which includes tuples of
MetaData
andHandle
. This structure is our abstract representation of the shared memory on the GPU. The macro#[operator]
above your struct will allocate aTensor
on the GPU and leave you aTensorHandelRef
to work with in theoperation