ultralytics 8.0.79 expand Docs reference section (#2053)
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fri3dChicken <87434761+AmoghDhaliwal@users.noreply.github.com>
This commit is contained in:
parent
47bd8b433b
commit
31db8ed163
106 changed files with 2570 additions and 529 deletions
|
|
@ -120,10 +120,10 @@ def make_divisible(x, divisor):
|
|||
|
||||
Args:
|
||||
x (int): The number to make divisible.
|
||||
divisor (int or torch.Tensor): The divisor.
|
||||
divisor (int) or (torch.Tensor): The divisor.
|
||||
|
||||
Returns:
|
||||
int: The nearest number divisible by the divisor.
|
||||
(int): The nearest number divisible by the divisor.
|
||||
"""
|
||||
if isinstance(divisor, torch.Tensor):
|
||||
divisor = int(divisor.max()) # to int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue