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
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
The group context was used for model parallelism of neural network train. The mx.sym.LogisticRegressionOutput works when it's been used for loss calculation, but not customized operator.
Environment info (Required)
OS: Ubuntu 14.04.5 LTS
Python: 2.7.13
mxnet: 0.12.1, pulled from master branch and built from source
Package used (Python/R/Scala/Julia):
Python: mxnet, numpy, scipy
Description
The group context was used for model parallelism of neural network train. The mx.sym.LogisticRegressionOutput works when it's been used for loss calculation, but not customized operator.
Environment info (Required)
OS: Ubuntu 14.04.5 LTS
Python: 2.7.13
mxnet: 0.12.1, pulled from master branch and built from source
Package used (Python/R/Scala/Julia):
Python: mxnet, numpy, scipy
Build info (Required if built from source)
Bulit from command line by following https://mxnet.incubator.apache.org/get_started/install.html
MXNet commit hash:
2f8c1e8
Build config:
Only change is to enable the profiler.
Error Message:
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 315, in 'calling callback function'
File "/git/mxnet/python/mxnet/operator.py", line 621, in creator
op_prop = prop_cls(**kwargs)
TypeError: init() got an unexpected keyword argument 'ctx_group'
Minimum reproducible example
The script to generate the network, which works:
...
fc2 = mx.symbol.FullyConnected(data=concat, name='fcout_'+str(gpu), num_hidden=out_dim/num_gpus)
loss = mx.sym.LogisticRegressionOutput(data=fc2, label=labs)
The script to generate the network which used customized operator, and didn't work:
...
fc2 = mx.symbol.FullyConnected(data=concat, name='fcout_'+str(gpu), num_hidden=out_dim/num_gpus)
act2 = mx.sym.Activation(data=fc2, name='acout_'+str(gpu), act_type='sigmoid')
loss = mx.sym.Custom(data=act2, label=label, name='ce_'+str(gpu), op_type='CrossEntropyLoss')
Is this because the custom op is not support yet for group context?
The text was updated successfully, but these errors were encountered: