Reverse3D.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
from layer import NeuralLayer
5
import theano
6
import theano.tensor as T
7
8
class Reverse3D(NeuralLayer):
9
10
    def __init__(self):
11
        super(Reverse3D, self).__init__("reverse3d")
12
13
    def compute_tensor(self, x):
14
        return x[:, ::-1, :]
15