Hide Triton warning on Windows
Triton doesnt work on Windows so hide the error
This commit is contained in:
parent
56498d505a
commit
0787299610
4
main.py
4
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue