[dynamo] Fix inference_mode context variable (#120830)
<idk what im doing>
Fixes #120646
The module for torch.inference_mode should be torch
The input to `create` is a bool (mode?) and `_enter_inference_mode` expects a bool but [BlockStackEntry](https://github.com/pytorch/pytorch/blob/50073248ede44306b75001d26f54bb72858cacc2/torch/_dynamo/symbolic_convert.py#L206) expects `target_values` to be a list?
[inference_mode](https://github.com/pytorch/pytorch/blob/50073248ede44306b75001d26f54bb72858cacc2/torch/autograd/grad_mode.py#L205)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120830
Approved by: https://github.com/zou3519, https://github.com/anijain2305, https://github.com/tugsbayasgalan