Skip to content

Commit

Permalink
Fix tf imports in some test files.
Browse files Browse the repository at this point in the history
Changed `import tensorflow as tf` to `from akro import tf`
so that tests will still run if tensorflow is not installed.

This makes tf imports in these files consistent with the other test
files.
  • Loading branch information
edlanglois committed Oct 15, 2020
1 parent bcbeae4 commit 56b864f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/akro/test_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import numpy as np
import pytest
import tensorflow as tf

from akro import Discrete
from akro import tf
from akro import theano
from akro.requires import requires_tf, requires_theano

Expand Down
2 changes: 1 addition & 1 deletion tests/akro/test_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import unittest

import numpy as np
import tensorflow as tf

from akro import Box
from akro import Discrete
from akro import tf
from akro import theano
from akro import Tuple
from akro.requires import requires_tf, requires_theano
Expand Down

0 comments on commit 56b864f

Please sign in to comment.