|
| std::string | toString (const DLDataType &t) |
| |
| DLContext | getCPUDLContext () |
| |
| DLContext | getGPUDLContext (int device_id) |
| |
| template<typename T > |
| DLDataType | getDLDataType () |
| |
| template<> |
| DLDataType | getDLDataType< float > () |
| |
| template<> |
| DLDataType | getDLDataType< int > () |
| |
| void | SetSizes (DLTensor &t, const std::vector< int64_t > &sizes) |
| |
| void | SetStrides (DLTensor &t, const std::vector< int64_t > &strides) |
| |
| void | SetStridesFromSizes (DLTensor &t, const std::vector< int64_t > &) |
| |
| DLTensorUPtr | makeDLTensorWithSizes (DLContext ctx, DLDataType dtype, const std::vector< int64_t > &sizes) |
| |
| std::vector< const DLTensor * > | extractRawPtrs (const std::vector< DLTensorUPtr > &uptrs) |
| |
| std::vector< const DLTensor * > | constPtrs (const std::vector< DLTensor * > &ptrs) |
| |
| DLTensorUPtr | makeDLTensor (const DLTensor *ptr) |
| |
| template<typename T > |
| std::vector< DLTensorUPtr > | makeDLTensorVector (const std::vector< T * > &ptrs) |
| |
| std::string | toString (const DLTensor &t) |
| |
| bool | operator== (const DLDataType &t1, const DLDataType &t2) |
| |
| std::ostream & | operator<< (std::ostream &os, const DLDataType &t) |
| |
| bool | compareDLTensorMetadata (const DLTensor &t1, const DLTensor &t2) |
| |
| template<typename T , typename TT > |
| bool | compareDLTensorVectorMetadata (const std::vector< T * > &v1, const std::vector< TT * > &v2) |
| |
| std::ostream & | operator<< (std::ostream &os, const DLTensor &t) |
| |