mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-26 22:35:43 +00:00
Change Tensor::[Set]ByteOffset() to use ptrdiff_t.
This commit is contained in:
parent
80dd62a240
commit
3af5a2a2cf
1 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ class Tensor final {
|
|||
* Get the byte offset with respect to the p_data
|
||||
* @warning this is a temporary solution for reusing the buffer bigger than needed.
|
||||
*/
|
||||
inline int64_t ByteOffset() const {
|
||||
inline ptrdiff_t ByteOffset() const {
|
||||
return byte_offset_;
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ class Tensor final {
|
|||
* Set the byte offset with respect to the p_data
|
||||
* @warning this is a temporary solution for reusing the buffer bigger than needed.
|
||||
*/
|
||||
inline void SetByteOffset(int64_t byte_offset) {
|
||||
inline void SetByteOffset(ptrdiff_t byte_offset) {
|
||||
byte_offset_ = byte_offset;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue