You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After constructing the model using the following code,
#./model/run.pyfromnequipimportmodel_from_config, default_configcfg=default_config()
cfg.scale=1.0cfg.shift=0.0model=model_from_config(cfg)
print(model) #sucessfully constructed the model
How can we get the training data, which has the following format?
# model name: NequiPEneryModel in ./model/nequip.py# model inputgraph=jraph.GraphsTuple(
nodes=nodes,
edges=edges,
receivers=receivers,
senders=senders,
globals=globals_,
n_node=n_node,
n_edge=n_edge,
)
# model outputpartial=functools.partialtree_map=partial(
jax.tree_map, is_leaf=lambdax: isinstance(x, e3nn.IrrepsArray)
)
global_output=tree_map(
lambdan: jraph.segment_sum(n, node_gr_idx, n_graph), atomic_output
)
# global_output is the output# in one line, the output isglobal_output=jax.tree_map(
is_leaf=lambdax: isinstance(x, e3nn.IrrepsArray),
lambdan: jraph.segment_sum(n, node_gr_idx, n_graph),
atomic_output
)
# where atomic_output is the output of a neural network
After constructing the model using the following code,
How can we get the training data, which has the following format?
Originally posted by @WeileiZeng in #28 (comment)
The text was updated successfully, but these errors were encountered: