clDNN
reshape.hpp
1 /*
2 // Copyright (c) 2017 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 
18 #pragma once
19 #include "../C/reshape.h"
20 #include "primitive.hpp"
21 
22 namespace cldnn
23 {
30 
35 struct reshape : public primitive_base<reshape, CLDNN_PRIMITIVE_DESC(reshape)>
36 {
37  CLDNN_DECLATE_PRIMITIVE(reshape)
38 
39 
40  reshape(
45  const primitive_id& id,
46  const primitive_id& input,
47  const tensor& output_shape,
48  const padding& output_padding = padding()
49  )
52  {
53  }
54 
56  reshape(const dto* dto)
59  {
60  }
61 
64 
65 protected:
66  void update_dto(dto& dto) const override
67  {
69  }
70 };
71 
75 }
Changes information about inputs&#39;s layout effectively creating new memory which share underlaying buf...
Definition: reshape.h:37
reshape(const dto *dto)
Constructs a copy from basic C API cldnn_reshape_desc.
Definition: reshape.hpp:56
Represents data padding information.
Definition: layout.hpp:125
tensor output_shape
Requested memory shape.
Definition: reshape.hpp:63
N-dimensional vector. Mostly used to represent memory size.
Definition: tensor.hpp:256
cldnn_tensor output_shape
Requested memory shape.
Definition: reshape.h:39
reshape(const primitive_id &id, const primitive_id &input, const tensor &output_shape, const padding &output_padding=padding())
Constructs reshape primitive.
Definition: reshape.hpp:44
std::string primitive_id
Unique id of a primitive within a topology.
Definition: primitive.hpp:42
fixed_size_vector_ref input
List of ids of input primitives.
Definition: primitive.hpp:146
base class for all primitives implementations.
Definition: primitive.hpp:190
Changes information about inputs&#39;s layout effectively creating new memory which share underlaying buf...
Definition: reshape.hpp:35
padding output_padding
Requested output padding.
Definition: primitive.hpp:149