b257a92bc69b3fec80b94e775907f81e4106848f,chainer/serializers/hdf5.py,HDF5Deserializer,__call__,#HDF5Deserializer#Any#Any#,143

Before Change


        if value is None:
            return numpy.asarray(dataset)
        if isinstance(value, chainerx.ndarray):
            value_view = chainerx.to_numpy(value, copy=False)
            dataset.read_direct(value_view)
        elif isinstance(value, numpy.ndarray):
            dataset.read_direct(value)
        elif isinstance(value, cuda.ndarray):

After Change


        if value is None:
            return numpy.asarray(dataset)
        if isinstance(value, chainerx.ndarray):
            value[...] = _chainerx._array_to_chainerx(
                numpy.asarray(dataset), value.device)
        elif isinstance(value, numpy.ndarray):
            dataset.read_direct(value)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainer
Commit Name: b257a92bc69b3fec80b94e775907f81e4106848f
Time: 2019-07-29
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: chainer/serializers/hdf5.py
Class Name: HDF5Deserializer
Method Name: __call__


Project Name: dmlc/dgl
Commit Name: 6367318f455aa8c27b6341c9b98794351dfd168e
Time: 2020-08-17
Author: coin2028@hotmail.com
File Name: examples/pytorch/pinsage/data_utils.py
Class Name:
Method Name: train_test_split_by_time


Project Name: deepchem/deepchem
Commit Name: d62d3a866dcb8f937d6aa5e869c309cee8a784ce
Time: 2016-07-11
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/multitask.py
Class Name: SingletaskToMultitask
Method Name: fit