Skip to content

Fix warnings in xcebra #282

Description

@stes

The current test pipeline gives the following error (e.g. this action run):

tests/test_attribution.py::test_neuron_gradient_method
tests/test_attribution.py::test_batched_methods
  /opt/hostedtoolcache/Python/3.10.19/x64/lib/python3.10/site-packages/captum/attr/_core/neuron/neuron_gradient.py:173: UserWarning: Input Tensor 0 did not already require gradients, required_grads has been set automatically.
    gradient_mask = apply_gradient_requirements(inputs_tuple)

tests/test_integration_xcebra.py::test_synthetic_data_training
  /home/runner/work/CEBRA/CEBRA/cebra/models/jacobian_regularizer.py:118: UserWarning: This overload of addcdiv is deprecated:
  	addcdiv(Tensor input, Number value, Tensor tensor1, Tensor tensor2, *, Tensor out = None)
  Consider using one of the following signatures instead:
  	addcdiv(Tensor input, Tensor tensor1, Tensor tensor2, *, Number value = 1, Tensor out = None) (Triggered internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:1805.)
    v = torch.addcdiv(arxilirary_zero, 1.0, v, vnorm)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions