"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "e2e378caba56ac169a37ea9b25c53dc74fba9ea2"
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):
class ToDevice(PyTorchOperation):
_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.device = parameters['device']
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