Commit 80e99d9b authored by fenglei's avatar fenglei

fix bug

parent 8902ec17
......@@ -215,7 +215,8 @@ NGRAPH_TEST(${BACKEND_NAME}, send_recv_ring)
copy_data(result, v);
}
f_send = make_shared<Function>(make_shared<op::Send>(A, rank + 1), ParameterVector{A});
f_send =
make_shared<Function>(make_shared<op::Send>(A, (rank + 1) % comm_size), ParameterVector{A});
auto handle = backend->compile(f_send);
handle->call_with_validate({result}, {result});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment