Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
rootstrap-org
/
wordle-solver
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
8bebef2
wordle-solver
/
a3c
/
utils.py
santit96
Code refactor
254d61f
over 2 years ago
raw
Copy download link
history
blame
186 Bytes
import
torch
import
numpy
as
np
def
v_wrap
(
np_array, dtype=np.float32
):
if
np_array.dtype != dtype:
np_array = np_array.astype(dtype)
return
torch.from_numpy(np_array)