Skip to content
Snippets Groups Projects

Adding INT64 Tensor support

Merged Cyril Moineau requested to merge dev into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -101,7 +101,7 @@ class TensorImpl_cpu : public TensorImpl {
@@ -101,7 +101,7 @@ class TensorImpl_cpu : public TensorImpl {
std::copy(static_cast<const uint16_t*>(src), static_cast<const uint16_t*>(src) + length,
std::copy(static_cast<const uint16_t*>(src), static_cast<const uint16_t*>(src) + length,
static_cast<T *>(rawPtr()));
static_cast<T *>(rawPtr()));
break;
break;
case ataType::Int8:
case DataType::Int8:
std::copy(static_cast<const int8_t*>(src), static_cast<const int8_t*>(src) + length,
std::copy(static_cast<const int8_t*>(src), static_cast<const int8_t*>(src) + length,
static_cast<T *>(rawPtr()));
static_cast<T *>(rawPtr()));
break;
break;
Loading