mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-11-29 18:59:01 +08:00
test_metric 添加torch标签
This commit is contained in:
parent
9f60246749
commit
6a99e2fa8c
@ -18,7 +18,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'pytest ./tests --durations=0 --html=other.html --self-contained-html -m "not (torch or paddle or paddledist or jittor or oneflow or oneflowdist or torchpaddle or torchjittor or torchoneflow)"'
|
sh 'pytest ./tests --durations=0 --html=other.html --self-contained-html -m "not (torch or paddle or paddledist or jittor or oneflow or oneflowdist or deepepeed or torchpaddle or torchjittor or torchoneflow)"'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
@ -26,6 +26,7 @@ class DemoMetric1(Metric):
|
|||||||
return self.count
|
return self.count
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.torch
|
||||||
class TestMetric:
|
class TestMetric:
|
||||||
|
|
||||||
def test_v1(self):
|
def test_v1(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user