Skip to content

Commit ec2679c

Browse files
committed
pass pre-commit
1 parent 3d4eb1e commit ec2679c

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

python/paddle/v2/dataset/conll05.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import itertools
2525
from common import download
2626

27-
2827
__all__ = ['test, get_dict', 'get_embedding']
2928

3029
DATA_URL = 'http://www.cs.upc.edu/~srlconll/conll05st-tests.tar.gz'

python/paddle/v2/dataset/movielens.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class MovieInfo(object):
4242
"""
4343
Movie id, title and categories information are stored in MovieInfo.
4444
"""
45+
4546
def __init__(self, index, categories, title):
4647
self.index = int(index)
4748
self.categories = categories
@@ -68,6 +69,7 @@ class UserInfo(object):
6869
"""
6970
User id, gender, age, and job information are stored in UserInfo.
7071
"""
72+
7173
def __init__(self, index, gender, age, job_id):
7274
self.index = int(index)
7375
self.is_male = gender == 'M'

python/paddle/v2/inference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Inference(object):
1919
:param parameters: The parameters dictionary.
2020
:type parameters: paddle.v2.parameters.Parameters
2121
"""
22+
2223
def __init__(self, output_layer, parameters):
2324
topo = topology.Topology(output_layer)
2425
gm = api.GradientMachine.createFromConfigProto(

python/paddle/v2/trainer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
__all__ = ['SGD']
1515

1616

17-
1817
def default_event_handler(event):
1918
"""
2019
Default event handler. It will print some log and save mode.

0 commit comments

Comments
 (0)