1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <description_buffer.hpp>
8 #include "ie_built_in_impl.hpp"
15 namespace InferenceEngine {
16 namespace ShapeInfer {
18 class InnerProductShapeProp : public BuiltInShapeInferImpl {
20 explicit InnerProductShapeProp(const std::string& type) : BuiltInShapeInferImpl(type) {}
22 void inferShapesImpl(const std::vector<Blob::CPtr>& inBlobs,
23 const std::map<std::string, std::string>& params,
24 const std::map<std::string, Blob::Ptr>& blobs,
25 std::vector<SizeVector>& outShapes) override {
27 FullyConnectedLayer fcLayer(lp);
28 fcLayer.params = params;
30 validate(&fcLayer, inBlobs, params, blobs);
33 OC = fcLayer._out_num;
34 outShapes.emplace_back(std::initializer_list<size_t>{ON, OC});
38 } // namespace ShapeInfer
39 } // namespace InferenceEngine