24 const std::vector<Tensor>& index_tensors,
31 IndexGet(src, dst_same_device, index_tensors, indexed_shape,
38 IndexGetCPU(src, dst, index_tensors, indexed_shape, indexed_strides);
40 #ifdef BUILD_SYCL_MODULE
41 IndexGetSYCL(src, dst, index_tensors, indexed_shape, indexed_strides);
44 #ifdef BUILD_CUDA_MODULE
45 IndexGetCUDA(src, dst, index_tensors, indexed_shape, indexed_strides);
54 const std::vector<Tensor>& index_tensors,
62 IndexSetCPU(src_same_device, dst, index_tensors, indexed_shape,
65 #ifdef BUILD_SYCL_MODULE
66 IndexSetSYCL(src_same_device, dst, index_tensors, indexed_shape,
70 #ifdef BUILD_CUDA_MODULE
71 IndexSetCUDA(src_same_device, dst, index_tensors, indexed_shape,
void CopyFrom(const Tensor &other)
Copy Tensor values to current tensor from the source tensor.
Device GetDevice() const override
SizeVector GetShape() const
Tensor To(Dtype dtype, bool copy=false) const
void IndexGetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
void IndexSet(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
void IndexSetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
void IndexGetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
void IndexSetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
void IndexGet(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Generic file read and write utility for python interface.