|
1 | 1 | from __future__ import division
|
2 |
| -from theano.tensor import constant, flatten, zeros_like, ones_like, stack, concatenate, sum, prod, lt, gt, le, ge, eq, \ |
3 |
| - neq, switch, clip, where, and_, or_, abs_ |
4 |
| -from theano.tensor import exp, log, cos, sin, tan, cosh, sinh, \ |
5 |
| - tanh, sqr, sqrt, erf, erfinv, dot |
6 |
| -from theano.tensor import maximum, minimum, sgn, ceil, floor |
7 |
| -from theano.tensor.nlinalg import det, matrix_inverse, \ |
8 |
| - extract_diag, matrix_dot, trace |
9 |
| -from theano.tensor.nnet import sigmoid |
| 2 | +import sys |
10 | 3 | import theano
|
11 | 4 | import theano.tensor as tt
|
12 |
| -import sys |
| 5 | +from theano.tensor import (constant, flatten, zeros_like, ones_like, stack, concatenate, sum, prod, |
| 6 | + lt, gt, le, ge, eq, neq, switch, clip, where, and_, or_, abs_, exp, log, |
| 7 | + cos, sin, tan, cosh, sinh, tanh, sqr, sqrt, erf, erfinv, dot, maximum, |
| 8 | + minimum, sgn, ceil, floor) |
| 9 | +from theano.tensor.nlinalg import det, matrix_inverse, extract_diag, matrix_dot, trace |
| 10 | +from theano.tensor.nnet import sigmoid |
13 | 11 |
|
14 | 12 |
|
15 | 13 | def logsumexp(x, axis=None):
|
|
0 commit comments