#include <vector>
#include "layer/layer.h"
#include "tensor/tensor.h"
#include "compute/operation.h"
#include "compute/tensor_operations.h"
Go to the source code of this file.
- Author
- Sedrick Keh
- Version
- 1.0
- Date
- 2019-07-08
- Copyright
- Copyright (c) 2019
◆ 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
-
- Parameters
-
- Returns
- FlattenLayer<T>* Flatten layer