forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create type_prop tests * add visitors test * fix bug in visitor test * add RTTI macro * fix bug in visitors test * add newline * update spec * update spec * update RTTI definition * move RTTI definitioion to the top of he file * Remove broadcast from attribute tests. * Add Floor-1 to summarize.py report. Co-authored-by: jdanieck <[email protected]>
- Loading branch information
1 parent
b16c27d
commit e9612a6
Showing
7 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (C) 2018-2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include "gtest/gtest.h" | ||
|
||
#include "ngraph/ngraph.hpp" | ||
#include "ngraph/op/util/attr_types.hpp" | ||
#include "ngraph/opsets/opset1.hpp" | ||
#include "util/visitor.hpp" | ||
|
||
using namespace std; | ||
using namespace ngraph; | ||
using ngraph::test::NodeBuilder; | ||
|
||
TEST(attributes, floor_op) | ||
{ | ||
NodeBuilder::get_ops().register_factory<opset1::Floor>(); | ||
const auto A = make_shared<op::Parameter>(element::f32, Shape{5, 2}); | ||
|
||
const auto floor = make_shared<opset1::Floor>(A); | ||
NodeBuilder builder(floor); | ||
|
||
const auto expected_attr_count = 0; | ||
EXPECT_EQ(builder.get_value_map_size(), expected_attr_count); | ||
} |