Unverified Commit 6403d482 authored by Shucai Xiao's avatar Shucai Xiao Committed by GitHub
Browse files

fix pyflakes warnings (#901)


Co-authored-by: default avatarPaul Fultz II <pfultz2@yahoo.com>
parent ac693871
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# --------------------------------------------------------------------------
from .backend import is_compatible, prepare, run, supports_device
......@@ -82,9 +82,6 @@ class MIGraphXBackend(Backend):
elif isinstance(model, migraphx.program):
return MIGraphXBackendRep(model, cls._input_names)
elif isinstance(model, (str, bytes)):
for k, v in kwargs.items():
if hasattr(options, k):
setattr(options, k, v)
if device is not None and not cls.supports_device(device):
raise RuntimeError(
"Incompatible device expected '{0}', got '{1}'".format(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment