Elementwise

class dragon.vm.tensorlayer.layers.Elementwise(
  operation='add',
  act=None,
  name=None
)[source]

The layer to combine inputs by applying element-wise operation.

__init__

Elementwise.__init__(
  operation='add',
  act=None,
  name=None
)[source]

Create a Elementwise layer.

Parameters:
  • operation (str, optional, default='add') – The operation to perform.
  • act (callable, optional) – The optional activation function.
  • name (str, optional) – The optional layer name.