This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
parser
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
add
pull/337/head
wjm
4 years ago
parent
abc79d4e19
commit
150a0d8cc2
2 changed files
with
8 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
parser/func_to_graph/func2graph.py
+7
-0
tests/ut/parser/testcase/onnx_parser_testcase/onnx_model/if.py
+ 1
- 1
parser/func_to_graph/func2graph.py
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/
env
python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------
# Purpose:
+ 7
- 0
tests/ut/parser/testcase/onnx_parser_testcase/onnx_model/if.py
View File
@@ -1,3 +1,10 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#-------------------------------------------------------------------
# Purpose:
# Copyright 2021 Huawei Technologies Co., Ltd. All rights reserved.
#-------------------------------------------------------------------
# Given a bool scalar input cond.
# return constant tensor x if cond is True, otherwise return constant tensor y.
import numpy as np
Write
Preview
Loading…
Cancel
Save