e99eac292db998960b9c384cb1106998a8489b02,keras/backend/theano_backend.py,,expand_dims,#Any#Any#,777
Before Change
else:
axis = axis % x.type.ndim + 1
pattern.insert(axis, "x")
return x.dimshuffle(pattern)
def squeeze(x, axis):
Remove a 1-dimension from the tensor at index "axis".
After Change
else:
axis = axis % x.type.ndim + 1
pattern.insert(axis, "x")
y = x.dimshuffle(pattern)
if hasattr(x, "_keras_shape"):
shape = list(x._keras_shape)
shape.insert(axis, 1)
y._keras_shape = tuple(shape)
return y
def squeeze(x, axis):
Remove a 1-dimension from the tensor at index "axis".
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: keras-team/keras
Commit Name: e99eac292db998960b9c384cb1106998a8489b02
Time: 2017-03-06
Author: abhai.dilip@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: expand_dims
Project Name: keras-team/keras
Commit Name: e99eac292db998960b9c384cb1106998a8489b02
Time: 2017-03-06
Author: abhai.dilip@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: repeat
Project Name: keras-team/keras
Commit Name: e99eac292db998960b9c384cb1106998a8489b02
Time: 2017-03-06
Author: abhai.dilip@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: squeeze