id
int64
0
190k
prompt
stringlengths
21
13.4M
docstring
stringlengths
1
12k
149,990
from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable import jax import jax.lax as jlax import jax.numpy as jnp import math import ivy from ivy import output_to_native_arrays from ivy.functional.backends.jax import JaxArray from ivy.functional.backends.jax.random import RNG from ivy.functional.iv...
null
149,991
from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable import jax import jax.lax as jlax import jax.numpy as jnp import math import ivy from ivy import output_to_native_arrays from ivy.functional.backends.jax import JaxArray from ivy.functional.backends.jax.random import RNG from ivy.functional.iv...
null
149,992
from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable import jax import jax.lax as jlax import jax.numpy as jnp import math import ivy from ivy import output_to_native_arrays from ivy.functional.backends.jax import JaxArray from ivy.functional.backends.jax.random import RNG from ivy.functional.iv...
null
149,993
import jax def if_else(cond, body_fn, orelse_fn, vars): cond_vars = list(vars.values()) pred = cond(**vars) with jax.disable_jit(): final_vars = jax.lax.cond(pred, body_fn, orelse_fn, *cond_vars) return final_vars
null
149,994
import jax def while_loop(test_fn, body_fn, vars): def body_fn_wrapper(loop_vars): return body_fn(*loop_vars) def test_fn_wrapper(loop_vars): return test_fn(*loop_vars) if isinstance(vars, dict): vars = list(vars.values()) with jax.disable_jit(): final_loop_vars = jax....
null
149,995
import jax.numpy as jnp from typing import Tuple, Optional from collections import namedtuple from ivy.functional.backends.jax import JaxArray import ivy from ivy.functional.frontends import set_frontend_to_specific_version if ivy.is_local(): module = ivy.utils._importlib.import_cache[__name__] else: modul...
null
149,996
import jax.numpy as jnp from typing import Tuple, Optional from collections import namedtuple from ivy.functional.backends.jax import JaxArray import ivy def unique_counts( x: JaxArray, /, ) -> Tuple[JaxArray, JaxArray]: v, c = jnp.unique(x, return_counts=True) nan_count = jnp.count_nonzero(jnp.isnan(x...
null
149,997
import jax.numpy as jnp from typing import Tuple, Optional from collections import namedtuple from ivy.functional.backends.jax import JaxArray import ivy def unique_inverse( x: JaxArray, /, *, axis: Optional[int] = None, ) -> Tuple[JaxArray, JaxArray]: Results = namedtuple("Results", ["values", "in...
null
149,998
import jax.numpy as jnp from typing import Tuple, Optional from collections import namedtuple from ivy.functional.backends.jax import JaxArray import ivy def unique_values(x: JaxArray, /, *, out: Optional[JaxArray] = None) -> JaxArray: nan_count = jnp.count_nonzero(jnp.isnan(x)) if nan_count > 1: uniqu...
null
149,999
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException def variable(x, /): return x
null
150,000
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException def is_variable(x, /, *, exclusive=False): return isinstance(x, mx.ndarray.NDArray)
null
150,001
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def vari...
null
150,002
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def exec...
null
150,003
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def valu...
null
150,004
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def jac(...
null
150,005
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def grad...
null
150,006
from typing import Sequence, Union import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend) def stop...
null
150,007
from typing import Union, Optional, Literal, List import mxnet as mx import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=...
null
150,008
from typing import Union, Optional, Literal, List import mxnet as mx import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=...
null
150,009
from typing import Union, Optional, Literal, List import mxnet as mx import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=...
null
150,010
from typing import Union, Optional, Literal, List import mxnet as mx import ivy from ivy.utils.exceptions import IvyNotImplementedException import ivy from ivy.func_wrapper import _dtype_from_version from ivy.utils.exceptions import IvyNotImplementedException if not ivy.is_local(): _module_in_memory = sys.modules...
null
150,011
import mxnet as mx from numbers import Number from typing import Optional, Union, Tuple import numpy as np import ivy from ivy.utils.exceptions import IvyNotImplementedException import ivy from ivy.func_wrapper import _dtype_from_version from ivy.utils.exceptions import IvyNotImplementedException if not ivy.is_local(...
null
150,012
import mxnet as mx from numbers import Number from typing import Optional, Union, Tuple import numpy as np import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): def argmin( ...
null
150,013
import mxnet as mx from numbers import Number from typing import Optional, Union, Tuple import numpy as np import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super(...
null
150,014
import mxnet as mx from numbers import Number from typing import Optional, Union, Tuple import numpy as np import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super(...
null
150,015
import mxnet as mx from numbers import Number from typing import Optional, Union, Tuple import numpy as np import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super(...
null
150,016
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,017
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,018
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException def det( x: Union[(None, mx.ndarray.NDArray)], /, *, out: Optional[Union[(None, mx.ndarray.NDArray)]] ...
null
150,019
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,020
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,021
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,022
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,023
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,024
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,025
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,026
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,027
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,028
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,029
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,030
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,031
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,032
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException def qr( x: Union[(None, mx.ndarray.NDArray)], /, *, mode: str = "reduced", out: Optional[ ...
null
150,033
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,034
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,035
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,036
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,037
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,038
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,039
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,040
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backen...
null
150,041
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,042
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,043
import mxnet as mx from typing import Union, Optional, Tuple, Literal, List, Sequence from collections import namedtuple from ivy import inf from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend...
null
150,044
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,045
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,046
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,047
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,048
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,049
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,050
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,051
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,052
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,053
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,054
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,055
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,056
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,057
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,058
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,059
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,060
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,061
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,062
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,063
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,064
import mxnet as mx import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import ivy from ivy.utils.exceptions import IvyNotImplementedException from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_hand...
null
150,065
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,066
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,067
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,068
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy import ivy from ivy.func_wrapper import _dtype_from_version from ivy.utils.exceptions import IvyNotImplementedException if not ivy.is_local(): _module_i...
null
150,069
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,070
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy import ivy from ivy.func_wrapper import _dtype_from_version from ivy.utils.exceptions import IvyNotImplementedException if not ivy.is_local(): _module_i...
null
150,071
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,072
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): def cumprod( x: Union[(N...
null
150,073
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*mess...
null
150,074
from typing import Union, Optional, Sequence import mxnet as mx from numbers import Number from ivy.utils.exceptions import IvyNotImplementedException import ivy class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): def einsum( equation: st...
null
150,075
from typing import Union, Optional, Sequence import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): def all( x: Union[(None, mx.ndarray.NDArray)], /, *, ...
null
150,076
from typing import Union, Optional, Sequence import mxnet as mx from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include_backend)...
null
150,077
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def gelu( x: None, /, *, approximate: bool = False, complex_mode="jax", out: Optional[None] = None, ) -> None: if approximate: return 0.5 * x * (1 + m...
null
150,078
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def leaky_relu( x: None, /, *, alpha: float = 0.2, complex_mode="jax", out: Optional[None] = None ) -> None: return mx.nd.LeakyReLU(x, slope=alpha)
null
150,079
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def relu(x: None, /, *, complex_mode="jax", out: Optional[None] = None) -> None: return mx.nd.relu(x)
null
150,080
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def sigmoid(x: None, /, *, out: Optional[None] = None) -> None: return mx.nd.sigmoid(x)
null
150,081
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def softmax( x: None, /, *, axis: Optional[int] = None, out: Optional[None] = None ) -> None: return mx.nd.softmax(x, axis=axis)
null
150,082
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def softplus( x: Union[(int, float, mx.nd.NDArray)], /, *, beta: Optional[Union[(int, float)]] = None, threshold: Optional[Union[(int, float)]] = None, complex_mo...
null
150,083
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union def softsign(x: None, /, *, out: Optional[None] = None) -> None: return mx.nd.softsign(x)
null
150,084
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include...
null
150,085
import mxnet as mx import numpy as np from ivy.utils.exceptions import IvyNotImplementedException from typing import Optional, Union class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super().__init__(*messages, include_backend=include...
null
150,086
import mxnet as mx from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super()._...
null
150,087
import mxnet as mx from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super()._...
null
150,088
import mxnet as mx from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super()._...
null
150,089
import mxnet as mx from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import ivy from ivy.utils.exceptions import IvyNotImplementedException class IvyNotImplementedException(IvyException, NotImplementedError): def __init__(self, *messages, include_backend=False): super()._...
null