提交 36a2c767 编写于 作者: HansBug's avatar HansBug 😆

dev(hansbug): fix test

上级 4e5db016
......@@ -100,9 +100,9 @@ jobs:
- name: Install Torch
shell: bash
if: ${{ matrix.torch-version != 'latest' }}
continue-on-error: true
run: |
echo "torch==${{ matrix.torch-version }}; python_version < '3.11'" > requirements-torch.txt
pip install -r requirements-torch.txt
pip install torch==${{ matrix.torch-version }}
- name: Install Extra Test Requirements
shell: bash
run: |
......
......@@ -21,10 +21,10 @@ class TestTreeTreeIntegration:
return x * 2 + 1.5
t1 = FastTreeValue({
'a': np.random.randint(0, 10, (2, 3)),
'a': np.random.randint(0, 10, (2, 3)) + 1,
'b': {
'x': np.asarray(233.0),
'y': np.random.randn(2, 3) + 1,
'y': np.random.randn(2, 3) + 100,
}
})
r1 = double(t1)
......@@ -38,10 +38,10 @@ class TestTreeTreeIntegration:
register_for_jax(MyTreeValue)
t2 = MyTreeValue({
'a': np.random.randint(0, 10, (2, 3)),
'a': np.random.randint(0, 10, (2, 3)) + 1,
'b': {
'x': np.asarray(233.0),
'y': np.random.randn(2, 3) + 1,
'y': np.random.randn(2, 3) + 100,
}
})
r2 = double(t2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册