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
ngraph-bridge fails to build with the plaidml backend, giving an error when compiling:
ngraph-bridge/build_cmake/ngraph/src/ngraph/runtime/plaidml/plaidml_translate.cpp
ngraph-bridge/build_cmake/ngraph/src/ngraph/runtime/plaidml/plaidml_translate.cpp:105:13: warning:
enumeration value 'PLAIDML_DATA_BFLOAT16' not handled in switch [-Wswitch]
switch (dt)
^
ngraph-bridge/build_cmake/ngraph/src/ngraph/runtime/plaidml/plaidml_translate.cpp:105:13: note:
add missing switch cases
switch (dt)
^
ngraph-bridge/build_cmake/ngraph/src/ngraph/runtime/plaidml/plaidml_translate.cpp:124:1: error:
control may reach end of non-void function [-Werror,-Wreturn-type]
I edited ngraph/runtime/plaidml/plaidml_translate.cpp and added under switch (dt):
case PLAIDML_DATA_BFLOAT16: return "as_bfloat16(" + tensor_name + ", 16)";
It then built successfully.
The text was updated successfully, but these errors were encountered:
ngraph-bridge fails to build with the plaidml backend, giving an error when compiling:
ngraph-bridge/build_cmake/ngraph/src/ngraph/runtime/plaidml/plaidml_translate.cpp
I edited ngraph/runtime/plaidml/plaidml_translate.cpp and added under switch (dt):
case PLAIDML_DATA_BFLOAT16: return "as_bfloat16(" + tensor_name + ", 16)";
It then built successfully.
The text was updated successfully, but these errors were encountered: