577735597212a111028c2c39db2f621823346ab5,keras/backend/theano_backend.py,,_old_theano_pool3d,#Any#Any#Any#Any#Any#Any#,1729
Before Change
if dim_ordering == "default":
dim_ordering = image_dim_ordering()
if dim_ordering not in {"th", "tf"}:
raise Exception("Unknown dim_ordering " + str(dim_ordering))
if border_mode == "same":
// TODO: add implementation for border_mode="same"
raise Exception("border_mode="same" not supported with Theano.")
elif border_mode == "valid":
ignore_border = True
padding = (0, 0)
else:
raise Exception("Invalid border mode: " + str(border_mode))
if dim_ordering not in {"th", "tf"}:
raise Exception("Unknown dim_ordering " + str(dim_ordering))
if dim_ordering == "tf":
x = x.dimshuffle((0, 4, 1, 2, 3))
After Change
if dim_ordering == "default":
dim_ordering = image_dim_ordering()
if dim_ordering not in {"th", "tf"}:
raise ValueError("Unknown dim_ordering:", dim_ordering)
if border_mode == "same":
// TODO: add implementation for border_mode="same"
raise ValueError("border_mode="same" not supported with Theano.")
elif border_mode == "valid":
ignore_border = True
padding = (0, 0)
else:
raise ValueError("Invalid border mode:", border_mode)
if dim_ordering not in {"th", "tf"}:
raise ValueError("Unknown dim_ordering:", dim_ordering)
if dim_ordering == "tf":
x = x.dimshuffle((0, 4, 1, 2, 3))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: keras-team/keras
Commit Name: 577735597212a111028c2c39db2f621823346ab5
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: _old_theano_pool3d
Project Name: keras-team/keras
Commit Name: 577735597212a111028c2c39db2f621823346ab5
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: pool3d
Project Name: keras-team/keras
Commit Name: 577735597212a111028c2c39db2f621823346ab5
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: _old_theano_pool3d
Project Name: keras-team/keras
Commit Name: 577735597212a111028c2c39db2f621823346ab5
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: pool2d