MagmaDNN  1.0
c++NeuralNetworkFramework
flattenlayer.h File Reference
#include <vector>
#include "layer/layer.h"
#include "tensor/tensor.h"
#include "compute/operation.h"
#include "compute/tensor_operations.h"
Include dependency graph for flattenlayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  magmadnn::layer::FlattenLayer< T >
 

Functions

template<typename T >
FlattenLayer< T > * magmadnn::layer::flatten (op::Operation< T > *input)
 

Detailed Description

Author
Sedrick Keh
Version
1.0
Date
2019-07-08

Function Documentation

◆ flatten()

template<typename T >
FlattenLayer< T > * magmadnn::layer::flatten ( op::Operation< T > *  input)

A new Flatten layer. Typically used after a convolutional layer. Converts the input tensor into a 2d Tensor by flattening it.

Template Parameters
Tnumeric
Parameters
inputInput to flatten
Returns
FlattenLayer<T>* Flatten layer