(fn)
| 24 | module._buffers[name] = module._buffers[name].to(device) |
| 25 | |
| 26 | def patch_tensor_constructor(fn): |
| 27 | def wrapper(*args, **kwargs): |
| 28 | kwargs["device"] = device |
| 29 | return fn(*args, **kwargs) |
| 30 | |
| 31 | return wrapper |
| 32 | |
| 33 | if include_buffers: |
| 34 | tensor_constructors_to_patch = { |
no outgoing calls
no test coverage detected