Clarify triton server boolean value (#8532)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
3596a77a5a
commit
9c42596145
1 changed files with 1 additions and 1 deletions
|
|
@ -543,6 +543,6 @@ class AutoBackend(nn.Module):
|
|||
from urllib.parse import urlsplit
|
||||
|
||||
url = urlsplit(p)
|
||||
triton = url.netloc and url.path and url.scheme in {"http", "grpc"}
|
||||
triton = bool(url.netloc) and bool(url.path) and url.scheme in {"http", "grpc"}
|
||||
|
||||
return types + [triton]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue