Ultralytics Refactor https://ultralytics.com/actions (#17701)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
77c3c0aaac
commit
d670bcc2b9
8 changed files with 32 additions and 44 deletions
|
|
@ -675,7 +675,7 @@ def profile(input, ops, n=10, device=None, max_num_obj=0):
|
|||
torch.randn(
|
||||
x.shape[0],
|
||||
max_num_obj,
|
||||
int(sum([(x.shape[-1] / s) * (x.shape[-2] / s) for s in m.stride.tolist()])),
|
||||
int(sum((x.shape[-1] / s) * (x.shape[-2] / s) for s in m.stride.tolist())),
|
||||
device=device,
|
||||
dtype=torch.float32,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue