Skip to content

Remove awkward from theano import theano statements #4054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/notebooks/normalizing_flows_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"import seaborn as sns\n",
"import pymc3 as pm\n",
"import numpy as np\n",
"from theano import theano, tensor as tt\n",
"import theano\n",
"import theano.tensor as tt\n",
"from collections import Counter\n",
"\n",
"pm.set_tt_rng(42)\n",
Expand Down
3 changes: 2 additions & 1 deletion pymc3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
from pandas import Series
import scipy.sparse as sps
import theano.sparse as sparse
from theano import theano, tensor as tt
import theano
import theano.tensor as tt
from theano.tensor.var import TensorVariable
from theano.compile import SharedVariable

Expand Down
3 changes: 2 additions & 1 deletion pymc3/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

import pytest
from theano import theano, tensor as tt
import theano
import theano.tensor as tt
import numpy as np
import pandas as pd
import numpy.testing as npt
Expand Down
3 changes: 2 additions & 1 deletion pymc3/tests/test_theanof.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import pytest
from itertools import product

from theano import theano, tensor as tt
import theano
import theano.tensor as tt
import numpy as np

from pymc3.theanof import set_theano_conf, take_along_axis, _conversion_map
Expand Down
3 changes: 2 additions & 1 deletion pymc3/tests/test_variational_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import io
import operator
import numpy as np
from theano import theano, tensor as tt
import theano
import theano.tensor as tt


import pymc3 as pm
Expand Down
2 changes: 1 addition & 1 deletion pymc3/theanof.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import numpy as np
import theano
from theano import theano, scalar, tensor as tt
from theano import scalar, tensor as tt
from theano.configparser import change_flags
from theano.gof import Op
from theano.gof.graph import inputs
Expand Down
3 changes: 2 additions & 1 deletion pymc3/variational/stein.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from theano import theano, tensor as tt
import theano
import theano.tensor as tt
from pymc3.variational.opvi import node_property
from pymc3.variational.test_functions import rbf
from pymc3.theanof import floatX, change_flags
Expand Down