标签:port 查看 shape sys puts stride data rand tput
import mxnet as mx
import numpy as np
import random
import mxnet as mx
import sys
data_shape = {‘data‘:(60000, 1,28, 28)}
data = mx.sym.var(‘data‘)
pool0 = mx.sym.Pooling(data=data, pool_type="max", kernel=(2,2), stride=(2,2),name=‘pool0‘)
pool1 = mx.sym.Pooling(data=pool0, pool_type="max", kernel=(2,2), stride=(2,2),name=‘pool1‘)
in_shape,out_shape,uax_shape = pool1.infer_shape(**data_shape)
#pool0.list_outputs()
in_shape,out_shape,uax_shape
标签:port 查看 shape sys puts stride data rand tput
原文地址:https://www.cnblogs.com/jukan/p/10234546.html