Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
xymeow7
/
gene-hoi-denoising
like
4
Runtime error
App
Files
Files
Community
1
refs/pr/1
gene-hoi-denoising
/
common
/
np_utils.py
meow
init
d6d3a5b
7 months ago
raw
Copy download link
history
blame
No virus
148 Bytes
import
numpy
as
np
def
permute_np
(
x, idx
):
original_perm =
tuple
(
range
(
len
(x.shape)))
x = np.moveaxis(x, original_perm, idx)
return
x