Immutable setindex on Tangent

未关闭
#563 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia
领域
backend

调研方向

找到 Tangent 和 rand_tangent 的定义,然后检查 tuples 和 named tuples 是如何提供 immutable setindex 的。确定用于构造修改后的 Tangent 的 setindex 预期行为,并添加有针对性的测试以展示生成的 tangent 值;当该行为已被覆盖且与现有 immutable API 一致时,即表示完成。

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

描述

Should Base.setindex be defined on Tangent? It could be handy to construct specific tangents, for example, by modifying the output of rand_tangent.

Base has setindex (no bang) for tuples and named tuples. Arguably for the latter it could be a Base.setproperty behaving similarly but it's uncommon enough to keep a single function.

主要语言
Julia
星标
267
派生
66
平均合并
1 天 1 小时
30 天内合并 PR
9

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

JuliaDiff/ChainRulesCore.jl 的其他 Issue

查看 JuliaDiff/ChainRulesCore.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

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