提交 304169b8 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Remove deprecated aesara.compile.function.Param

上级 cb9b2abe
......@@ -128,7 +128,6 @@ from aesara.compile import (
In,
Mode,
Out,
Param,
ProfileStats,
predefined_linkers,
predefined_modes,
......
from aesara.compile.function.pfunc import Param, pfunc, rebuild_collect_shared
from aesara.compile.function.pfunc import pfunc, rebuild_collect_shared
from aesara.compile.function.types import (
AliasedMemoryError,
Function,
......
......@@ -4,7 +4,6 @@ Provide a simple user friendly API.
"""
import logging
import warnings
from aesara.compile.function.types import UnusedInputError, orig_function
from aesara.compile.io import In, Out
......@@ -267,36 +266,6 @@ def rebuild_collect_shared(
)
class Param(In):
"""Deprecated. Use In instead."""
def __init__(
self,
variable,
default=None,
name=None,
mutable=False,
strict=False,
allow_downcast=None,
implicit=None,
borrow=None,
):
warnings.warn(
"The Param class is deprecated. Replace Param(default=N)" " by In(value=N)",
stacklevel=2,
)
super().__init__(
variable,
name=name,
value=default,
mutable=mutable,
strict=strict,
allow_downcast=allow_downcast,
implicit=implicit,
borrow=borrow,
)
def pfunc(
params,
outputs=None,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论