deepy.layers.Flatten.output()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 2
rs 10
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
from . import NeuralLayer
5
import theano.tensor as T
6
7
class Flatten(NeuralLayer):
8
    """
9
    Flatten layer.
10
    """
11
12
    def __init__(self):
13
        super(Flatten, self).__init__("flatten")
14
    
15
    def output(self, x):
16
        return T.flatten(x, 2)