Skip to content

help! RuntimeError: result type Float can't be cast to the desired output type Long #28

@asdjklfgh

Description

@asdjklfgh

File "D:\AP\Anaconda\ANaconda\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "D:\AP\Anaconda\ANaconda\lib\site-packages\torch\nn\modules\loss.py", line 713, in forward
return F.binary_cross_entropy_with_logits(input, target,
File "D:\AP\Anaconda\ANaconda\lib\site-packages\torch\nn\functional.py", line 3132, in binary_cross_entropy_with_logits
return torch.binary_cross_entropy_with_logits(input, target, weight, pos_weight, reduction_enum)
RuntimeError: result type Float can't be cast to the desired output type Long

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