Skip to content

Deprecated indexing warning #748

@NicolasHug

Description

@NicolasHug

Just saw this from our tests, we should address it before the release

test/test_frame_dataclasses.py::test_framebatch_indexing
  /Users/runner/miniconda3/envs/test/lib/python3.9/site-packages/torchcodec/_frame.py:108: UserWarning: Using a non-tuple sequence for multidimensional indexing is deprecated and will be changed in pytorch 2.9; use x[tuple(seq)] instead of x[seq]. In pytorch 2.9 this will be interpreted as tensor index, x[torch.tensor(seq)], which will result either in an error or a different result (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/autograd/python_variable_indexing.cpp:312.)

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