Clarify triton server boolean value (#8532)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/8629/head
bobyard-com 9 months ago committed by GitHub
parent 3596a77a5a
commit 9c42596145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/nn/autobackend.py

@ -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…
Cancel
Save