diff --git a/src/tensor.h b/src/tensor.h index 2cf4c267..4c6b89dd 100644 --- a/src/tensor.h +++ b/src/tensor.h @@ -155,7 +155,7 @@ class TensorImpl { void set(const std::vector &values) { size_t totSize = std::accumulate(shape().begin(), shape().end(), 1, std::multiplies()); - std::cerr << "totSize=" << totSize << " " << values.size() << std::endl; + std::cerr << "tensor size=" << totSize << " vector size=" << values.size() << std::endl; assert(totSize == values.size()); thrust::copy(values.begin(), values.end(), data_.begin()); } diff --git a/src/test.cu b/src/test.cu index d87c9d1a..dd65d256 100644 --- a/src/test.cu +++ b/src/test.cu @@ -31,6 +31,7 @@ int main(int argc, char** argv) { int numImg, imgSize; vector images = datasets::mnist::ReadImages("../examples/mnist/t10k-images-idx3-ubyte", numImg, imgSize); vector labels = datasets::mnist::ReadLabels("../examples/mnist/t10k-labels-idx1-ubyte"); + cerr << "images=" << images.size() << " labels=" << labels.size() << endl; tx.Load(images); //ty.Load(labels);