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

Before Change


        
        allowed_inputs = copy.copy(self.spaces.state.sub_spaces)
        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

After Change


        of the model weights and for printing the summary
        :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: 4

Non-data size: 6

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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0eba1df6d5f9922674e9a705f09995d57824e5cd
Time: 2021-02-26
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_benchmarks/omb_benchmark.py
Class Name:
Method Name: _GetBenchmarks


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 54542222784567071f368d9e07900621afb15b8d
Time: 2017-05-26
Author: eu@caiocarrara.com.br
File Name: jarbas/api/tests/test_reimbursement_view.py
Class Name: TestListApi
Method Name: test_more_than_one_document_query


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0d646d103590b367c28d1e9588edca610b361e1f
Time: 2016-02-12
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: AddMetadata