empty_strided is most likely called internally by another method, e.g. for linalg methods 9 or in the to() operation 9.
Based on the profile and the number of calls, I would assume it’s indeed the aten::to operation, which uses it and runs out of memory.