Skip to content

Commit ff210a2

Browse files
author
Yibing Liu
committed
Fix several problems in travis-ci
1 parent b038bdc commit ff210a2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.copyright.hook

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def main(argv=None):
9999

100100
retv = 0
101101
for filename in args.filenames:
102+
if(os.path.basename(filename) == "__init__.py"): continue
102103
fd = io.open(filename, encoding="utf-8")
103104
first_line = fd.readline()
104105
second_line = fd.readline()

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
protobuf==3.5.1
22
pytest-runner
3-
onnx==1.0
3+
onnx==1.1.1

setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# install python dependencies
44
if [ -f "requirements.txt" ]; then
5+
apt-get install -y protobuf-compiler libprotoc-dev
56
pip install -r requirements.txt
67
fi
78
if [ $? != 0 ]; then

variables.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
def paddle_variable_to_onnx_tensor(paddle_var_name, block):
2020
# TODO(varunarora): Need to do this only in the case of VarType.LOD_TENSOR.
2121
paddle_var = block.var(paddle_var_name)
22-
return helper.make_tensor_value_info(
23-
paddle_var_name, PADDLE_TO_ONNX_DTYPE[paddle_var.dtype],
24-
paddle_var.shape)
22+
return helper.make_tensor_value_info(paddle_var_name,
23+
PADDLE_TO_ONNX_DTYPE[paddle_var.dtype],
24+
paddle_var.shape)
2525

2626

2727
PADDLE_TO_ONNX_DTYPE = {

0 commit comments

Comments
 (0)