You are working on the ultralytics/thop repository. The source code is checked out at /testbed at commit…
You are working on the ultralytics/thop repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). Example: py import thop import torch.nn as nn model = nn.ConvTranspose2d(3, 1, (2, 2), stride=(2, 2)) macs, = thop.profile(model…
The task
Example: ```py import thop import torch.nn as nn model = nn.ConvTranspose2d(3, 1, (2, 2), stride=(2, 2)) macs, _ = thop.profile(model, inputs=(torch.randn(1, 3, 2, 2),)) output = model(torch.randn(1, 3, 2, 2)) print(f'MACs: {macs}, output size: {output.shape}') ``` Output: ``` [INFO] Register count_convNd() for…
Part of Lego-X/Lego-RL-2699.