Added Buffers to toTensor(), to avoid copies/allocs.