Clarify triton server boolean value (#8532)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
bobyard-com 2024-03-05 10:58:14 -08:00 committed by GitHub
parent 3596a77a5a
commit 9c42596145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]