Skip to content

Commit

Permalink
Add more explanation to tensor5_from_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Sep 11, 2019
1 parent c17d15d commit c47e5ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fdeep/tensor5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,8 @@ inline std::string show_tensor5s(const tensor5s& ts)
// Converts a memory block holding 8-bit values into a tensor5.
// Data must be stored row-wise (and channels_last).
// Scales the values from range [0, 255] into [low, high].
// Example:
// With low = 0.0 and high = 1.0 every value is essentially divided by 255.
// May be used to convert an image (bgr, rgba, gray, etc.) to a tensor5.
inline tensor5 tensor5_from_bytes(const std::uint8_t* value_ptr,
std::size_t height, std::size_t width, std::size_t channels,
Expand Down

0 comments on commit c47e5ab

Please sign in to comment.