This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
#include < ATen/DLConvertor.h>
23
23
namespace tc {
24
24
namespace {
25
- std::pair<std::vector<DLTensor*>, std::vector<DLManagedTensor*>>
25
+ inline std::pair<std::vector<DLTensor*>, std::vector<DLManagedTensor*>>
26
26
toDlpackTensors (const std::vector<at::Tensor>& tensors) {
27
27
std::vector<DLTensor*> dlTensors;
28
28
std::vector<DLManagedTensor*> dlMTensors;
@@ -34,7 +34,7 @@ toDlpackTensors(const std::vector<at::Tensor>& tensors) {
34
34
return make_pair (dlTensors, dlMTensors);
35
35
}
36
36
37
- std::pair<std::vector<const DLTensor*>, std::vector<DLManagedTensor*>>
37
+ inline std::pair<std::vector<const DLTensor*>, std::vector<DLManagedTensor*>>
38
38
toConstDlpackTensors (const std::vector<at::Tensor>& tensors) {
39
39
std::vector<const DLTensor*> dlTensors;
40
40
std::vector<DLManagedTensor*> dlMTensors;
@@ -46,7 +46,7 @@ toConstDlpackTensors(const std::vector<at::Tensor>& tensors) {
46
46
return make_pair (dlTensors, dlMTensors);
47
47
}
48
48
49
- void deleteDlmTensors (std::vector<DLManagedTensor*>& tensors) {
49
+ inline void deleteDlmTensors (std::vector<DLManagedTensor*>& tensors) {
50
50
for (auto & tensor : tensors) {
51
51
tensor->deleter (tensor);
52
52
}
You can’t perform that action at this time.
0 commit comments