(fn)
| 55 | module._buffers[name] = module._buffers[name].to(device) |
| 56 | |
| 57 | def patch_tensor_constructor(fn): |
| 58 | def wrapper(*args, **kwargs): |
| 59 | kwargs["device"] = device |
| 60 | return fn(*args, **kwargs) |
| 61 | |
| 62 | return wrapper |
| 63 | |
| 64 | if include_buffers: |
| 65 | tensor_constructors_to_patch = { |
no outgoing calls
no test coverage detected