Use NewCriterionTest in test_cpp_api_parity.py. (#43954)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43954
CriterionTest is basically dead -- see https://github.com/pytorch/pytorch/pull/43769 and https://github.com/pytorch/pytorch/pull/43776.
The only exception is the cpp parity test, but the difference there doesn't actually have any effect -- the get_target has unpack=True, but all examples don't require unpacking (I checked).
As a pre-requisite for merging these tests, have the cpp parity test start using the NewCriterionTest.
Test Plan: Imported from OSS
Reviewed By: mruberry
Differential Revision: D23452144
Pulled By: gchanan
fbshipit-source-id: 5dca1eb0878b882c93431d3b0e880b5bb1764522