a16734c0fb83436af38ffa547c08a2a32bd6de2e,tnn/cell.py,,harbor,#Any#Any#,13
Before Change
elif len(shape) == 4:
if len(inp.shape) == 2:
raise ValueError("layers of dim 2 cannot project to layers of dim 4")
elif len(inp.shape) == 4:
out = tf.image.resize_images(inp, shape[1:3]) // tf.constant(shape))
outputs.append(out)
// h = inp.shape.as_list()[1] // shape[1]
After Change
if len(inp.shape) == 2:
xs, ys = shape[1: 3]
s = inp.shape[1]
nchnls = int(math.ceil(s / float(xs * ys)))
if s % (xs * ys) != 0:
out_depth = xs * ys * nchnls
inp = tfutils.model.fc(inp, out_depth, name="harbor_imagesizefc_for_" % inp.name)
out = tf.reshape(inp, (inp.shape[0], xs, ys, nchnls))
elif len(inp.shape) == 4:
out = tf.image.resize_images(inp, shape[1:3]) // tf.constant(shape))
outputs.append(out)
// h = inp.shape.as_list()[1] // shape[1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: neuroailab/tnn
Commit Name: a16734c0fb83436af38ffa547c08a2a32bd6de2e
Time: 2017-03-13
Author: dyamins@gmail.com
File Name: tnn/cell.py
Class Name:
Method Name: harbor
Project Name: reinforceio/tensorforce
Commit Name: 7b03c4edfe749b3de26c71631d63f9269d7c7268
Time: 2019-02-11
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/layers/convolutions.py
Class Name: Conv2d
Method Name: get_output_spec
Project Name: reinforceio/tensorforce
Commit Name: 7b03c4edfe749b3de26c71631d63f9269d7c7268
Time: 2019-02-11
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/layers/convolutions.py
Class Name: Conv1d
Method Name: get_output_spec
Project Name: neuroailab/tnn
Commit Name: a16734c0fb83436af38ffa547c08a2a32bd6de2e
Time: 2017-03-13
Author: dyamins@gmail.com
File Name: tnn/cell.py
Class Name:
Method Name: harbor