Skip to content

Conversation

shubhambhokare1
Copy link
Collaborator

@shubhambhokare1 shubhambhokare1 commented Aug 19, 2020

Fixes #42292

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 19, 2020
@dr-ci
Copy link

dr-ci bot commented Aug 19, 2020

💊 CI failures summary and remediations

As of commit 8af31c5 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 11 times.

@BowenBao
Copy link
Collaborator

LG, please fix the lint failure.

Copy link
Collaborator

@BowenBao BowenBao left a comment

Choose a reason for hiding this comment

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

LGTM, please ensure CI is all green by rerun/rebase.

@shubhambhokare1
Copy link
Collaborator Author

@bzinodev build failure seems unrelated to changes made in code

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

auto start = slice->get(attr::start) ? slice->get(attr::start) : 0;
auto end = slice->get(attr::end) ? slice->get(attr::end) : int_max;
auto step = slice->get(attr::step);
TORCH_INTERNAL_ASSERT((slice->inputs()).size() == 5);
Copy link
Member

Choose a reason for hiding this comment

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

How about the opset < 11, if we set start and end as arguments, not inputs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For this pass the operator is aten::slice, start/end/step would always be inputs. The function
ConvertSliceToIndex is only called on encountering an index_put node.

@facebook-github-bot
Copy link
Contributor

@houseroad merged this pull request in 9ca338a.

@shubhambhokare1 shubhambhokare1 deleted the sbhokare/slice_export_bug branch August 28, 2020 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug in conversion torch model to onnx model

7 participants