Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dino #7

Merged
merged 1 commit into from
Dec 7, 2023
Merged

add dino #7

merged 1 commit into from
Dec 7, 2023

Conversation

GreatV
Copy link
Contributor

@GreatV GreatV commented Dec 3, 2023

Export fails for both frameworks.

  • pytorch
torch._dynamo.exc.Unsupported: Dynamic slicing on data-dependent value is not supported

from user code:
   File "/home/greatx/repos/dino/utils.py", line 620, in forward
    _out = self.backbone(torch.cat(x[start_idx: end_idx]))

Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
  • paddle
TypeError: In transformed code:

    File "/home/greatx/repos/dino.paddle/utils.py", line 639, in forward
        for end_idx in idx_crops:
    File "/home/greatx/repos/dino.paddle/utils.py", line 640, in forward
        start_idx, output = 0, paddle.empty(shape=[0])
        for end_idx in idx_crops:
            _out = self.backbone(paddle.concat(x=x[start_idx:end_idx]))
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
            if isinstance(_out, tuple):
                _out = _out[0]


    TypeError: slice indices must be integers or None or have an __index__ method

@SigureMo SigureMo added the HappyOpenSource 快乐开源活动issue与PR label Dec 6, 2023
Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants