Skip to content

Add Upsample support in C2 onnx backend for opset 1#9327

Closed
houseroad wants to merge 2 commits intopytorch:masterfrom
houseroad:fix_upsample
Closed

Add Upsample support in C2 onnx backend for opset 1#9327
houseroad wants to merge 2 commits intopytorch:masterfrom
houseroad:fix_upsample

Conversation

@houseroad
Copy link
Member

No description provided.

@houseroad houseroad requested review from ailzhang, bddppq and yinghai July 10, 2018 22:43
raise ValueError("The first two elements in the scales argument must be 1")
c2_op.arg.extend([caffe2.python.utils.MakeArgument('height_scale', n.attrs['scales'][2])])
c2_op.arg.extend([caffe2.python.utils.MakeArgument('width_scale', n.attrs['scales'][3])])
if opset_version >= 7:

This comment was marked as off-topic.

This comment was marked as off-topic.


return c2_op;
if (opset_version >= 7) {
auto scales = attributes.get<::google::protobuf::RepeatedField<float>>("scales");

This comment was marked as off-topic.

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.

goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary: Pull Request resolved: pytorch#9327

Reviewed By: ailzhang

Differential Revision: D8798462

Pulled By: houseroad

fbshipit-source-id: d7d1127a853de6a7bb8fdef146f283487e1e5569
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants