Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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