f03ff5dcd9b09c807db6e76a2a821ff6602d26bf,qcengine/programs/torchani.py,TorchANIHarness,compute,#TorchANIHarness#Any#Any#,84

Before Change


        self.found(raise_error=True)
        if parse_version(self.get_version()) < parse_version("0.9"):
            raise ResourceError("QCEngine"s TorchANI wrapper requires version 0.9 or greater.")
        if parse_version(self.get_version()) >= parse_version("2.0"):
            raise ResourceError("QCEngine"s TorchANI adaptor requires lesser than version 2.0.")

        import torch
        import torchani
        import numpy as np

After Change



        // Build model
        method = input_data.model.method
        model = self.get_model(method)

        // Build species
        species = input_data.molecule.symbols
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: MolSSI/QCEngine
Commit Name: f03ff5dcd9b09c807db6e76a2a821ff6602d26bf
Time: 2020-07-05
Author: farhadrgh@users.noreply.github.com
File Name: qcengine/programs/torchani.py
Class Name: TorchANIHarness
Method Name: compute


Project Name: williamFalcon/pytorch-lightning
Commit Name: e982800b81dbc636cc8505eecd47b6fdea02c4dc
Time: 2021-02-16
Author: thomas@grid.ai
File Name: pytorch_lightning/trainer/trainer.py
Class Name: Trainer
Method Name: predict


Project Name: MolSSI/QCEngine
Commit Name: a5ee2e0ea284a9b024721536abb94b7998a9e8ee
Time: 2018-11-13
Author: malorian@me.com
File Name: qcengine/programs/torchani.py
Class Name:
Method Name: run_torchani