Struct torch::THAllocator
[−]
[src]
#[repr(C)]pub struct THAllocator { pub malloc: Option<unsafe extern "C" fn(_: *mut c_void, _: isize) -> *mut c_void>, pub realloc: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize) -> *mut c_void>, pub free: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>, }
Fields
malloc: Option<unsafe extern "C" fn(_: *mut c_void, _: isize) -> *mut c_void>
realloc: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize) -> *mut c_void>
free: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>