Skip to content

How to avoid "self.current_input_max = F.max(F.abs(x), axis=(1, 2, 3)).mean().asscalar()" to be a node in graph ? #1

@yang2640

Description

@yang2640

"self.current_input_max = F.max(F.abs(x), axis=(1, 2, 3)).mean().asscalar()" inside "def _conv2d_forward", this will create symbol node, and should cause error because asscalar() is not supported in symbol.

How to avoid "self.current_input_max = F.max(F.abs(x), axis=(1, 2, 3)).mean().asscalar()" to be a node in graph ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions