Skip to content

🐛[BUG]: Unable to use torch.where expression when constructing PDEs. Workaround is to use Heaviside. #277

@AAKHASH17

Description

@AAKHASH17

Version

2.3.0

On which installation method(s) does this occur?

Pip

Describe the issue

Hi Nvidia - Physicsnemo-Sym Developers,
I'm unable to use the Piecewise sympy expression to invoke the torch.where functionality when constructing the PDEs. As an alternative I found that using the Heaviside works but the usage of torch.where is required when having conditional evaluation of tensor operations. Can someone please help me with this?

Thanks

Minimum reproducible example

Relevant log output

Environment details

Other/Misc.

No response

Metadata

Metadata

Assignees

Labels

? - Needs TriageNeed team to review and classifybugSomething isn't workingexternalIssues/PR filed by people outside the core team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions