You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defsave(net, model_dir):
# save the modely=net(mx.sym.var('data'))
y.save('%s/model.json'%model_dir)
net.collect_params().save('%s/model.params'%model_dir)
But, if I try this with an LSTM I get an error. The minimal code to reproduce the bug is,
$ python shape_error.py
Traceback (most recent call last):
File "shape_error.py", line 5, in <module>
net(mx.sym.var('dats'))
File "/usr/local/lib/python3.6/site-packages/mxnet/gluon/block.py", line 304, in __call__
return self.forward(*args)
File "/usr/local/lib/python3.6/site-packages/mxnet/gluon/rnn/rnn_layer.py", line 173, in forward
batch_size = inputs.shape[self._layout.find('N')]
AttributeError: 'Symbol' object has no attribute 'shape'
@aidan-plenert-macdonald this is more of an mxnet usage issue than a SageMaker one. I've updated your mxnet issue with a suggested workaround and will close this ticket.
Activity
owen-t commentedon Jan 22, 2018
I'm looking into this issue and will respond here with updates.
jesterhazy commentedon Jan 25, 2018
@aidan-plenert-macdonald this is more of an mxnet usage issue than a SageMaker one. I've updated your mxnet issue with a suggested workaround and will close this ticket.
fix unit tests (aws#51)
Update Kmeans notebooks to match AWS docs updates from 11/24 (aws#51)