File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ class MyTensor(torch.Tensor):
388388
389389 raise NotImplementedError (f"{ cls .__name__ } dispatch: attempting to run unimplemented operator/function: { func } " )
390390
391- def _register_layout_cls (cls : Callable , layout_type_class : type ( LayoutType ) ):
391+ def _register_layout_cls (cls : Callable , layout_type_class : Callable ):
392392 """Helper function for layout registrations, this is used to implement
393393 register_layout_cls decorator for each tensor subclass, see aqt.py for example usage
394394
@@ -414,7 +414,7 @@ def decorator(layout_class):
414414 return layout_class
415415 return decorator
416416
417- def _get_layout_tensor_constructor (cls : Callable , layout_type_class : type ( LayoutType ) ) -> Callable :
417+ def _get_layout_tensor_constructor (cls : Callable , layout_type_class : Callable ) -> Callable :
418418 """Get Layout class constructor (LayoutClass.from_plain) for `cls` based on `layout_type_class`
419419 `layout_type_class` means the class type of subclass of `LayoutType`, e.g. `PlainLayoutType`
420420
You can’t perform that action at this time.
0 commit comments