[xplat][metal] Add getters and setters for ivars in Conv2dOpContext (#57395)
authorYuchen Huang <hyc@fb.com>
Wed, 1 Sep 2021 21:48:00 +0000 (14:48 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Sep 2021 22:31:12 +0000 (15:31 -0700)
commit9495674905053b67247e8e809d5c088f4fa62abc
tree9462d997bfb3b7cc2ea716daf350fc386d08d329
parent968d7ee46a66316557a04a64333d2810b544ed9b
[xplat][metal] Add getters and setters for ivars in Conv2dOpContext (#57395)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57395

As title
ghstack-source-id: 137223806

(Note: this ignores all push blocking failures!)

Test Plan:
### Lib Build
- `buck build caffe2:aten_metal_prepack`

### Integration Test
- `arc focus2 pp-ops -a ModelRunner`
- Click "Test Person/Hair Segmentation Model"

{F612831435}

- Image Classification Demo

{F614144868}

Reviewed By: xta0

Differential Revision: D28132020

fbshipit-source-id: 73560263a9d14e9ecfa39c69deb158a2ed8cb179
aten/src/ATen/native/metal/MetalPrepackOpContext.h
aten/src/ATen/native/metal/ops/MetalConvolution.mm