在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:deepmind/tree开源软件地址:https://github.com/deepmind/tree开源编程语言:Python 73.3%开源软件介绍:Tree
>>> import tree
>>> structure = [[1], [[[2, 3]]], [4]]
>>> tree.flatten(structure)
[1, 2, 3, 4]
>>> tree.map_structure(lambda v: v**2, structure)
[[1], [[[4, 9]]], [16]]
InstallationFrom PyPI: $ pip install dm-tree Directly from github using pip: $ pip install git+git://github.com/deepmind/tree.git Build from source: $ python setup.py install SupportIf you are having issues, please let us know by filing an issue on our issue tracker. LicenseThe project is licensed under the Apache 2.0 license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论