-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LiBai MT5 不支持的op #87
Comments
我正在拿这里的需求练手,为防止和其它人的工作重复了,我把已经开 PR 的列在这里:
|
fill_ 是 inplace 算子吗,在 job 层是怎么表示的呢 |
看了下,是 inplace 算子
这个问题我还不懂…… 有请其它路过的人帮忙参与下 |
输出一下job看一下吧。 |
我搭了个简单例子: import tempfile
import oneflow as flow
from oneflow_onnx.oneflow2onnx.util import convert_to_onnx_and_check
class MathOps(flow.nn.Module):
def __init__(self) -> None:
super(MathOps, self).__init__()
def forward(self, x: flow.Tensor) -> flow.Tensor:
x.fill_(10.0)
return x
math_ops = MathOps()
class MathOpGraph(flow.nn.Graph):
def __init__(self):
super().__init__()
self.m = math_ops
def build(self, x):
out = self.m(x)
return out
def test_math_ops():
math_ops_graph = MathOpGraph()
math_ops_graph._compile(flow.randn(1, 3, 224, 224))
convert_to_onnx_and_check(math_ops_graph, onnx_model_path="/tmp")
test_math_ops() 输出的 job:
|
@CPFLAME t5的op都支持了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: