ae1218d1009c3a0e112bbdfb7bf5ea5cca402d83,tensorlayer/layers/embedding.py,OneHot,__init__,#OneHot#Any#Any#Any#Any#Any#Any#,49

Before Change


        self.off_value = off_value
        self.axis = axis
        self.dtype = dtype
        logging.info("OneHotInput  %s: %s" % (self.name, str(inputs.shape.as_list())))

        if self.depth is None:
            raise RuntimeError(self.__class__.__name__ + ": depth == None the number of output units is undefined")

After Change



    def __init__(self, depth=None, on_value=None, off_value=None, axis=None, dtype=None, name=None):  //"input"):

        super(OneHot, self).__init__(name)
        self.depth = depth
        self.on_value = on_value
        self.off_value = off_value
        self.axis = axis
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: ae1218d1009c3a0e112bbdfb7bf5ea5cca402d83
Time: 2019-02-23
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/embedding.py
Class Name: OneHot
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 4330d56eb07c9eabb7bd1a8b5fba461f9933412a
Time: 2018-06-04
Author: ol.gure@gmail.com
File Name: deeppavlov/vocabs/wiki_sqlite.py
Class Name: WikiSQLiteVocab
Method Name: __init__


Project Name: keras-team/keras
Commit Name: a637960fab61b66848a36e6a5caf0204c155af01
Time: 2018-05-01
Author: francois.chollet@gmail.com
File Name: keras/engine/sequential.py
Class Name: Sequential
Method Name: __init__