FIX: tensor memory must be gaven back to buddy allocator for free

revert-3824-remove_grad_op_type
liaogang 8 years ago
parent 8f80f5bc79
commit ac02fb82d7

@ -45,4 +45,8 @@ TEST(Gather, GatherData) {
for (int i = 0; i < 4; ++i) EXPECT_EQ(p_output[i], i + 4);
for (int i = 4; i < 8; ++i) EXPECT_EQ(p_output[i], i - 4);
delete src;
delete index;
delete output;
}

Loading…
Cancel
Save