(arg)
| 42 | return args is None or isinstance(arg, (str, int, float, bool)) |
| 43 | |
| 44 | def create_tiny_mapping(arg): |
| 45 | if WRAP_TINY: |
| 46 | tt = Tensor.from_blob(arg.data_ptr(), arg.shape, dtype=_from_torch_dtype(arg.dtype)) |
| 47 | cuda_to_tiny_mappings[arg] = tiny_torch.wrap(tt) |
| 48 | |
| 49 | for i,arg in enumerate(args): |
| 50 | if torch.is_tensor(arg): |
nothing calls this directly
no test coverage detected