Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
308969cf
提交
308969cf
authored
11月 10, 2022
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
11月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix docstring formatting in fgraph_to_python
上级
d10eafa8
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
utils.py
aesara/link/utils.py
+8
-8
没有找到文件。
aesara/link/utils.py
浏览文件 @
308969cf
...
...
@@ -688,14 +688,14 @@ def fgraph_to_python(
squeeze_output
:
bool
=
False
,
**
kwargs
,
)
->
Callable
:
"""Convert a `
`FunctionGraph`
` into a regular Python function.
"""Convert a `
FunctionGraph
` into a regular Python function.
Parameters
==========
fgraph
The `
`FunctionGraph`
` to convert.
The `
FunctionGraph
` to convert.
op_conversion_fn
A callable used to convert nodes inside `fgraph` based on their `
`Op`
`
A callable used to convert nodes inside `fgraph` based on their `
Op
`
types. It must have the signature
``(op: Op, node: Apply=None, storage_map: Dict[Variable, List[Optional[Any]]]=None, **kwargs)``.
type_conversion_fn
...
...
@@ -703,13 +703,13 @@ def fgraph_to_python(
the signature
``(value: Optional[Any], variable: Variable=None, storage: List[Optional[Any]]=None, **kwargs)``.
order
The `
`order`` argument to ``map_storage`
`.
The `
order` argument to `map_storage
`.
input_storage
The `
`input_storage`` argument to ``map_storage`
`.
The `
input_storage` argument to `map_storage
`.
output_storage
The `
`output_storage`` argument to ``map_storage`
`.
The `
output_storage` argument to `map_storage
`.
storage_map
The `
`storage_map`` argument to ``map_storage`
`.
The `
storage_map` argument to `map_storage
`.
fgraph_name
The name used for the resulting function.
global_env
...
...
@@ -722,7 +722,7 @@ def fgraph_to_python(
A function used to provide names for the objects referenced within the
generated function.
squeeze_output
If the `
`FunctionGraph`
` has only one output and this option is
If the `
FunctionGraph
` has only one output and this option is
``True``, return the single output instead of a tuple with the output.
**kwargs
The remaining keywords are passed to `python_conversion_fn`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论