67eb9e4c28098d93ac122d65833c20b22b7e86c7,rl_coach/architectures/mxnet_components/architecture.py,MxnetArchitecture,_dummy_model_inputs,#MxnetArchitecture#,84

Before Change


        allowed_inputs["action"] = copy.copy(self.spaces.action)
        allowed_inputs["goal"] = copy.copy(self.spaces.goal)
        embedders = self.model.nets[0].input_embedders
        inputs = tuple(nd.zeros((1,) + tuple(allowed_inputs[emb.embedder_name].shape.tolist())) for emb in embedders)
        return inputs

    def construct_model(self) -> None:

After Change


        :return: tuple of inputs for model forward pass
        
        input_shapes = self._model_input_shapes()
        inputs = tuple(nd.zeros(tuple(shape)) for shape in input_shapes)
        return inputs

    def construct_model(self) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NervanaSystems/coach
Commit Name: 67eb9e4c28098d93ac122d65833c20b22b7e86c7
Time: 2018-11-19
Author: sina.beh@gmail.com
File Name: rl_coach/architectures/mxnet_components/architecture.py
Class Name: MxnetArchitecture
Method Name: _dummy_model_inputs


Project Name: nilearn/nilearn
Commit Name: 96e6140dc8eb21f31224983552064657908ccaeb
Time: 2015-03-05
Author: loic.esteve@ymail.com
File Name: nilearn/plotting/tests/test_img_plotting.py
Class Name:
Method Name: test_plot_connectome


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f2cfa5fb8e73229a1757acbcc94bab13099de439
Time: 2017-06-05
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/parameters.py
Class Name: Parameter
Method Name: __call__