Skip to content

Commit

Permalink
Fix comment for Buffer::copy() (Fixes #8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Dec 9, 2024
1 parent c70496d commit 8c7e3b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/runtime/HalideBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -1328,9 +1328,12 @@ class Buffer {

/** Make a new image which is a deep copy of this image. Use crop
* or slice followed by copy to make a copy of only a portion of
* the image. The new image uses the same memory layout as the
* original, with holes compacted away. Note that the returned
* Buffer is always of a non-const type T (ie:
* the image. The new image has the same nesting order of dimensions
* (e.g. channels innermost), but resets the strides to the default
* (each stride is the product of the extents of the inner dimensions).
* Note that this means any strides of zero get broadcast into a non-zero stride.
*
* Note that the returned Buffer is always of a non-const type T (ie:
*
* Buffer<const T>.copy() -> Buffer<T> rather than Buffer<const T>
*
Expand Down

0 comments on commit 8c7e3b4

Please sign in to comment.