26edeaf181d6ead3bd3452e4259de306abc89dd4,tensorforce/core/layers/convolution.py,Conv1d,get_output_spec,#Conv1d#Any#,80
Before Change
return dict(type="float", shape=(0, 0))
def get_output_spec(self, input_spec):
if self.padding == "same":
shape = (ceil(input_spec["shape"][0] / self.stride),)
elif self.padding == "valid":
shape = (ceil((input_spec["shape"][0] - (self.window - 1)) / self.stride),)
if self.squeeze:
input_spec["shape"] = shape
else:
After Change
return dict(type="float", shape=(0, 0))
def get_output_spec(self, input_spec):
length = conv_output_length(input_spec["shape"][0], self.window, self.padding,
self.stride)
shape = (length,)
if self.squeeze:
input_spec["shape"] = shape
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: reinforceio/tensorforce
Commit Name: 26edeaf181d6ead3bd3452e4259de306abc89dd4
Time: 2019-10-31
Author: vincent.belus@mines-paristech.fr
File Name: tensorforce/core/layers/convolution.py
Class Name: Conv1d
Method Name: get_output_spec
Project Name: reinforceio/tensorforce
Commit Name: 26edeaf181d6ead3bd3452e4259de306abc89dd4
Time: 2019-10-31
Author: vincent.belus@mines-paristech.fr
File Name: tensorforce/core/layers/convolution.py
Class Name: Conv2d
Method Name: get_output_spec
Project Name: keras-team/keras
Commit Name: c81713367e3e97f13dd584ae8e48b79615951437
Time: 2017-02-23
Author: francois.chollet@gmail.com
File Name: keras/layers/local.py
Class Name: LocallyConnected2D
Method Name: build