'mxnet.base.MXNetError: Error in operator hybridsequential0_logisticregressor0__plus0: [17:30:55]

What is the source of this error message when running a python script on visual studio code on a windows 10 host where CPU version of MXNET is installed using pip?

I am applying the following repository for my project (MXNET applications)

  File "c:\Users\username\Desktop\SBP Project\PythonTool\calculator\graph-analyzer\graph_analyzer.py", line 127, in <module>
    main()
  File "c:\Users\username\Desktop\SBP Project\PythonTool\calculator\graph-analyzer\graph_analyzer.py", line 123, in main
    gcn_builder2(network_graph, relabeled_graph, labels_i)[1]
  File "c:\Users\username\Desktop\SBP Project\PythonTool\calculator\graph-analyzer\gcn_builder_module.py", 
line 418, in gcn_builder2
    model_2(x_2)
  File "C:\ProgramData\Anaconda3\envs\tf\lib\site-packages\mxnet\gluon\block.py", line 548, in __call__
    out = self.forward(*args)
  File "C:\ProgramData\Anaconda3\envs\tf\lib\site-packages\mxnet\gluon\block.py", line 915, in forward
    return self._call_cached_op(x, *args)
  File "C:\ProgramData\Anaconda3\envs\tf\lib\site-packages\mxnet\gluon\block.py", line 821, in _call_cached_op
    out = self._cached_op(*cargs)
  File "C:\ProgramData\Anaconda3\envs\tf\lib\site-packages\mxnet\_ctypes\ndarray.py", line 144, in __call__
    check_call(_LIB.MXInvokeCachedOpEx(
  File "C:\ProgramData\Anaconda3\envs\tf\lib\site-packages\mxnet\base.py", line 253, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: Error in operator hybridsequential0_logisticregressor0__plus0: [17:30:55] c:\jenkins\workspace\mxnet-tag\mxnet\src\operator\tensor\../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node hybridsequential0_logisticregressor0__plus0 at 1-th input: expected [62,1], got [34,1]
ERROR conda.cli.main_run:execute(41): `conda run python c:/Users/username/Desktop/SBP Project/PythonTool/calculator/graph-analyzer/graph_analyzer.py` failed. (See above for error)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source