Skip to main content

一个常用的工具代码包集合

Project description

kevin_toolbox

一个通用的工具代码包集合

环境要求

numpy>=1.19
pytorch>=1.2

安装方法:

pip install kevin-toolbox  --no-dependencies

项目地址 Repo

使用指南 User_Guide

免责声明 Disclaimer

版本更新记录

  • v 1.0.13(2023-06-14)
    • computer_science.algorithm.for_nested_dict_list

      • 添加 copy_() 方法用于复制嵌套字典列表,支持深拷贝(复制结构和叶节点)和浅拷贝(仅复制结构,不新建叶节点)
      • 将 get_leaf_nodes() 修改成 get_nodes(),新增了 level 参数用于支持获取某一层的参数,原来的 get_leaf_nodes(var) 等效于 get_nodes(var,level=-1)
      • 修改 traverse(),增加了 b_traverse_matched_element 参数用于控制,对于匹配上的元素,经过处理后,是否继续遍历该元素的内容。
    • patches.for_test

      • modify check_consistency()
    • computer_science.algorithm.registration

      • 修改了 Registry.add() 中对于参数 b_force 的行为,对于 b_force:

        • 默认为 False,此时当 name 指向的位置上已经有成员或者需要强制修改database结构时,将不进行覆盖而直接跳过,注册失败
        • 当设置为 True,将会强制覆盖

        该改动的目的是避免对已有的成员进行重复的注册更新。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kevin-toolbox-dev-1.0.13.tar.gz (113.2 kB view hashes)

Uploaded Source

Built Distribution

kevin_toolbox_dev-1.0.13-py3-none-any.whl (200.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page