alianse777 / darknet-rust

A Rust wrapper for Darknet, an open source neural network framework written in C and CUDA.
http://pjreddie.com/darknet/
MIT License
33 stars 8 forks source link

Updated darknet, added documentation and updated edition #16

Closed MarcusDunn closed 1 year ago

MarcusDunn commented 2 years ago

There are a fair few changes here, but they are all mostly surface level.

Here are the highlights:

Also to note is that there is some code that can lead to UB in safe code. get_data_mut returns a mutable reference from a shared reference. Clippy caught this and the reasoning for this being unsafe can be found here. The fix for this is to have get_data_mut take a mutable reference to self. This however is a breaking API change so I figured it does not fit in the scope of this PR.