event.py 283 字节
Newer Older
Y
Yu Yang 已提交
1 2 3
"""
All training events.
"""
Y
Yu Yang 已提交
4 5 6 7 8 9 10 11 12 13 14 15
__all__ = ['EndIteration']


class EndIteration(object):
    """
    Event On One Batch Training Complete.
    """

    def __init__(self, pass_id, batch_id, cost):
        self.pass_id = pass_id
        self.batch_id = batch_id
        self.cost = cost