tvm_ffi.Map#
- class tvm_ffi.Map(input_dict)[source]#
-
Map container.
tvm_ffi.convert()
will map python dict to this class.- Parameters:
input_dict (Mapping[K, V]) – The dictionary of values to be stored in the map.
See also
Examples
import tvm_ffi amap = tvm_ffi.convert({"a": 1, "b": 2}) assert isinstance(amap, tvm_ffi.Map) assert len(amap) == 2 assert amap["a"] == 1 assert amap["b"] == 2
- __init__(input_dict)[source]#
Construct a Map from a Python mapping.
- Parameters:
input_dict (Mapping[K, V])
- Return type:
None
Methods