megnet icon indicating copy to clipboard operation
megnet copied to clipboard

code in pytorch?

Open kdmsit opened this issue 2 years ago • 2 comments

Hello,

Is there any version of this code available in PyTorch? I am not much comfortable with TensorFlow, so if I get a torch version it would have been really helpful.

kdmsit avatar Mar 01 '22 11:03 kdmsit

Most of the API does not require you to know Tensorflow or Pytorch unless you want to make internal changes. Unfortunately, there are too many ML backends out there and we cannot spend our effort supporting different backends.

That said, @chc273 it is my understanding that MLPs are mainly the part that are implemented in TF? If so, can we just isolate that part and provide the option for people to supply alternative implementations of the MLPs in other frameworks like Pytorch or others?

shyuep avatar Mar 01 '22 14:03 shyuep

@shyuep all the neural network codes are in tensorflow. It will need complete rewrite of all essential part to work with pytorch.

I do see that there are other implementations of megnet in different frameworks. For example, you can find a pytorch version here

https://github.com/vxfung/MatDeepLearn/blob/main/matdeeplearn/models/megnet.py

megnet was also implemented in chainer chemistry.

chc273 avatar Mar 02 '22 01:03 chc273

This is resolved with the new matgl code base.

shyuep avatar Mar 24 '23 14:03 shyuep