ff365f8ce044ef9d4af82c5044746b2f31a529c9,ludwig/collect.py,,save_tensors,#Any#Any#,153
Before Change
def save_tensors(collected_tensors, experiment_dir_name):
for tensor_name, tensor_values in collected_tensors.items():
np_filename = os.path.join(
experiment_dir_name,
make_safe_filename(tensor_name) + ".npy"
After Change
def save_tensors(collected_tensors, experiment_dir_name):
filenames = []
for tensor_name, tensor_value in collected_tensors:
np_filename = os.path.join(
experiment_dir_name,
make_safe_filename(tensor_name) + ".npy"
)
np.save(np_filename, tensor_value.numpy())
filenames.append(np_filename)
return filenames
def print_weight_names(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: uber/ludwig
Commit Name: ff365f8ce044ef9d4af82c5044746b2f31a529c9
Time: 2020-08-11
Author: taddair@uber.com
File Name: ludwig/collect.py
Class Name:
Method Name: save_tensors
Project Name: chainer/chainercv
Commit Name: 3caec05bcee9e9952df3db6ee131773e59b0ce30
Time: 2017-06-15
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16Layers
Method Name: predict
Project Name: ray-project/ray
Commit Name: 732197e23a937b7b6d196936519c16ec6317ea9f
Time: 2021-03-08
Author: sven@anyscale.io
File Name: rllib/execution/train_ops.py
Class Name: TrainTFMultiGPU
Method Name: __call__