mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 23:48:01 -05:00
add restype for msg method for type annotation and consistency (#7828)
* no need to explicitly set objc_id as restype * add restype for type annotation --------- Co-authored-by: Mesozoic Egg <mesozoic.egg@proton.me>
This commit is contained in:
@@ -69,7 +69,7 @@ class MetalGraph(GraphRunner):
|
||||
input_rawbuffers[input_idx]._buf.offset, i)
|
||||
|
||||
for j, global_dims, local_dims in self.updated_launch_dims(var_vals):
|
||||
computeCommand = msg(self.icb, "indirectComputeCommandAtIndex:", j)
|
||||
computeCommand = msg(self.icb, "indirectComputeCommandAtIndex:", j, restype=objc_id)
|
||||
msg(computeCommand, "concurrentDispatchThreadgroups:threadsPerThreadgroup:", to_struct(*global_dims), to_struct(*local_dims))
|
||||
for j, var in enumerate(self.vars): self.int_buf_view[j] = var_vals[var]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user