You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
@zhanghang1989 this does not work because valid_label_map.size is used. hybrid_forward doesn't support using shape information if the block is to be hybridized.
Although we can implement this using existing operators, but current implementation is not efficient and very memory consuming. See the code:
When the channels/number of classes is very large, the
valid_label_map
will be huge. Please let me know if there is better solution or someone could implement it using backend like PyTorch does (https://pytorch.org/docs/stable/nn.html?highlight=crossentropyloss#torch.nn.CrossEntropyLoss)?The text was updated successfully, but these errors were encountered: