Skip to content

Commit e90c780

Browse files
committed
change unique_ptr to shared_ptr
1 parent a11ef3f commit e90c780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/distributed/table/common_graph_table.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ int32_t GraphTable::random_sample_neighboors(
493493
uint64_t id;
494494
float weight;
495495
char *buffer_addr = new char[actual_size];
496-
buffer.reset(buffer_addr);
496+
buffer.reset(buffer_addr, char_del);
497497
for (int &x : res) {
498498
id = node->get_neighbor_id(x);
499499
weight = node->get_neighbor_weight(x);

0 commit comments

Comments
 (0)