aGiant commented on issue #17800: _MinusScalar type <class 
'mxnet.ndarray.ndarray.NDArray'> not supported` ?
URL: 
https://github.com/apache/incubator-mxnet/issues/17800#issuecomment-597157035
 
 
   More errors
   ```
   <ipython-input-133-18747e174c30> in __init__(self, n_hidden, n_latent, 
n_layers, n_output, min_vec, max_vec, act_type, **kwargs)
        11         # 
https://mxnet.apache.org/api/python/docs/api/gluon/constant.html
        12         # self.const = self.params.get_constant('const', 
[[1,2],[3,4]])
   ---> 13         self.min_v = mx.gluon.Constant('const_min', min_vec)
        14         self.max_v = mx.gluon.Constant('const_max', max_vec)
        15         # note to self: requring batch_size in model definition is 
sad,
   
   ~/anaconda3/lib/python3.7/site-packages/mxnet/gluon/block.py in 
__setattr__(self, name, value)
       732     def __setattr__(self, name, value):
       733         """Registers parameters."""
   --> 734         super(HybridBlock, self).__setattr__(name, value)
       735         if isinstance(value, HybridBlock):
       736             self._clear_cached_op()
   
   ~/anaconda3/lib/python3.7/site-packages/mxnet/gluon/block.py in 
__setattr__(self, name, value)
       202             self.register_child(value, name)
       203         elif isinstance(value, Parameter):
   --> 204             assert name not in self._reg_params, \
       205                 "Overriding Parameter attribute %s is not allowed. " 
\
       206                 "If you want to share parameters between blocks, 
please set " \
   
   AttributeError: 'VAE' object has no attribute '_reg_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

Reply via email to