Skip to content

Conversation

@BowenBao
Copy link
Collaborator

No description provided.

@ezyang ezyang requested a review from houseroad March 15, 2019 02:42
@BowenBao BowenBao force-pushed the onnx_floor_etc branch 2 times, most recently from 9a6ae65 to fd70d56 Compare April 1, 2019 20:48
Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Please address inline comments.

Copy link
Member

Choose a reason for hiding this comment

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

can we also add a test case for this one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@BowenBao BowenBao force-pushed the onnx_floor_etc branch 4 times, most recently from a6f3547 to 3001465 Compare April 9, 2019 01:21
add test for prim_shape

nit

remove ceil, floor symbolic due to already resolved

merge
return g.op('Div', log(g, self), g.op('Constant', value_t=torch.Tensor([_ln2])))


def prim_shape(g, self):
Copy link
Member

Choose a reason for hiding this comment

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

Interesting, I am wondering why this would work with prim::shape node.

Copy link
Member

Choose a reason for hiding this comment

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

I need to think about whether this is a good way to handle prim::nodes

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

Looks good.

Once we add support for custom domain op, we should refactor prim domain op.

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.

@facebook-github-bot
Copy link
Contributor

@houseroad merged this pull request in 8e77506.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary: Pull Request resolved: pytorch#17895

Reviewed By: zrphercule

Differential Revision: D15103396

Pulled By: houseroad

fbshipit-source-id: 2ec80f11a19a8659aa496e68aed769a8dd1efb18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants