Skip to content

UserWarning for boltzdesign.py #27

@Maikuraky

Description

@Maikuraky

When running boltzdesign.py, this UserWarning is prompted. Do I need to change it and which version should I change it to?
Thank you for your reply
./BoltzDesign1/boltzdesign/boltzdesign_utils.py:599: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.detach().clone() or sourceTensor.detach().clone().requires_grad_(True), rather than torch.tensor(sourceTensor). return grad * torch.sqrt(torch.tensor(eff_L)) / (gn + 1e-7)

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