Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raises warning (pytorch 1.6), #2

Open
saruarlive opened this issue Jan 15, 2021 · 1 comment
Open

Raises warning (pytorch 1.6), #2

saruarlive opened this issue Jan 15, 2021 · 1 comment

Comments

@saruarlive
Copy link

saruarlive commented Jan 15, 2021

Dear @migonch ,

The CRF class raises warning!
Could you kindly provide guidance on how to fix that? I modified the code a little, but still raises the warning.
UserWarning: Mixed memory format inputs detected while calling the operator. The operator will output contiguous tensor even if some of the inputs are in channels_last format. (Triggered internally at /opt/conda/conda-bld/pytorch_1595629427478/work/aten/src/ATen/native/TensorIterator.cpp:918.)

@mishgon
Copy link
Owner

mishgon commented Jan 17, 2021

Dear @saruarlive ,

unfortunately, this implementation of CRF layer does not support the channels_last format of input tensor. Make sure that input tensor has size (N, C, H, W, ...), where N is batch size, C is number of segmentation classes, and (H, W, ...) is spatial size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants