Fixes #181870
Dynamic traces cross_entropy_function using fake tensors that have symbolic sizes when torch.compile(dynamic=True) is active. The C++ method numel() on TensorImpl requires concrete non-symbolic) sizes that is why error is thrown. Changing numel to sym_numel fixes the issue
Pull Request resolved: #182004
Approved by:...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3535695