Hi all.
I’m trying to create a typed dict to be used in JITClass. The type of each value for each key should be a Set of int values.
set_nb_int = nb_Set(nb.types.int64, reflected=False)
nb_set_dict = nb.types.DictType(nb.types.int64, set_nb_int)
@jitclass(
{
"vertex2nei": nb_DictType(nb_int64, list_nb_int)
}
)
class Neighbors:
def __init__(self):
self.vertex2nei = nb_Dict.empty(nb_int64, nb_set_dict)
def something(self):
....
The above code produces the following error
E numba.core.errors.TypingError: set(int64) as value is forbidden
How can I do this?