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...
53e1f27
wordle-solver
/
a3c
/
utils.py
santit96
Fix code style with black and isort
c412087
almost 2 years ago
raw
Copy download link
history
blame
Safe
186 Bytes
import
numpy
as
np
import
torch
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)