few minor code cleanups [pr] (#8267)

This commit is contained in:
chenyu
2024-12-15 23:44:51 -05:00
committed by GitHub
parent 9789a83064
commit f05fd118a2
3 changed files with 3 additions and 6 deletions

View File

@@ -1,9 +1,8 @@
import functools
import functools, struct
from tinygrad.device import Compiled, Allocator, Compiler
from tinygrad.renderer.wgsl import WGSLRenderer
from tinygrad.helpers import round_up
import wgpu
import struct
def create_uniform(wgpu_device, val) -> wgpu.GPUBuffer:
buf = wgpu_device.create_buffer(size=4, usage=wgpu.BufferUsage.UNIFORM | wgpu.BufferUsage.COPY_DST)