4a501aff2b763bf401d2ba09888063202c7d3252,niftynet/engine/windows_aggregator_base.py,ImageWindowsAggregator,crop_batch,#Any#Any#Any#,66
Before Change
"three elements corresponding to 3 spatial dims"
window_shape = window.shape
if len(window_shape) != 5:
raise NotImplementedError(
"window shape not supported: {}".format(window_shape))
spatial_shape = window_shape[1:-1]
n_spatial = len(spatial_shape)
assert all([win_size > 2 * border_size
for (win_size, border_size)
After Change
:return:
if border == ():
border = (0, 0, 0)
assert len(border) == 3, \
"unknown border format (should be an array of" \
"three elements corresponding to 3 spatial dims"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: NifTK/NiftyNet
Commit Name: 4a501aff2b763bf401d2ba09888063202c7d3252
Time: 2017-08-31
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/windows_aggregator_base.py
Class Name: ImageWindowsAggregator
Method Name: crop_batch
Project Name: NervanaSystems/coach
Commit Name: 7ba1a4393ff563beceb420b1ed870e3e016140f6
Time: 2018-11-19
Author: thom.e.lane@gmail.com
File Name: rl_coach/architectures/mxnet_components/embedders/image_embedder.py
Class Name: ImageEmbedder
Method Name: hybrid_forward
Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/dashboard/metrics_exporter/schema.py
Class Name: BaseModel
Method Name: parse_obj