File size: 187 Bytes
ad16788
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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