Searched refs:new_tensor (Results 1 – 1 of 1) sorted by relevance
238 Tensor<int, 1> new_tensor(5); in test_auto_resize() local239 new_tensor.setRandom(); in test_auto_resize()241 tensor1 = tensor2 = tensor3 = tensor4 = new_tensor; in test_auto_resize()243 VERIFY_IS_EQUAL(tensor1.dimension(0), new_tensor.dimension(0)); in test_auto_resize()244 VERIFY_IS_EQUAL(tensor2.dimension(0), new_tensor.dimension(0)); in test_auto_resize()245 VERIFY_IS_EQUAL(tensor3.dimension(0), new_tensor.dimension(0)); in test_auto_resize()246 VERIFY_IS_EQUAL(tensor4.dimension(0), new_tensor.dimension(0)); in test_auto_resize()247 for (int i = 0; i < new_tensor.dimension(0); ++i) { in test_auto_resize()248 VERIFY_IS_EQUAL(tensor1(i), new_tensor(i)); in test_auto_resize()249 VERIFY_IS_EQUAL(tensor2(i), new_tensor(i)); in test_auto_resize()[all …]