Layer.py 653 Bytes
Newer Older
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# @author: Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
# @date: Wed 11 May 2016 17:38 CEST

import tensoflow as tf


class Layer(object):

    """
    Layer base class
    """

    def __init__(self, input, initialization='xavier', use_gpu=False, seed=10):
        """
        Base constructor

        **Parameters**
        input: Layer input

        """
        self.input = input
        self.initialization = initialization
        self.use_gpu = use_gpu
        self.seed = seed

    def get_graph(self):
        NotImplementedError("Please implement this function in derived classes")