c66b296ea7a46edca209e8cdbf717eaaf8dc7136,theano/gpuarray/pool.py,GpuMaxPoolRop,make_node,#GpuMaxPoolRop#Any#Any#Any#Any#Any#,400
Before Change
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if not ws.dtype.startswith("int") :
raise TypeError("Window shape parameters must be ints.")
if not stride.dtype.startswith("int") :
raise TypeError("Stride parameters must be ints.")
if not pad.dtype.startswith("int") :
raise TypeError("Padding parameters must be ints.")
return Apply(self, [inp, eval_point, ws, stride, pad], [eval_point.type()])
After Change
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in theano.tensor.int_dtypes :
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in theano.tensor.int_dtypes :
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in theano.tensor.int_dtypes :
raise TypeError("Padding parameters must be ints.")
ws = theano.tensor.cast(ws, dtype_name_for_casting)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 22
Instances Project Name: Theano/Theano
Commit Name: c66b296ea7a46edca209e8cdbf717eaaf8dc7136
Time: 2017-02-21
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuMaxPoolRop
Method Name: make_node
Project Name: Theano/Theano
Commit Name: ba0a5e10cb6809f373be5e8d4e0b8f7ce054cf13
Time: 2016-12-20
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuDownsampleFactorMaxGradGrad
Method Name: make_node
Project Name: Theano/Theano
Commit Name: ba0a5e10cb6809f373be5e8d4e0b8f7ce054cf13
Time: 2016-12-20
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuPool
Method Name: make_node
Project Name: Theano/Theano
Commit Name: ba0a5e10cb6809f373be5e8d4e0b8f7ce054cf13
Time: 2016-12-20
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuMaxPoolGrad
Method Name: make_node
Project Name: Theano/Theano
Commit Name: c66b296ea7a46edca209e8cdbf717eaaf8dc7136
Time: 2017-02-21
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuMaxPoolRop
Method Name: make_node
Project Name: Theano/Theano
Commit Name: ba0a5e10cb6809f373be5e8d4e0b8f7ce054cf13
Time: 2016-12-20
Author: stevenbocco@gmail.com
File Name: theano/gpuarray/pool.py
Class Name: GpuAveragePoolGrad
Method Name: make_node