Keraflow
Deep Learning for Python.
 All Classes Namespaces Functions Pages
keraflow.layers.core.Repeat Class Reference

Repeat the input tensor n times along given axis. More...

Inheritance diagram for keraflow.layers.core.Repeat:

Public Member Functions

def __init__
 

Detailed Description

Repeat the input tensor n times along given axis.

Behaves like numpy.reshape().

  • input_shape: nD, (nb_samples, | x, y, ...)
  • output_shape: nD, (nb_samples, n*x, y, ...)

Constructor & Destructor Documentation

def keraflow.layers.core.Repeat.__init__ (   self,
  n,
  axis = 0,
  include_batch_dim = False,
  kwargs 
)
Parameters
nint. Times to repeat along axis.
axisint. The axis to expand dimension.
include_batch_dimboolean. If true, axis=0 refers to the first dimension; otherwise, axis=0 refers to the second dimension(0->1, 1->2...).
kwargssee Layer.__init__.