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: uqfoundation/mystic
Commit Name: 5aa02316482e48940e1b79423b713337b4911fb7
Time: 2015-10-13
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/svmtools.py
Class Name:
Method Name: KernelMatrix


Project Name: deepfakes/faceswap
Commit Name: 0e0b2faa1a205fe276a7c53bc600fca60b239234
Time: 2019-10-28
Author: vrooman.kyle@gmail.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_face_cnn_dissim