1414 </ script >
1515
1616 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
17- < title > dpnp.dpnp_iface_arraycreation — Data Parallel Extension for NumPy 0.19.0dev6+9.g13cc33e7ac9 documentation</ title >
17+ < title > dpnp.dpnp_iface_arraycreation — Data Parallel Extension for NumPy 0.20.0dev0+35.gdd0d12a38e8 documentation</ title >
1818 < link rel ="stylesheet " type ="text/css " href ="../../_static/pygments.css?v=03e43079 " />
1919 < link rel ="stylesheet " type ="text/css " href ="../../_static/css/theme.css?v=e59714d7 " />
2020
2121
2222 < script src ="../../_static/jquery.js?v=5d32c60e "> </ script >
2323 < script src ="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c "> </ script >
24- < script src ="../../_static/documentation_options.js?v=f6e29787 "> </ script >
24+ < script src ="../../_static/documentation_options.js?v=463ba632 "> </ script >
2525 < script src ="../../_static/doctools.js?v=9bcbadda "> </ script >
2626 < script src ="../../_static/sphinx_highlight.js?v=dc90522c "> </ script >
2727 < script src ="../../_static/js/theme.js "> </ script >
8585 < h1 > Source code for dpnp.dpnp_iface_arraycreation</ h1 > < div class ="highlight "> < pre >
8686< span > </ span > < span class ="c1 "> # -*- coding: utf-8 -*-</ span >
8787< span class ="c1 "> # *****************************************************************************</ span >
88- < span class ="c1 "> # Copyright (c) 2016-2025 , Intel Corporation</ span >
88+ < span class ="c1 "> # Copyright (c) 2016, Intel Corporation</ span >
8989< span class ="c1 "> # All rights reserved.</ span >
9090< span class ="c1 "> #</ span >
9191< span class ="c1 "> # Redistribution and use in source and binary forms, with or without</ span >
@@ -95,6 +95,9 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
9595< span class ="c1 "> # - Redistributions in binary form must reproduce the above copyright notice,</ span >
9696< span class ="c1 "> # this list of conditions and the following disclaimer in the documentation</ span >
9797< span class ="c1 "> # and/or other materials provided with the distribution.</ span >
98+ < span class ="c1 "> # - Neither the name of the copyright holder nor the names of its contributors</ span >
99+ < span class ="c1 "> # may be used to endorse or promote products derived from this software</ span >
100+ < span class ="c1 "> # without specific prior written permission.</ span >
98101< span class ="c1 "> #</ span >
99102< span class ="c1 "> # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"</ span >
100103< span class ="c1 "> # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</ span >
@@ -123,6 +126,8 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
123126< span class ="sd "> """</ span >
124127
125128
129+ < span class ="c1 "> # pylint: disable=duplicate-code</ span >
130+
126131< span class ="kn "> import</ span > < span class ="w "> </ span > < span class ="nn "> operator</ span >
127132
128133< span class ="kn "> import</ span > < span class ="w "> </ span > < span class ="nn "> dpctl.tensor</ span > < span class ="w "> </ span > < span class ="k "> as</ span > < span class ="w "> </ span > < span class ="nn "> dpt</ span >
@@ -2370,9 +2375,12 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
23702375< span class ="sd "> Raises</ span >
23712376< span class ="sd "> ------</ span >
23722377< span class ="sd "> TypeError</ span >
2373- < span class ="sd "> if `obj ` does not implement ``__dlpack__`` method</ span >
2378+ < span class ="sd "> If `x ` does not implement ``__dlpack__`` method. </ span >
23742379< span class ="sd "> ValueError</ span >
2375- < span class ="sd "> if data of the input object resides on an unsupported device</ span >
2380+ < span class ="sd "> If data of the input object resides on an unsupported device.</ span >
2381+ < span class ="sd "> DLPackCreationError</ span >
2382+ < span class ="sd "> When `x` is allocated on a partitioned SYCL device, or with</ span >
2383+ < span class ="sd "> a non-default context.</ span >
23762384
23772385< span class ="sd "> Notes</ span >
23782386< span class ="sd "> -----</ span >
0 commit comments