Skip to content

Commit

Permalink
Try takeOwnership
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 11, 2024
1 parent 01bb89a commit 016256e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/torch/torch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ void init_torch(Rice::Module& m) {
} else {
throw std::runtime_error("Unsupported type");
}
});
}, Rice::Return().takeOwnership());
}

0 comments on commit 016256e

Please sign in to comment.