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
e5aa1995
Commit
e5aa1995
authored
Jul 29, 2019
by
Ewa21
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Py] Changed docstring.
parent
9d3e5bee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ops.py
python/ngraph/ops.py
+6
-5
No files found.
python/ngraph/ops.py
View file @
e5aa1995
...
...
@@ -557,16 +557,17 @@ def tanh(node, name=None): # type: (Node, str) -> Node
@nameable_op
def
clamp
(
data
,
min_value
,
max_value
,
name
=
None
):
# type: (NodeInput, ScalarData, ScalarData, str) -> Node
Input
# type: (NodeInput, ScalarData, ScalarData, str) -> Node
"""Perform clamp element-wise on data from input node.
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 more than :code:`data`, sets :code:`max_value`;
otherwise remains unchanged :code:`data`.
For each element in :code:`data`, if the element's value is lower than :code:`min_value`,
it will be replaced with :code:`min_value`. If the value is higher than :code:`max_value`,
it will be replaced by :code:`max_value`.
Intermediate values of :code:`data` are returned without change.
C
omputes clamp
:
C
lamp uses the following logic
:
.. code-block:: python
...
...
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