I got this “runtime error: load of value 190, which is not a valid value for type ‘bool’” during loss computation with MarginRankingLoss and HingeEmbeddingLoss. It was working yesterday actually, but started to get these errors today.
The full stack trace is here,
pytorch/pytorch/torch/csrc/utils/python_arg_parser.h:292:51: runtime error: load of value 190, which is not a valid value for type 'bool'
    #0 0x7fcaf91a69bd in torch::PythonArgs::toBool(int) pytorch/pytorch/torch/csrc/utils/python_arg_parser.h:292
    #1 0x7fcaf9288dfa in torch::autograd::THPVariable_margin_ranking_loss(_object*, _object*, _object*) pytorch/pytorch/torch/csrc/autograd/generated/python_torch_functions.cpp:2988
    #2 0x7fcb13b481f3 in _PyCFunction_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/methodobject.c:231
    #3 0x7fcb13ba14ec in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5011
    #4 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #5 0x7fcb13ba1bc4 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #6 0x7fcb13ba1bc4 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #7 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #8 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #9 0x7fcb13ba3049 in _PyFunction_FastCall /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5093
    #10 0x7fcb13ba3049 in _PyFunction_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5195
    #11 0x7fcb13b0e46d in _PyObject_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2310
    #12 0x7fcb13b0ee01 in _PyObject_Call_Prepend /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2373
    #13 0x7fcb13b0e81b in PyObject_Call /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2261
    #14 0x7fcb13b9a4c0 in do_call_core /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5280
    #15 0x7fcb13b9a4c0 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3578
    #16 0x7fcb13ba3315 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #17 0x7fcb13ba3315 in _PyFunction_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5244
    #18 0x7fcb13b0e46d in _PyObject_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2310
    #19 0x7fcb13b0ee01 in _PyObject_Call_Prepend /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2373
    #20 0x7fcb13b0e81b in PyObject_Call /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2261
    #21 0x7fcb13b5c5e8 in slot_tp_call /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/typeobject.c:6194
    #22 0x7fcb13b0e81b in PyObject_Call /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/abstract.c:2261
    #23 0x7fcb13b9a4c0 in do_call_core /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5280
    #24 0x7fcb13b9a4c0 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3578
    #25 0x7fcb13ba1bc4 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #26 0x7fcb13ba1bc4 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #27 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #28 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #29 0x7fcb13ba1bc4 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #30 0x7fcb13ba1bc4 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #31 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #32 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #33 0x7fcb13ba18f9 in _PyFunction_FastCall /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5093
    #34 0x7fcb13ba18f9 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5128
    #35 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #36 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #37 0x7fcb13b97892 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #38 0x7fcb13b97892 in PyEval_EvalCodeEx /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4361
    #39 0x7fcb13b9761b in PyEval_EvalCode /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:878
    #40 0x7fcb13b95a88 in builtin_exec_impl /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/bltinmodule.c:983
    #41 0x7fcb13b95a88 in builtin_exec /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/clinic/bltinmodule.c.h:283
    #42 0x7fcb13b48174 in _PyCFunction_FastCallDict /home/engshare/third-party2/python/3.6/src/cpython-3.6/Objects/methodobject.c:234
    #43 0x7fcb13ba14ec in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5011
    #44 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #45 0x7fcb13ba1bc4 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #46 0x7fcb13ba1bc4 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #47 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #48 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #49 0x7fcb13ba1bc4 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #50 0x7fcb13ba1bc4 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #51 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #52 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #53 0x7fcb13ba2026 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #54 0x7fcb13ba2026 in fast_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5152
    #55 0x7fcb13ba15d2 in call_function /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:5032
    #56 0x7fcb13b98784 in _PyEval_EvalFrameDefault /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:3509
    #57 0x7fcb13b97892 in _PyEval_EvalCodeWithName /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4340
    #58 0x7fcb13b97892 in PyEval_EvalCodeEx /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:4361
    #59 0x7fcb13b9761b in PyEval_EvalCode /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/ceval.c:878
    #60 0x7fcb13c23198 in run_mod /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/pythonrun.c:980
    #61 0x7fcb13c2313c in PyRun_StringFlags /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/pythonrun.c:904
    #62 0x7fcb13c23091 in PyRun_SimpleStringFlags /home/engshare/third-party2/python/3.6/src/cpython-3.6/Python/pythonrun.c:421
    #63 0x7fcb13c2a06c in run_command /home/engshare/third-party2/python/3.6/src/cpython-3.6/Modules/main.c:299
    #64 0x7fcb13c2a06c in Py_Main /home/engshare/third-party2/python/3.6/src/cpython-3.6/Modules/main.c:747
    #65 0x400afa in main (/usr/local/fbcode/gcc-5-glibc-2.23/bin/python3.6+0x400afa)
    #66 0x7fcb12d3c857 in __libc_start_main /home/engshare/third-party2/glibc/2.23/src/glibc-2.23/csu/../csu/libc-start.c:289
    #67 0x400c38 in _start (/usr/local/fbcode/gcc-5-glibc-2.23/bin/python3.6+0x400c38)

Does anyone happen to know why?