mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
misleading comment corrected (strides in buffer_info is bytes and not number of entries) (#1958)
This commit is contained in:
parent
de5a29c0d4
commit
6c29cbf88d
@ -21,7 +21,7 @@ struct buffer_info {
|
||||
std::string format; // For homogeneous buffers, this should be set to format_descriptor<T>::format()
|
||||
ssize_t ndim = 0; // Number of dimensions
|
||||
std::vector<ssize_t> shape; // Shape of the tensor (1 entry per dimension)
|
||||
std::vector<ssize_t> strides; // Number of entries between adjacent entries (for each per dimension)
|
||||
std::vector<ssize_t> strides; // Number of bytes between adjacent entries (for each per dimension)
|
||||
|
||||
buffer_info() { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user