Skip to content

Commit f3d86c6

Browse files
committed
fix doc build
1 parent 1d00171 commit f3d86c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchao/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)