[C++ API] Added missing nearest-exact mode and anti-alias flag (#69318)
Summary:
Description:
Following https://github.com/pytorch/pytorch/pull/65142#issuecomment-981995692 adding missing nearest-exact mode and anti-alias flag to C++ frontend.
- https://github.com/pytorch/pytorch/pull/65142
- https://github.com/pytorch/pytorch/pull/64501
- added tests in pytorch/test/cpp/api/functional.cpp
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69318
Reviewed By: davidberard98
Differential Revision: D33278995
Pulled By: jbschlosser
fbshipit-source-id: fa87c0c78df6b398e4f9688cc02111eed187afa7