GetAttr - Does not return Empty Map

GetAttr description mentions that if nothing is registered, an empty OpMap will be returned.

However, the code currently fails with a LOG(FATAL)

Wanted to check which one is correct.

@tqchen

Background - I need to put a check in Legalize, if a string has been registered. We register many ops via Python Packed Funcs. But, CC tests don’t go through python path, leading to cases where the legalize string is not registered. More specifically, I need HasAttr functionality (I prototyped it in https://github.com/dmlc/tvm/pull/3971/files), but if GetAttr can return empty map, I can work with that as well.