8000 Bug in initializer uniform_unit_scaling · Issue #2239 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Bug in initializer uniform_unit_scaling #2239
Closed
@SivilTaram

Description

@SivilTaram

Describe the bug
bug in allennlp.nn.initializers.uniform_unit_scaling

To Reproduce
Using the latest version of allennlp and pytorch(0.4.1), initialize parameters of LSTM/GRU via uniform_unit_scaling function

Expected behavior
Exception throw:

RuntimeError: a leaf Variable that requires grad has been used in an in-place operation

Potential Solution
Fix the line to return tensor.data.uniform_(-max_value, max_value) link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0