Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

global name 'multiply' is not defined when using LBSGD #11278

@xmfbit

Description

@xmfbit

When I use LBSGD, the error occurs that reminds me

   File "/home/me/anaconda/lib/python2.7/site-packages/mxnet/optimizer.py", line 758, in _l2norm
    norm = multiply(v, v).asnumpy().sum()
NameError: global name 'multiply' is not defined

I add this in the optimizer.py manually and have solved the problem. So is this a bug existing in MXNet?

from .ndarray import multiply

And I want to know whether the LBSGD optimizer is done or not in MXNet. Because I see this in https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/optimizer.py#L734:

    def _get_lbmult(self, nup):
        """Returns lr scaling factor for large batch according to warmup schedule
        (to be implemented)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions