c16df44669828b8566c7bfb87d385c73cd74e460,catalyst/dl/runner/core.py,Runner,trace,#,296

Before Change


            output: Path = logdir / "trace"
            output.mkdir(exist_ok=True, parents=True)

            out_model = str(output / filename)

            torch.jit.save(result, out_model)

        return result

After Change


            )

        // Restore previous state of the model
        getattr(self.model, "train" if _is_training else "eval")()
        utils.set_requires_grad(self.model, _requires_grad)
        self.model.to(_device)

        return traced_model
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Scitator/catalyst
Commit Name: c16df44669828b8566c7bfb87d385c73cd74e460
Time: 2020-05-23
Author: smivvla@gmail.com
File Name: catalyst/dl/runner/core.py
Class Name: Runner
Method Name: trace


Project Name: albermax/innvestigate
Commit Name: 6817828e1cd915a99cbe46fc45829627dac991fe
Time: 2018-03-06
Author: ¨work.alber.maximilian@gmail.com¨
File Name: examples/all_methods.py
Class Name:
Method Name:


Project Name: geekcomputers/Python
Commit Name: 8973e7b7acda4145d88621568f4e0a8751e24baa
Time: 2016-07-18
Author: myownway224533@gmail.com
File Name: osinfo.py
Class Name:
Method Name: