inductor: skip weight packing when has zero shape (#101355)
This PR wil skip weight packing when has zero shape to fix https://github.com/pytorch/pytorch/issues/101211.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101355
Approved by: https://github.com/jgong5, https://github.com/jansel