Help with an error

#103
by czz - opened

C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\clip\modeling_clip.py:682: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
mask.fill_(torch.tensor(torch.finfo(dtype).min))
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\clip\modeling_clip.py:222: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if attn_weights.size() != (bsz * self.num_heads, tgt_len, src_len):
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\clip\modeling_clip.py:230: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if causal_attention_mask.size() != (bsz, 1, tgt_len, src_len):
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\clip\modeling_clip.py:262: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if attn_output.size() != (bsz * self.num_heads, tgt_len, self.head_dim):
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py:461: UserWarning: no signature found for <torch.ScriptMethod object at 0x0000023B1CCCC540>, skipping _decide_input_format
warnings.warn("%s, skipping _decide_input_format" % e)
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\utils.py:1520: UserWarning: No names were found for specified dynamic axes of provided input.Automatically generated names will be applied to each dynamic axes of input text_input
warnings.warn(
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\onnx\symbolic_opset9.py:4189: UserWarning: Exporting aten::index operator of advanced indexing in opset 16 is achieved by combination of multiple ONNX operators, including Reshape, Transpose, Concat, and Gather. If indices include negative values, the exported graph will produce incorrect results.

My English wasn't particularly good, but I still found your masterpiece and followed it for a while.
屏幕截图 2022-10-12 234644.png

I’m still a students so I not very tech savvy, so please keep things as simple as possible for me.So to me, that sounds like I’m missing a couple of files. Is that correct? If so, how do I restore them?
Thanks in advance, and if this is not the right place to ask for help, please point me in the right direction.

Sign up or log in to comment