intel / openvino-rs

Rust bindings for OpenVINO™
Apache License 2.0
80 stars 23 forks source link

Replace `Tensor::buffer_mut` #127

Closed abrown closed 2 months ago

abrown commented 2 months ago

This refactors the data accessor functions in Tensor to be more consistent with conventions elsewhere (e.g., get_). It also checks a bit more robustly whether the underlying pointer can in fact be casted to the type we expect.