General cleanups including Shape class and tensor utils (#67525)
* Remove shape_builder
* Remove dynamic reshapes
* Remove dynamic shape helpers and Shape class features
Lazy tensor core may not support 'dynamic dimensions' per-se,
and we'll be re-designing dynamic shape support in general.
For now, we want shape class to be as close to aten as possible,
and want to remove as many extra/unnecessary utils/helpers as
we can to expedite landing to master
- remove is_dynamic_shape, set_dynamic_shape, *DynamicMode
- remove nonzero and masked_select op impls simply because
we aren't using them yet and should codegen them or would
need to update their impls anyway, and the current impl
used dynamic shape helpers
- removed dynamic shape helpers
* Remove Shape::DeleteDimension and logdet
- logdet impl wasn't being used yet, and we should codegen it
- nothing else needs to delete dimensions from a 'shape'
* Remove IsArray() and consolidate rank()
* Remove unused MakeTensorFromLiteral and related helpers
* Remove unneeded casting code