8000 Change size_in_bytes argument type from int to size_t. · linux-on-ibm-z/tensorflow@64e4135 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64e4135

Browse files
Change size_in_bytes argument type from int to size_t.
Other uses of it are size_t, so this makes it consistent. PiperOrigin-RevId: 730609856
1 parent c0562df commit 64e4135

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensorflow/lite/experimental/litert/runtime/opencl/buffer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
namespace litert {
3030
namespace cl {
31-
absl::Status CreateClBuffer(cl_context context, int size_in_bytes,
31+
absl::Status CreateClBuffer(cl_context context, size_t size_in_bytes,
3232
bool read_only, void* data, cl_mem* result) {
3333
cl_mem_flags flags = read_only ? CL_MEM_READ_ONLY : CL_MEM_READ_WRITE;
3434
if (data) {

tensorflow/lite/experimental/litert/runtime/opencl/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Buffer {
7272

7373
Buffer CreateBufferShared(cl_mem buffer);
7474

75-
absl::Status CreateClBuffer(cl_context context, int size_in_bytes,
75+
absl::Status CreateClBuffer(cl_context context, size_t size_in_bytes,
7676
bool read_only, void* data, cl_mem* result);
7777

7878
absl::Status CreateBuffer(size_t size_in_bytes, bool gpu_read_only,

0 commit comments

Comments
 (0)
0