aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/ops/ewise_unary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'reference_model/src/ops/ewise_unary.cc')
-rw-r--r--reference_model/src/ops/ewise_unary.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/reference_model/src/ops/ewise_unary.cc b/reference_model/src/ops/ewise_unary.cc
index 514cb84..e6e870e 100644
--- a/reference_model/src/ops/ewise_unary.cc
+++ b/reference_model/src/ops/ewise_unary.cc
@@ -27,7 +27,6 @@ UnaryNode<Rank, Dtype>::UnaryNode(SubgraphTraverser* sgt_, const Op& op_, uint64
: GraphNode(sgt_, op_, id_)
{
setRequiredOperands(1, 1);
- setRequiredRank(0, 6);
fcn = [](InEigenType a) -> OutEigenType {
ASSERT_MSG(0, "In default UnaryNode function, missing function registration");
@@ -49,11 +48,6 @@ int UnaryNode<Rank, Dtype>::checkTensorAttributes()
if (validateRequiredOperands())
return 1;
- if (validateRequiredRank(inputs[0]) || validateRequiredRank(outputs[0]))
- {
- return 1;
- }
-
// output and input must be the same types
if (inputs[0]->matchRankTypeShape(*outputs[0]))
{