• Adam Procter's avatar
    Allow boolean comparisons; update element::Type::operator== to also compare m_cname (#214) · 7f9b6b84
    Adam Procter authored
    This adds support for > < >= <= on bool, which by the type checker's standards should have been allowed anyway.
    
    Also, this bug had presenting in a different way from expected (should have thrown "unhandled element type" from external_function, instead bonked because it incorrectly dispatched on int8_t). This was due to element::Type::operator== comparing only size, signedness, and floatiness, meaning that char and signed char (aka int8_t) look the same. Fixed by adding a test for m_cname equality.
    7f9b6b84
Name
Last commit
Last update
..
util Loading commit data...
CMakeLists.txt Loading commit data...
build_graph.cpp Loading commit data...
eigen.cpp Loading commit data...
execute.cpp Loading commit data...
input_output_assign.cpp Loading commit data...
main.cpp Loading commit data...
mkldnn.cpp Loading commit data...
ngraph.cpp Loading commit data...
op.cpp Loading commit data...
pass_liveness.cpp Loading commit data...
pass_manager.cpp Loading commit data...
pass_memory_layout.cpp Loading commit data...
shape.cpp Loading commit data...
tensor.cpp Loading commit data...
topological_sort.cpp Loading commit data...
type_prop.cpp Loading commit data...
util.cpp Loading commit data...
uuid.cpp Loading commit data...