d37727ed2e1f8474e2c1ceb1da5719c1b81f4ab8,batchflow/models/tf/deep_galerkin.py,DeepGalerkin,_make_inputs,#DeepGalerkin#Any#Any#,80

Before Change



        // make sure inputs-placeholder of pde"s dimension (x_1, /dots, x_n, t) is created
        config.update({"initial_block/inputs": "points",
                       "inputs": dict(points={"shape": (n_dims, )})})
        placeholders_, tensors_ = super()._make_inputs(names, config)

        // calculate targets-tensor using rhs of pde and created points-tensor

After Change



        n_dims = config.get("common/n_dims")
        tensors_["points"] = tf.split(tensors_["points"], n_dims, axis=1, name="coordinates")
        tensors_["points"] = tf.concat(tensors_["points"], axis=1)

        // calculate targets-tensor using rhs of pde and created points-tensor
        points = getattr(self, "inputs").get("points")
        q = config.get("common/Q")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: analysiscenter/batchflow
Commit Name: d37727ed2e1f8474e2c1ceb1da5719c1b81f4ab8
Time: 2019-03-04
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/deep_galerkin.py
Class Name: DeepGalerkin
Method Name: _make_inputs


Project Name: GPflow/GPflow
Commit Name: dea3e9441a747cabe77297c2a275ffa94b983024
Time: 2016-07-06
Author: mv310@cam.ac.uk
File Name: GPflow/param.py
Class Name: Parameterized
Method Name: get_samples_dict


Project Name: kwgoodman/numerox
Commit Name: f4f853044babbcaea98da946b106fcf84e8ef79b
Time: 2018-04-27
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name:
Method Name: big_staker