aGiant removed a comment on issue #17800: _MinusScalar type <class 'mxnet.ndarray.ndarray.NDArray'> not supported` ? URL: https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597175578 Tried min-max normalization with given min-max values based on https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/blocks/custom_layer_beginners.html: ``` -------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-175-2d25ca5fd6d4> in <module> 6 model_prefix = 'vae_gluon_{}d{}l{}h.params'.format(n_latent, n_layers, n_hidden) 7 ----> 8 net = VAE(n_hidden, n_latent, n_layers, n_output, min_v.values, max_v.values) <ipython-input-174-2c3888550b32> in __init__(self, n_hidden, n_latent, n_layers, n_output, min_vec, max_vec, act_type, **kwargs) 13 # self.max_v = max_vec #mx.gluon.Constant('max_v', max_vec) 14 print(dir(self)) ---> 15 self.min_v = self.params.get('scales_min', 16 shape=scales.shape, 17 init=mx.init.Constant(min_vec), ~/anaconda3/lib/python3.7/site-packages/mxnet/gluon/block.py in params(self) 268 """Returns this :py:class:`Block`'s parameter dictionary (does not include its 269 children's parameters).""" --> 270 return self._params 271 272 def collect_params(self, select=None): AttributeError: 'VAE' object has no attribute '_params' ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
