Skip to content

Commit 42b38b0

Browse files
committed
remove deprecated pytensor.tensor.nnet
1 parent 10610f5 commit 42b38b0

32 files changed

+111
-14717
lines changed

pytensor/tensor/conv/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from .abstract_conv import (
2+
bilinear_upsampling,
3+
causal_conv1d,
4+
conv2d,
5+
conv2d_transpose,
6+
conv3d,
7+
frac_bilinear_upsampling,
8+
separable_conv2d,
9+
separable_conv3d,
10+
)

pytensor/tensor/nnet/abstract_conv.py renamed to pytensor/tensor/conv/abstract_conv.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@
55

66
import logging
77
import sys
8-
9-
10-
try:
11-
from math import gcd
12-
except ImportError:
13-
from fractions import gcd
14-
158
import warnings
9+
from math import gcd
1610

1711
import numpy as np
1812

@@ -35,8 +29,7 @@
3529
from pytensor.tensor.var import TensorConstant, TensorVariable
3630

3731

38-
__docformat__ = "restructuredtext en"
39-
_logger = logging.getLogger("pytensor.tensor.nnet.abstract_conv")
32+
_logger = logging.getLogger(__name__)
4033

4134

4235
def get_conv_output_shape(

pytensor/tensor/nnet/__init__.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)