Fix overflow error for large buffers. (#2303)
Summary:
Allow writes of >= 2^32 bytes. High-res video can cross this threshold sometimes.
LHS is `size_t`, but RHS is all `int32`, and will overflow for output tensors >2Gb.
Reviewed By: jsawruk
Differential Revision: D21255664
fbshipit-source-id: 7b4c5da989777297a89e73615aaeee8c7a13186a
Co-authored-by:
Tilak Sharma <tilaksharma@fb.com>
Showing
Please register or sign in to comment