Skip to content

Conversation

@kuke
Copy link
Collaborator

@kuke kuke commented Feb 5, 2018

Resolve #622

@kuke kuke changed the title Add the support of profiling and multi-GPUs running [WIP]Add the support of profiling and multi-GPUs running Feb 5, 2018
@kuke kuke added the DeepASR label Feb 5, 2018
@kuke kuke mentioned this pull request Feb 5, 2018
3 tasks
zhxfl
zhxfl previously approved these changes Feb 6, 2018
@kuke kuke changed the title [WIP]Add the support of profiling and multi-GPUs running Add the support of profiling and multi-GPUs running Feb 6, 2018
@kuke kuke requested a review from pkuyym February 6, 2018 12:05
@kuke kuke dismissed zhxfl’s stale review February 6, 2018 12:06

Updated after approved

trans_splice.TransSplice()
]

res_feature = fluid.LoDTensor()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please think a better name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

test_data_reader.batch_iterator(args.batch_size,
args.minimum_batch_size)):
# load_data
(bat_feature, bat_label, lod) = batch_data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator Author

@kuke kuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All done, thx

trans_splice.TransSplice()
]

res_feature = fluid.LoDTensor()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

test_data_reader.batch_iterator(args.batch_size,
args.minimum_batch_size)):
# load_data
(bat_feature, bat_label, lod) = batch_data
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@zhxfl
Copy link
Member

zhxfl commented Feb 7, 2018

LGTM

stacked_num,
parallel=False,
is_train=True,
class_num=1749):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not give a default value for class_num

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

def _net_conf(feature, label):
seq_conv1 = fluid.layers.sequence_conv(
input=feature,
num_filters=1024,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make this configurable later, just mark here.

size=class_num,
act='softmax')

cost = fluid.layers.cross_entropy(input=prediction, label=label)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If is_traing==False, cost is unnecessary, since there maybe no label.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cost and acc will be pruned when saving inference model

@pkuyym
Copy link
Contributor

pkuyym commented Feb 7, 2018

Please consider reorganize the directory structure, for example:

model_utils/model.py train.py utils/profile.py test.py 
Copy link
Collaborator Author

@kuke kuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thx

stacked_num,
parallel=False,
is_train=True,
class_num=1749):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

size=class_num,
act='softmax')

cost = fluid.layers.cross_entropy(input=prediction, label=label)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cost and acc will be pruned when saving inference model

Copy link
Contributor

@pkuyym pkuyym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kuke kuke merged commit 2738ca1 into PaddlePaddle:develop Feb 7, 2018
@kuke kuke changed the title Add the support of profiling and multi-GPUs running Add the support of profiling and multi-GPU running Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants