d71bc3c8b533c319e49cf6b347d13c48c925ea93,gpytorch/utils/getitem.py,,_compute_getitem_size,#Any#Any#,10
Before Change
// If we don"t have a continuous set of tensor indices, then the tensor indexed part
// goes to the front
if not continuous_tensor_index:
del final_shape[first_tensor_idx]
final_shape.insert(0, tensor_idx_shape)
return torch.Size(final_shape)
After Change
// If we don"t have a continuous set of tensor indices, then the tensor indexed part
// goes to the front
if tensor_idx is not None:
final_shape = final_shape[:tensor_idx] + list(tensor_idx_shape) + final_shape[tensor_idx:]
return torch.Size(final_shape)
def _convert_indices_to_tensors(obj, indices):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: cornellius-gp/gpytorch
Commit Name: d71bc3c8b533c319e49cf6b347d13c48c925ea93
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/utils/getitem.py
Class Name:
Method Name: _compute_getitem_size
Project Name: dPys/PyNets
Commit Name: 119d1b9063ac43d96622f40e9bffebbefa2a732f
Time: 2018-06-18
Author: dpisner@utexas.edu
File Name: pynets/plotting.py
Class Name:
Method Name: plot_all
Project Name: dPys/PyNets
Commit Name: 46b97a34f22e59347113dae77f9055140f54915e
Time: 2020-04-20
Author: dpisner@utexas.edu
File Name: pynets/dmri/estimation.py
Class Name:
Method Name: streams2graph