Update attentions_onnx.py

This commit is contained in:
Ναρουσέ·μ·γιουμεμί·Χινακάννα 2024-11-24 15:18:09 +08:00 committed by GitHub
parent c286480d10
commit f9ade11d77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,11 @@
############################## Warning! ##############################
# #
# Onnx Export Not Support All Of Non-Torch Types #
# Include Python Built-in Types!!!!!!!!!!!!!!!!! #
# If You Want TO Change This File #
# Do Not Use All Of Non-Torch Types! #
# #
############################## Warning! ##############################
import copy
import math
from typing import Optional