Added test optensorsync for device and local

This commit is contained in:
Alejandro Saucedo 2020-09-06 16:15:55 +01:00
parent e68d09dbdc
commit eddba0fcf9
5 changed files with 60 additions and 3 deletions

View file

@ -16,7 +16,7 @@ Tensor::Tensor()
this->mTensorType = TensorTypes::eDevice;
}
Tensor::Tensor(std::vector<float> data, TensorTypes tensorType)
Tensor::Tensor(const std::vector<float>& data, TensorTypes tensorType)
{
#if DEBUG
SPDLOG_DEBUG(