Skip to content

Commit

Permalink
Add docs to helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Apr 16, 2024
1 parent 75dd7af commit 9f4a216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Helper method to get a string representation of an mlx object.
pub(crate) fn mlx_describe(ptr: *mut ::std::os::raw::c_void) -> Option<String> {
let mlx_description = unsafe { mlx_sys::mlx_tostring(ptr) };
let c_str = unsafe { mlx_sys::mlx_string_data(mlx_description) };
Expand Down

0 comments on commit 9f4a216

Please sign in to comment.