mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
use tuple in isinstance for type checking (#9583)
This commit is contained in:
@@ -39,7 +39,7 @@ class DispatchLog(TorchDispatchMode):
|
||||
should_call_tiny = kwargs.get('device') is not None and kwargs['device'].type == "cuda"
|
||||
|
||||
def can_print_arg(arg):
|
||||
return args is None or isinstance(arg, str) or isinstance(arg, int) or isinstance(arg, float) or isinstance(arg, bool)
|
||||
return args is None or isinstance(arg, (str, int, float, bool))
|
||||
|
||||
def create_tiny_mapping(arg):
|
||||
if WRAP_TINY:
|
||||
|
||||
Reference in New Issue
Block a user