Hi, using AF master, afcuda backend via af unified :
af::array left(0,0);
af::array right(2,1,2);
std::vector<float> d = { 1,1,2,2 };
right.write<float>(&d[0], sizeof(float) * 2 * 2);
left = right;
af_print(left);
d = { 10,10,20,20 };
right.write<float>(&d[0], sizeof(float) * 2 * 2);
af_print(left);
output:
left
[2 1 2 1]
1.0000
1.0000
2.0000
2.0000
left
[2 1 2 1]
10.0000
10.0000
20.0000
20.0000
I would expect left to keep the original values.
Is it the expected behavior ?
Hi, using AF master, afcuda backend via af unified :
output:
left
[2 1 2 1]
1.0000
1.0000
2.0000
2.0000
left
[2 1 2 1]
10.0000
10.0000
20.0000
20.0000
I would expect left to keep the original values.
Is it the expected behavior ?