[LTC] Upstream several internal ops (#69716)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69716
To prepare for the landing of LazyTensor and LazyGraphExecutor,
- arithmetic_ir_ops.h
- cast.h
- device_data.h
- expand.h
- generic.h
- scalar.h
Test Plan: Imported from OSS
Reviewed By: wconstab
Differential Revision: D32999410
Pulled By: desertfire
fbshipit-source-id: 31559dd7a1e525591ae9e2d7f915ee864437c11f