Skip to content

Commit 4e94706

Browse files
committed
fix
1 parent dcc58c0 commit 4e94706

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/ops/test_ops_torch_nn.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
31
import os
42
import unittest
53

4+
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
5+
os.environ['TL_BACKEND'] = 'torch'
6+
67
import numpy as np
78
import torch
89
import torch.nn.functional as F
@@ -11,8 +12,6 @@
1112
from tensorlayerx.backend.ops.torch_nn import *
1213
from tests.utils import CustomTestCase
1314

14-
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
15-
1615

1716
class TestPaddingFormat(CustomTestCase):
1817

0 commit comments

Comments
 (0)