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
1b00369
gene-hoi-denoising
/
common
/
np_utils.py
meow
init
d6d3a5b
9 months ago
raw
Copy download link
history
blame
Safe
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