Skip to content

Commit

Permalink
Implements dpctl.tensor.clip
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Oct 17, 2023
1 parent af04d34 commit 2555cc6
Show file tree
Hide file tree
Showing 8 changed files with 1,997 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dpctl/tensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ set(_tensor_impl_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/elementwise_functions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/repeat.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/reduction_over_axis.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/clip.cpp
)

set(python_module_name _tensor_impl)
Expand All @@ -65,6 +66,7 @@ set(_no_fast_math_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/linear_sequences.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/elementwise_functions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/reduction_over_axis.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/clip.cpp
)
foreach(_src_fn ${_no_fast_math_sources})
get_source_file_property(_cmpl_options_prop ${_src_fn} COMPILE_OPTIONS)
Expand Down
2 changes: 2 additions & 0 deletions dpctl/tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
from dpctl.tensor._usmarray import usm_ndarray
from dpctl.tensor._utility_functions import all, any

from ._clip import clip
from ._constants import e, inf, nan, newaxis, pi
from ._elementwise_funcs import (
abs,
Expand Down Expand Up @@ -314,4 +315,5 @@
"argmax",
"argmin",
"prod",
"clip",
]
Loading

0 comments on commit 2555cc6

Please sign in to comment.