Closed shivadbhavsar closed 2 days ago
Turns out we need the resnet50-nhwc-fixes
branch for migraphx to use nhwc kernels.
required environment variables:
export PYTORCH_MIOPEN_SUGGEST_NHWC=1
export MIGRAPHX_MLIR_USE_SPECIFIC_OPS=convolution,fused
Since, the requires changes are not in migraphx master yet, lets just verify that using this branch we are able to get accurate results for resnet models, and add an nhwc option in the torch_migraphx/tools/perf/benchmark_torchvision.py
script
See https://pytorch.org/tutorials/intermediate/memory_format_tutorial.html
Once this is figured out: