[inductor] Handle the case where kwargs contains tensor (#88417)
Summary: Fix https://github.com/pytorch/torchdynamo/issues/1805;
currently inductor does not allow any tensor in kwargs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88417
Approved by: https://github.com/ngimel