af461df627ef660d1a71b6981dedb4e4b504ba9a,txtgen/modules/connectors/connectors.py,StochasticConnector,_build,#StochasticConnector#Any#,256

Before Change


            A Tensor or a (nested) tuple of Tensors of the same structure of
            the decoder state.
        
        modules = ["txtgen.custom", "txtgen.core.distributions"]
        sampler = get_function(self.hparams.distribution, modules)

        if sampler is distributions.sample_gaussian:
            if not isinstance(inputs, tuple):

After Change


        try:
            nest.assert_same_structure(inputs, self._decoder_state_size)
        except (ValueError, TypeError):
            flat_input = nest.flatten(inputs)
            output = nest.pack_sequence_as(
                self._decoder_state_size, flat_input)

        self._add_internal_trainable_variables()
        self._built = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: asyml/texar
Commit Name: af461df627ef660d1a71b6981dedb4e4b504ba9a
Time: 2017-09-25
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name: StochasticConnector
Method Name: _build


Project Name: tensorflow/transform
Commit Name: f2088b93ccffa6cb15e4662f23b6fc53f032f6c4
Time: 2020-07-07
Author: varshaan@google.com
File Name: tensorflow_transform/saved/saved_transform_io_v2.py
Class Name: SavedModelLoader
Method Name: __init__


Project Name: asyml/texar
Commit Name: 136e5a9268a69a226f8dca30c621af45609a5d56
Time: 2017-08-14
Author: zhitinghu@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name:
Method Name: _mlp_transform