Reverse3D   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 2 1
A compute_tensor() 0 2 1
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