blob: 0902030f24b2ed85dce319451d7ff180115f7a0e [file] [log] [blame]
#pragma once
#include "ATen/Tensor.h"
#include "ATen/ATen.h"
#include "ATen/dlpack.h"
// this convertor will:
// 1) take a Tensor object and wrap it in the DLPack tensor
// 2) take a dlpack tensor and convert it to the ATen Tensor
namespace at {
ScalarType toScalarType(const DLDataType& dtype);
DLManagedTensor * toDLPack(const Tensor& src);
Tensor fromDLPack(const DLManagedTensor* src);
} //namespace at