db8880132ac2ccd1bd10973c7cea9dde884a3093,tensorboard/backend/event_processing/event_file_loader.py,RawEventFileLoader,Load,#RawEventFileLoader#,52

Before Change


        logger.debug("Loading events from %s", self._file_path)

        // getargspec is deprecated in Python3, use getfullargspec if it exists.
        try:
            getargspec = inspect.getfullargspec
        except AttributeError:
            getargspec = inspect.getargspec  // pylint: disable=deprecated-method

        // GetNext() expects a status argument on TF <= 1.7.
        get_next_args = getargspec(self._reader.GetNext).args
        // First argument is self
        legacy_get_next = len(get_next_args) > 1

After Change


        logger.debug("Loading events from %s", self._file_path)
        while True:
            try:
                yield next(self._iterator)
            except StopIteration:
                logger.debug("End of file in %s", self._file_path)
                break
            except tf.errors.DataLossError as e:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tensorboard
Commit Name: db8880132ac2ccd1bd10973c7cea9dde884a3093
Time: 2020-01-28
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/event_processing/event_file_loader.py
Class Name: RawEventFileLoader
Method Name: Load


Project Name: chainer/chainercv
Commit Name: babf7c9f50282143ab8efee96a587bf5cb74123f
Time: 2017-06-01
Author: yuyuniitani@gmail.com
File Name: chainercv/evaluations/eval_semantic_segmentation_iou.py
Class Name:
Method Name: calc_semantic_segmentation_confusion


Project Name: EpistasisLab/tpot
Commit Name: ef7e473d04352059c33af7bef48321e5dec7b3da
Time: 2015-11-13
Author: rso@randalolson.com
File Name: setup.py
Class Name:
Method Name: calculate_version