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

Error showing up on BCE Criterion while training #3

Open
abhinavj98 opened this issue Aug 18, 2020 · 2 comments
Open

Error showing up on BCE Criterion while training #3

abhinavj98 opened this issue Aug 18, 2020 · 2 comments

Comments

@abhinavj98
Copy link

Hey,
While training with the data you provided this error randomly shows up

/tmp/luarocks_cunn-scm-1-6757/cunn/lib/THCUNN/BCECriterion.cu:30: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust::detail::tuple_of_iterator_references<thrust::device_reference, thrust::device_reference, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion input >= 0. && input <= 1. failed.
./tmp/luarocks_cunn-scm-1-6757/cunn/lib/THCUNN/BCECriterion.cu:30: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust::detail::tuple_of_iterator_references<thrust::device_reference, thrust::device_reference, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float]: block: [0,0,0], thread: [1,0,0] Assertion input >= 0. && input <= 1. failed.
.
.
.
/tmp/luarocks_cunn-scm-1-6757/cunn/lib/THCUNN/BCECriterion.cu:30: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust::detail::tuple_of_iterator_references<thrust::device_reference, thrust::device_reference, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float]: block: [0,0,0], thread: [255,0,0] Assertion input >= 0. && input <= 1. failed.

THCudaCheckWarn FAIL file=/tmp/luarocks_cutorch-scm-1-6181/cutorch/lib/THC/THCCachingHostAllocator.cpp line=211 error=59 : device-side assert triggered
THCudaCheckWarn FAIL file=/tmp/luarocks_cutorch-scm-1-6181/cutorch/lib/THC/THCCachingHostAllocator.cpp line=211 error=59 : device-side assert triggered

Is there any fix for this?

Thanks,
Abhinav

@fiftywu
Copy link

fiftywu commented Sep 23, 2020

The same Question 🙂

@abhinavj98
Copy link
Author

The same Question 🙂

Replacing BCECriterion with WeightedBCECriterion on line 339 which is defined in criterion.lua solves this issue

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