torch-fenics:PyTorch-FEniCS界面

时间:2021-05-02 19:39:33
【文件属性】:
文件名称:torch-fenics:PyTorch-FEniCS界面
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-02 19:39:33
torch pytorch fenics dolfin Python 火炬手 使用torch-fenics软件包,可以将定义的模型用作模块。 安装 并运行 pip install git+https://github.com/barkm/torch-fenics.git@master 例如,可以使用干净安装软件包及其依赖项 conda create --name torch-fenics conda activate torch-fenics conda install -c conda-forge fenics pip install git+https://github.com/barkm/torch-fenics.git@master 细节 FEniCS对象使用其对应的矢量表示形式在PyTorch中表示。 对于有限元函数,这与它们的系数表示相对应。 该软件包依赖 ,以使FEniCS模块与PyTorch中的自动区分框架兼容 例子 例如, torch-
【文件预览】:
torch-fenics-master
----examples()
--------poisson.py(2KB)
----LICENSE(34KB)
----environment.yml(97B)
----setup.py(415B)
----README.md(4KB)
----torch_fenics()
--------torch_fenics.py(8KB)
--------__init__.py(183B)
--------numpy_fenics.py(2KB)
----tests()
--------test_torch_fenics.py(5KB)

网友评论