[nnc] Updated inliner to remove assertions and exception (#64719)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64719
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D30828583
Pulled By: navahgar
fbshipit-source-id: 9826a59085a210e44d101a843ff2cae440dfd633