Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
tobiasc
/
conex
like
3
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
2be2dea
conex
/
espnet
/
nets
/
chainer_backend
/
nets_utils.py
tobiasc
Initial commit
ad16788
almost 3 years ago
raw
Copy download link
history
blame
Safe
187 Bytes
import
chainer.functions
as
F
def
_subsamplex
(
x, n
):
x = [F.get_item(xx, (
slice
(
None
,
None
, n),
slice
(
None
)))
for
xx
in
x]
ilens = [xx.shape[
0
]
for
xx
in
x]
return
x, ilens