tobiasc's picture
Initial commit
ad16788
raw
history blame contribute delete
No virus
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