-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduces the number of ignored mypy errors (onnx#4495)
* Remove unnecessary import (onnx#4484) * remove unnecessary import Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * black Signed-off-by: xadupre <[email protected]> * black Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * restore old import Signed-off-by: xadupre <[email protected]> Signed-off-by: xadupre <[email protected]> * fix mypy issues Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * fix mypy issues Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * update mypy Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * primary ops to function milestone 1 (onnx#4458) * primary ops to function milestone 1 Signed-off-by: Liqun Fu <[email protected]> * float type Signed-off-by: Liqun Fu <[email protected]> * formatting Signed-off-by: Liqun Fu <[email protected]> * pass backend test Signed-off-by: Liqun Fu <[email protected]> * formatting Signed-off-by: Liqun Fu <[email protected]> * commit Signed-off-by: Liqun Fu <[email protected]> * format Signed-off-by: Liqun Fu <[email protected]> * format Signed-off-by: Liqun Fu <[email protected]> * layernorm Signed-off-by: Liqun Fu <[email protected]> * pass runtime check Signed-off-by: Liqun Fu <[email protected]> * format Signed-off-by: Liqun Fu <[email protected]> * pure function Signed-off-by: Liqun Fu <[email protected]> * format Signed-off-by: Liqun Fu <[email protected]> * reviewer's comments, clean up some Signed-off-by: Liqun Fu <[email protected]> * keep op original version Signed-off-by: Liqun Fu <[email protected]> * fix gtest.function_verify_test Signed-off-by: Liqun Fu <[email protected]> * formatting Signed-off-by: Liqun Fu <[email protected]> * update according to reviewer's comment Signed-off-by: Liqun Fu <[email protected]> Signed-off-by: Liqun Fu <[email protected]> Co-authored-by: G. Ramalingam <[email protected]> Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * remove # type: ignore for imports Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * Use filesystem to load filename to prevent encoding issues on Windows (onnx#4470) * apply filesystem from C+17 to handle encoding on Windows Signed-off-by: Chun-Wei Chen <[email protected]> * add comment in CMakeLists Signed-off-by: Chun-Wei Chen <[email protected]> * precise msg if missing support Signed-off-by: Chun-Wei Chen <[email protected]> * void normalize_sep for two types Signed-off-by: Chun-Wei Chen <[email protected]> * remove typo const Signed-off-by: Chun-Wei Chen <[email protected]> * remove template functions to header Signed-off-by: Chun-Wei Chen <[email protected]> * apply clang-format Signed-off-by: Chun-Wei Chen <[email protected]> * use _wstat Signed-off-by: Chun-Wei Chen <[email protected]> * use define function to refactor code Signed-off-by: Chun-Wei Chen <[email protected]> * add required C++ version in readme Signed-off-by: Chun-Wei Chen <[email protected]> * void char* for std::string in test Signed-off-by: Chun-Wei Chen <[email protected]> * fix clang-format Signed-off-by: Chun-Wei Chen <[email protected]> * move wchar_t and wstring only for Windows Signed-off-by: Chun-Wei Chen <[email protected]> * refactor template Signed-off-by: Chun-Wei Chen <[email protected]> * typo Signed-off-by: Chun-Wei Chen <[email protected]> * use char tempalte in template Signed-off-by: Chun-Wei Chen <[email protected]> * add comments Signed-off-by: Chun-Wei Chen <[email protected]> * add tests for wstring Signed-off-by: Chun-Wei Chen <[email protected]> * typo Signed-off-by: Chun-Wei Chen <[email protected]> * nit comments Signed-off-by: Chun-Wei Chen <[email protected]> * use existing functions from std::filesystem::path Signed-off-by: Chun-Wei Chen <[email protected]> * honor != Signed-off-by: Chun-Wei Chen <[email protected]> * constexpr const char Signed-off-by: Chun-Wei Chen <[email protected]> * checker disallow absolute path in external tensors; remove related tests Signed-off-by: Chun-Wei Chen <[email protected]> * fix format Signed-off-by: Chun-Wei Chen <[email protected]> * add more checker tests Signed-off-by: Chun-Wei Chen <[email protected]> * black Signed-off-by: Chun-Wei Chen <[email protected]> * improve comments Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: xadupre <[email protected]> * remove unnecessary ignore-missing-type Signed-off-by: sdpython <[email protected]> Signed-off-by: xadupre <[email protected]> * remove two type ignore Signed-off-by: xadupre <[email protected]> * lint Signed-off-by: xadupre <[email protected]> * type Signed-off-by: xadupre <[email protected]> Signed-off-by: xadupre <[email protected]> Signed-off-by: sdpython <[email protected]> Signed-off-by: Liqun Fu <[email protected]> Signed-off-by: Chun-Wei Chen <[email protected]> Co-authored-by: sdpython <[email protected]> Co-authored-by: liqun Fu <[email protected]> Co-authored-by: G. Ramalingam <[email protected]> Co-authored-by: Chun-Wei Chen <[email protected]>
- Loading branch information
1 parent
68e7e43
commit 2e91d06
Showing
212 changed files
with
235 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
from typing import Sequence | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
from typing import Sequence | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import numpy as np # type: ignore | ||
import numpy as np | ||
|
||
import onnx | ||
|
||
|
Oops, something went wrong.