Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

about norm2d_cx function #147

@WZMIAOMIAO

Description

@WZMIAOMIAO

Hi, In BatchNormalization, there should be four parameters(moving_mean, moving_var, beta, gamma), as far as I know .

but in https://github.com/facebookresearch/pycls/blob/master/pycls/models/blocks.py#L76, here only add two parameters.

def norm2d_cx(cx, w_in):
    """Accumulates complexity of norm2d into cx = (h, w, flops, params, acts)."""
    h, w, flops, params, acts = cx["h"], cx["w"], cx["flops"], cx["params"], cx["acts"]
    params += 2 * w_in
    return {"h": h, "w": w, "flops": flops, "params": params, "acts": acts}

Are there any other considerations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions