Skip to content

Using deprecated/dangerous method to set 'data' in numpy array #17

Description

@davidsmf

In numpy 1.12.0, release notes:

Assignment of ndarray object's data attribute

Assigning the 'data' attribute is an inherently unsafe operation as pointed out in gh-7083. Such a capability will be removed in the future.

This appears to happen where we assign directly to the data of param_array and gradient_full. I've noticed warnings from

paramz\parameterized.py:266
paramz\parameterized.py:267
paramz\core\parameter_core.py:284
paramz\core\parameter_core.py:285

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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