2f04a58fec624089b3a4a178d05b1f73640de1c1,texar/tf/modules/embedders/embedder_base.py,EmbedderBase,_init_parameterized_embedding,#EmbedderBase#,48

Before Change



        self._num_embeds = self._embedding.get_shape().as_list()[0]

        self._dim = self._embedding.get_shape().as_list()[1:]
        self._dim_rank = len(self._dim)
        if self._dim_rank == 1:
            self._dim = self._dim[0]

After Change



        self._num_embeds = shape_list(self._embedding)[0]

        self._dim = shape_list(self._embedding)[1:]
        self._dim_rank = len(self._dim)
        if self._dim_rank == 1:
            self._dim = self._dim[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: asyml/texar
Commit Name: 2f04a58fec624089b3a4a178d05b1f73640de1c1
Time: 2019-10-21
Author: pengzhi.gao@petuum.com
File Name: texar/tf/modules/embedders/embedder_base.py
Class Name: EmbedderBase
Method Name: _init_parameterized_embedding


Project Name: asyml/texar
Commit Name: 9ca23a07914565c40d779def5376ac685043adca
Time: 2018-04-03
Author: shore@pku.edu.cn
File Name: texar/modules/decoders/transformer_decoders.py
Class Name: TransformerDecoder
Method Name: __init__