add import math (#9346)
This commit is contained in:
committed by
GitHub
parent
785e52cd30
commit
912f6881d2
@@ -1400,6 +1400,7 @@ class TF{{cookiecutter.camelcase_modelname}}ForQuestionAnswering(TF{{cookiecutte
|
|||||||
)
|
)
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
import math
|
||||||
import random
|
import random
|
||||||
from typing import Dict, Optional, Tuple, Union
|
from typing import Dict, Optional, Tuple, Union
|
||||||
|
|
||||||
|
|||||||
@@ -1513,6 +1513,7 @@ class {{cookiecutter.camelcase_modelname}}ForQuestionAnswering({{cookiecutter.ca
|
|||||||
attentions=outputs.attentions,
|
attentions=outputs.attentions,
|
||||||
)
|
)
|
||||||
{% else %}
|
{% else %}
|
||||||
|
import math
|
||||||
import random
|
import random
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user