tvm_book.utils#

Classes#

Bunch

dict() -> new empty dictionary

Module Contents#

class tvm_book.utils.Bunch(*args, **kwargs)[源代码]#

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

_convert_nested_dicts()[源代码]#
merge(other)[源代码]#

提供递归合并功能

__dict__[源代码]#