set triton.cudagraphs only in inductor backend (#1298)
Summary:
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1298
when running with `--torchdynamo aot_eager`, get an error:
```
torchbenchmark/util/backends/torchdynamo.py", line 45, in apply_torchdynamo_args
torchinductor.config.triton.cudagraphs = bool(args.torchinductor_cudagraph)
AttributeError: module 'torch._inductor' has no attribute 'config'
```
only set torchinductor.config.triton.cudagraphs and torchinductor.config.triton.mm = "triton" in inductor mode
Reviewed By: brad-mengchi
Differential Revision: D41236564
fbshipit-source-id: ba2fc2546946bff69df445b88b5c38518b664421