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]:An activation function problem occurred when calling DGMArch in modulus-sym #213

Closed

Description

@YouqiongLiu

Version

modulus:0.6.0, modulus-sym:1.5.0

On which installation method(s) does this occur?

Pip

Describe the issue

RuntimeError:
function cannot be used as a value:
File "/home/envs/lib/python3.10/site-packages/modulus/models/layers/dgm_layers.py", line 90
x = self.linear_1(input_1) + self.linear_2(input_2) + self.bias

    if self.activation_fn is not None:
       ~~~~~~~~~~~~~~~~~~ <--- HERE
        if self.activation_par is None:
            x = self.activation_fn(x)

Minimum reproducible example

Relevant log output

Environment details

Other/Misc.

No response

Activity

  1. ktangsali commented on Apr 29, 2026

    @ktangsali
    Collaborator

    Closing as part of the archival of this repository. The key components have been upstreamed to NVIDIA/physicsnemo. Please refer to the v2.0 Migration Guide and feel free to re-open your issue there if it is still relevant.

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions