Skip to content

Native Windows video motion capture with ExMR, FlowHMR and GVHMR, contact correction, humanoid retargeting, and FBX/VMD export.

Python
364 B
Raw Blame
"""Small network-layer helpers used by PVA-Net."""

from __future__ import annotations

import torch.nn as nn


def zero_module(module: nn.Module) -> nn.Module:
    """Zero all parameters of a module and return the module."""
    for parameter in module.parameters():
        parameter.detach().zero_()
    return module


__all__ = ["zero_module"]