id
int64
0
190k
prompt
stringlengths
21
13.4M
docstring
stringlengths
1
12k
149,289
import math import numpy as np from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable import ivy from ivy.functional.ivy.layers import ( _handle_padding, _get_num_padded_values, _validate_max_pool_params, _depth_max_pooling_helper, ) from ivy.functional.backends.numpy.layers import...
null
149,290
import math import numpy as np from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable import ivy from ivy.functional.ivy.layers import ( _handle_padding, _get_num_padded_values, _validate_max_pool_params, _depth_max_pooling_helper, ) from ivy.functional.backends.numpy.layers import...
null
149,291
from typing import Union, Callable, Sequence import numpy as np from . import backend_version from ivy import with_unsupported_dtypes def reduce( operand: np.ndarray, init_value: Union[int, float], computation: Callable, /, *, axes: Union[int, Sequence[int]] = 0, keepdims: bool = False, ) -...
null
149,292
def if_else(cond, body_fn, orelse_fn, vars): # back-compatibility if isinstance(cond, bool): v = cond def cond(*_): return v cond = cond(**vars) if cond: return body_fn(**vars) else: return orelse_fn(**vars)
null
149,294
import numpy as np from typing import Tuple, Optional from collections import namedtuple from packaging import version import ivy import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version from ivy.functional.frontends.numpy...
null
149,295
import numpy as np from typing import Tuple, Optional from collections import namedtuple from packaging import version import ivy def unique_counts( x: np.ndarray, /, ) -> Tuple[np.ndarray, np.ndarray]: v, c = np.unique(x, return_counts=True) nan_count = np.count_nonzero(np.isnan(x)) if nan_count >...
null
149,296
import numpy as np from typing import Tuple, Optional from collections import namedtuple from packaging import version import ivy def unique_inverse( x: np.ndarray, /, *, axis: Optional[int] = None, ) -> Tuple[np.ndarray, np.ndarray]: Results = namedtuple("Results", ["values", "inverse_indices"]) ...
null
149,297
import numpy as np from typing import Tuple, Optional from collections import namedtuple from packaging import version import ivy def unique_values(x: np.ndarray, /, *, out: Optional[np.ndarray] = None) -> np.ndarray: nan_count = np.count_nonzero(np.isnan(x)) if version.parse(np.__version__) >= version.parse("...
null
149,298
import tensorflow as tf from typing import Sequence, Union, Optional, Callable import ivy from ivy.func_wrapper import outputs_to_ivy_arrays, inputs_to_native_arrays from ivy.functional.ivy.gradients import ( _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _proces...
null
149,299
import tensorflow as tf from typing import Sequence, Union, Optional, Callable import ivy from ivy.func_wrapper import outputs_to_ivy_arrays, inputs_to_native_arrays from ivy.functional.ivy.gradients import ( _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _proces...
null
149,300
import tensorflow as tf from typing import Sequence, Union, Optional, Callable import ivy from ivy.func_wrapper import outputs_to_ivy_arrays, inputs_to_native_arrays from ivy.functional.ivy.gradients import ( _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _proces...
null
149,301
import tensorflow as tf from typing import Sequence, Union, Optional, Callable import ivy from ivy.func_wrapper import outputs_to_ivy_arrays, inputs_to_native_arrays from ivy.functional.ivy.gradients import ( _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _proces...
null
149,302
import tensorflow as tf from typing import Sequence, Union, Optional, Callable import ivy from ivy.func_wrapper import outputs_to_ivy_arrays, inputs_to_native_arrays from ivy.functional.ivy.gradients import ( _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _proces...
null
149,303
import tensorflow as tf from typing import Union, Optional, Literal, List import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version def argsort( x: Union[tf.Tensor, tf.Variable], /, *, axis: int = -1, descending: bool = False, stable: bool = True, out: Op...
null
149,304
import tensorflow as tf from typing import Union, Optional, Literal, List import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version def sort( x: Union[tf.Tensor, tf.Variable], /, *, axis: int = -1, descending: bool = False, stable: bool = True, out: Option...
null
149,305
import tensorflow as tf from typing import Union, Optional, Literal, List import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version if ivy...
null
149,306
from numbers import Number from typing import Optional, Union, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version ...
null
149,307
from numbers import Number from typing import Optional, Union, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version def argmin( x: Union[tf.Tensor, tf.Variable], /, *, axis: Optional[int] = None, keepdims: bool = False, dtyp...
null
149,308
from numbers import Number from typing import Optional, Union, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version ...
null
149,309
from numbers import Number from typing import Optional, Union, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version def nonzero( x: Union[tf.Tensor, tf.Variable], /, *, as_tuple: bool = True, size: Optional[int] = None, fill_...
null
149,310
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,311
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,312
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,313
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,314
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,315
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,316
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,317
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,318
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,319
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,320
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,321
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,322
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,323
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,324
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,325
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,326
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,327
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,328
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,329
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,330
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,331
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,332
from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence from collections import namedtuple import tensorflow as tf from tensorflow.python.framework.dtypes import DType import ivy from ivy import inf from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_...
null
149,333
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,334
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,335
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,336
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,337
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,338
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,339
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,340
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,341
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,342
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,343
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,344
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,345
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,346
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,347
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,348
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,349
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,350
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,351
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,352
import numpy as np from numbers import Number from typing import Union, List, Optional, Sequence, Tuple import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.creation import ( _asarray_to_native_arrays_and_back, _asarray_infer_device, _asarray_infer_...
null
149,353
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr def mean( x: Union[tf.Tensor, tf.Variable], /, *, axis: Optional[Union[int, Sequenc...
null
149,354
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr def _infer_dtype(dtype: tf.DType): default_dtype = ivy.infer_default_dtype(dtype) if ivy.dty...
null
149,355
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import ...
null
149,356
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import ...
null
149,357
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr def var( x: Union[tf.Tensor, tf.Variable], /, *, axis: Optional[Union[int, Sequence...
null
149,358
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr def _infer_dtype(dtype: tf.DType): default_dtype = ivy.infer_default_dtype(dtype) if ivy.dty...
null
149,359
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr def _infer_dtype(dtype: tf.DType): default_dtype = ivy.infer_default_dtype(dtype) if ivy.dty...
null
149,360
import tensorflow as tf from typing import Union, Optional, Sequence import ivy from ivy.func_wrapper import with_unsupported_dtypes from . import backend_version from ivy.utils.einsum_parser import legalise_einsum_expr import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import ...
null
149,361
import tensorflow as tf from typing import Union, Optional, Sequence import ivy import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version if ivy.is_local(): module = ivy.utils._importlib.import_cache[__name__] else: module =...
null
149,362
import tensorflow as tf from typing import Union, Optional, Sequence import ivy import ivy from ivy.utils.exceptions import handle_exceptions from ivy.functional.frontends import set_frontend_to_specific_version if ivy.is_local(): module = ivy.utils._importlib.import_cache[__name__] else: module =...
null
149,363
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def gelu( x: Tensor, /, *, ...
null
149,364
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def leaky_relu( x: Tensor, /, ...
null
149,365
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def relu(x: Tensor, /, *, complex_mode="j...
null
149,366
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def sigmoid( x: Tensor, /, *, complex...
null
149,367
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def softmax( x: Tensor, /, *, axis: O...
null
149,368
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def softsign(x: tf.Tensor, /, out: Option...
null
149,369
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def log_softmax( x: Tensor, /, ...
null
149,370
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def softplus( x: Tensor, /, *,...
null
149,371
from typing import Optional, Union, Literal import tensorflow as tf from tensorflow.python.types.core import Tensor from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from . import backend_version import ivy.functional.backends.tensorflow as tf_backend def hardswish( x: Tensor, /, ...
null
149,372
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def _reshape_fortran_...
null
149,373
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def flip( x: Uni...
null
149,374
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def permute_dims( ...
null
149,375
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def reshape( x: U...
null
149,376
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version import ivy from ivy....
null
149,377
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version import ivy from ivy....
null
149,378
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version ) ) ) ...
null
149,379
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def repeat( x: U...
null
149,380
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def expand_dims( ...
null
149,381
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def reshape( x: U...
null
149,382
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def reshape( x: U...
null
149,383
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def swapaxes( x,...
null
149,384
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version ) ) ) ...
null
149,385
import math from numbers import Number from typing import Union, Tuple, Optional, List, Sequence import numpy as np import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes from ivy.functional.ivy.manipulation import _calculate_out_shape from . import backend_version def expand_dims( ...
null
149,386
from typing import Union, Optional import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from ivy import promote_types_of_inputs from . import backend_version def acos( x: Union[tf.Tensor, tf.Variable], /, *, out: Optional[Union[tf.Tensor, tf.Var...
null
149,387
from typing import Union, Optional import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from ivy import promote_types_of_inputs from . import backend_version def acosh( x: Union[tf.Tensor, tf.Variable], /, *, out: Optional[Union[tf.Tensor, tf.Va...
null
149,388
from typing import Union, Optional import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from ivy import promote_types_of_inputs from . import backend_version def logical_or( x1: Union[tf.Tensor, tf.Variable], x2: Union[tf.Tensor, tf.Variable], /, ...
null
149,389
from typing import Union, Optional import tensorflow as tf import ivy from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes from ivy import promote_types_of_inputs from . import backend_version def asin( x: Union[tf.Tensor, tf.Variable], /, *, out: Optional[Union[tf.Tensor, tf.Var...
null