Can you break your dependency on dm-tree?

未关闭
#1,845 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
python, tensorflow

调研方向

定位 TensorFlow Probability 代码库中对 dm-tree 的唯一一次使用,并将其所需的操作与 jax.tree.map/flatten 以及 issue 中提到的替代方案进行比较。在移除依赖、保留现有行为并允许在 Python 3.13 上安装后,即视为完成。

由索引模型根据 Issue 内容生成。

描述

DM-tree doesn't support Python 3.13, which prevents tensorflow-probability from installing on Python 3.13 and therefore all projects that depend on it.

Moreover, DM-tree appears to be unmaintained since they don't even officially support Python 3.12 (based on their pyproject trove classifiers).

Based on the commit log, it appears to be more-or-less unmaintained.

Is there any way to remove this package as a dependency? It appears you only use it one place and a lot of the functionality is already provided by jax.tree.map/flatten, etc. You may also want to look at Equinox, which is actively maintained. Or just implement the functionality in Python since speed is probably not that important, and not worth the maintenance hassle.

主要语言
Jupyter Notebook
星标
4.4k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tensorflow/probability 的其他 Issue

查看 tensorflow/probability 的全部 Issue

相似的 Issue

更多 Machine Learning Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。