Unverified Commit 7fe57a0e authored by Zhenhua Han's avatar Zhenhua Han Committed by GitHub
Browse files

[Retiarii] fix missed "attributes" in ToDevice pytorch op (#4266)

parent 99c0f938
...@@ -491,7 +491,8 @@ class AtenAvgpool2d(PyTorchOperation): ...@@ -491,7 +491,8 @@ class AtenAvgpool2d(PyTorchOperation):
class ToDevice(PyTorchOperation): class ToDevice(PyTorchOperation):
_artificial_op_name = "ToDevice" _artificial_op_name = "ToDevice"
def __init__(self, type_name: str, parameters: Dict[str, Any], _internal: bool = False): def __init__(self, type_name: str, parameters: Dict[str, Any], _internal: bool = False,
attributes: Dict[str, Any] = None):
self.type = "ToDevice" self.type = "ToDevice"
self.device = parameters['device'] self.device = parameters['device']
self.overridden_device_repr = None self.overridden_device_repr = None
......
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