daae1077243385f0cb3eeaa52729991b8fc6d704,tensorforce/core/networks/layer.py,Input,tf_apply,#Input#Any#Any#,162
Before Change
inputs.append(self.named_tensors[name])
else:
// handling nested dict
input_element = [inner_named_tensors[name]
for inner_name, inner_named_tensors in self.named_tensors.items()
if isinstance(inner_named_tensors, dict) and name in inner_named_tensors]
if len(input_element) == 0:
keys = sorted(self.named_tensors)
raise TensorForceError(
After Change
if len(shape) > len(max_shape):
max_shape = shape
for n, tensor in enumerate(inputs):
shape = util.shape(x=tensor)
if len(shape) < len(max_shape):
// assert shape == max_shape[:len(shape)], (shape, max_shape)
for i in range(len(shape), len(max_shape)):
// assert max_shape[i] == 1, (shape, max_shape)
tensor = tf.expand_dims(input=tensor, axis=i)
inputs[n] = tensor
// else:
// assert shape == max_shape, (shape, max_shape)
if self.aggregation_type == "concat":
x = tf.concat(values=inputs, axis=self.axis)
elif self.aggregation_type == "stack":
x = tf.stack(values=inputs, axis=self.axis)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: reinforceio/tensorforce
Commit Name: daae1077243385f0cb3eeaa52729991b8fc6d704
Time: 2018-09-26
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/networks/layer.py
Class Name: Input
Method Name: tf_apply
Project Name: stellargraph/stellargraph
Commit Name: fa504b8a852325c2c575336cf0761aa69c6a8a3a
Time: 2018-05-14
Author: 33508488+kjun9@users.noreply.github.com
File Name: stellar/layer/hinsage.py
Class Name: Hinsage
Method Name: __init__
Project Name: IndicoDataSolutions/finetune
Commit Name: c753a3bf6c768eb45c0b4bad556161b7389fde65
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/util/imbalance.py
Class Name:
Method Name: class_weight_tensor