Skip to content

Commit

Permalink
Fixup compute_noop.py numpy example (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
claydugo authored Oct 30, 2023
1 parent 2f2495d commit 624ecec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/compute_noop.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# import numpy as np
#
# numpy_data = np.frombuffer(data, np.int32)
# out = compute_with_buffers({0: numpy_data}, {1: numpy_data.nbytes}, compute_shader, n=n)
# out = compute_with_buffers({0: numpy_data}, {1: numpy_data.nbytes}, shader_source, n=n)
# result = np.frombuffer(out[1], dtype=np.int32)
# print(result)
# print(result.tolist())


# %% The long version using the wgpu API
Expand Down

0 comments on commit 624ecec

Please sign in to comment.