Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
0df3202b
Commit
0df3202b
authored
Jul 24, 2019
by
Ewa21
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Py] Fixed code formatting bugs.
parent
809f7f69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
ops.py
python/ngraph/ops.py
+2
-2
clamp.cpp
python/pyngraph/ops/fused/clamp.cpp
+2
-2
regmodule_pyngraph_op.hpp
python/pyngraph/ops/regmodule_pyngraph_op.hpp
+2
-2
test_ops_binary.py
python/test/ngraph/test_ops_binary.py
+1
-1
No files found.
python/ngraph/ops.py
View file @
0df3202b
...
...
@@ -563,7 +563,7 @@ def clamp(data, min_value, max_value, name=None):
Performs a clipping operation on an input value between a pair of boundary values.
If :code:`data` compares less than :code:`min_value`, sets :code:`min_value`;
else if :code:`max_value` compares
less
than :code:`data`, sets :code:`max_value`;
else if :code:`max_value` compares
more
than :code:`data`, sets :code:`max_value`;
otherwise remains unchanged :code:`data`.
Computes clamp:
...
...
@@ -577,7 +577,7 @@ def clamp(data, min_value, max_value, name=None):
:param data: Input tensor. One of: input node, array or scalar.
:param min_value: The lower bound of the <min_value;max_value> range. Scalar value.
:param max_value: The upper bound of the <min_value;max_value> range Scalar value.
:param max_value: The upper bound of the <min_value;max_value> range
.
Scalar value.
:param name: Optional output node name.
:return: The new node performing a clamp operation on its input data element-wise.
"""
...
...
python/pyngraph/ops/fused/clamp.cpp
View file @
0df3202b
...
...
@@ -24,8 +24,8 @@ namespace py = pybind11;
void
regclass_pyngraph_op_Clamp
(
py
::
module
m
)
{
py
::
class_
<
ngraph
::
op
::
Clamp
,
std
::
shared_ptr
<
ngraph
::
op
::
Clamp
>
,
ngraph
::
op
::
Op
>
clamp
(
m
,
"Clamp"
);
py
::
class_
<
ngraph
::
op
::
Clamp
,
std
::
shared_ptr
<
ngraph
::
op
::
Clamp
>
,
ngraph
::
op
::
Op
>
clamp
(
m
,
"Clamp"
);
clamp
.
doc
()
=
"ngraph.impl.op.Clamp wraps ngraph::op::Clamp"
;
clamp
.
def
(
py
::
init
<
const
std
::
shared_ptr
<
ngraph
::
Node
>&
,
const
double
,
const
double
>
());
}
python/pyngraph/ops/regmodule_pyngraph_op.hpp
View file @
0df3202b
...
...
@@ -31,7 +31,6 @@
#include "pyngraph/ops/broadcast.hpp"
#include "pyngraph/ops/broadcast_distributed.hpp"
#include "pyngraph/ops/ceiling.hpp"
#include "pyngraph/ops/fused/clamp.hpp"
#include "pyngraph/ops/concat.hpp"
#include "pyngraph/ops/constant.hpp"
#include "pyngraph/ops/convert.hpp"
...
...
@@ -40,10 +39,11 @@
#include "pyngraph/ops/cosh.hpp"
#include "pyngraph/ops/divide.hpp"
#include "pyngraph/ops/dot.hpp"
#include "pyngraph/ops/fused/elu.hpp"
#include "pyngraph/ops/equal.hpp"
#include "pyngraph/ops/exp.hpp"
#include "pyngraph/ops/floor.hpp"
#include "pyngraph/ops/fused/clamp.hpp"
#include "pyngraph/ops/fused/elu.hpp"
#include "pyngraph/ops/get_output_element.hpp"
#include "pyngraph/ops/greater.hpp"
#include "pyngraph/ops/greater_eq.hpp"
...
...
python/test/ngraph/test_ops_binary.py
View file @
0df3202b
# ******************************************************************************
# Copyright 201
8
-2019 Intel Corporation
# Copyright 201
7
-2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment