Tensor Comprehensions
|
Functions | |
template<typename C2Context > | |
DLContext | getDLContext () |
template<> | |
DLContext | getDLContext< CPUContext > () |
template<> | |
DLContext | getDLContext< CUDAContext > () |
DLDataType | getDLDataType (const TypeMeta &meta) |
template<typename C2Context > | |
tc::dlutils::DLTensorUPtr | makeConstDLTensor (const caffe2::Tensor< C2Context > &tensor, const vector< TIndex > &shapeOverride={}) |
template<typename C2Context > | |
tc::dlutils::DLTensorUPtr | makeDLTensor (caffe2::Tensor< C2Context > *tensor) |
DLContext caffe2::dlpack::getDLContext | ( | ) |
|
inline |
|
inline |
|
inline |
tc::dlutils::DLTensorUPtr caffe2::dlpack::makeConstDLTensor | ( | const caffe2::Tensor< C2Context > & | tensor, |
const vector< TIndex > & | shapeOverride = {} |
||
) |
tc::dlutils::DLTensorUPtr caffe2::dlpack::makeDLTensor | ( | caffe2::Tensor< C2Context > * | tensor | ) |