[static runtime] Fix up deprecated exact equality in tests (#52617)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52617
swaps `.equals` with `torch::allclose`
tests are broken right now
Test Plan: buck test caffe2/benchmarks/static_runtime:static_runtime_cpptest -- --run-disabled
Reviewed By: bertmaher, maratsubkhankulov, yinghai
Differential Revision: D26585079
fbshipit-source-id: 9bd2a7b87208301415a8925f95c69fe44accf159