"ts/nni_manager/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "650a39b7629a5ab5d750079a27c965f7b540475b"
Unverified Commit 07872996 authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

Hide Triton warning on Windows

Triton doesnt work on Windows so hide the error
parent 56498d50
...@@ -7,6 +7,10 @@ import heapq ...@@ -7,6 +7,10 @@ import heapq
import traceback import traceback
import asyncio import asyncio
if os.name == "nt":
import logging
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
try: try:
import aiohttp import aiohttp
from aiohttp import web from aiohttp import web
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment