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 2222#include < ATen/DLConvertor.h>
2323namespace tc {
2424namespace {
25- std::pair<std::vector<DLTensor*>, std::vector<DLManagedTensor*>>
25+ inline std::pair<std::vector<DLTensor*>, std::vector<DLManagedTensor*>>
2626toDlpackTensors (const std::vector<at::Tensor>& tensors) {
2727 std::vector<DLTensor*> dlTensors;
2828 std::vector<DLManagedTensor*> dlMTensors;
@@ -34,7 +34,7 @@ toDlpackTensors(const std::vector<at::Tensor>& tensors) {
3434 return make_pair (dlTensors, dlMTensors);
3535}
3636
37- std::pair<std::vector<const DLTensor*>, std::vector<DLManagedTensor*>>
37+ inline std::pair<std::vector<const DLTensor*>, std::vector<DLManagedTensor*>>
3838toConstDlpackTensors (const std::vector<at::Tensor>& tensors) {
3939 std::vector<const DLTensor*> dlTensors;
4040 std::vector<DLManagedTensor*> dlMTensors;
@@ -46,7 +46,7 @@ toConstDlpackTensors(const std::vector<at::Tensor>& tensors) {
4646 return make_pair (dlTensors, dlMTensors);
4747}
4848
49- void deleteDlmTensors (std::vector<DLManagedTensor*>& tensors) {
49+ inline void deleteDlmTensors (std::vector<DLManagedTensor*>& tensors) {
5050 for (auto & tensor : tensors) {
5151 tensor->deleter (tensor);
5252 }
You can’t perform that action at this time.
0 commit comments