id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
149,390 | 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 asinh(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Va... | null |
149,391 | 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 atan(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Var... | null |
149,392 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,393 | 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 atanh(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Va... | null |
149,394 | 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_and(
x1: Union[tf.Tensor, tf.Variable],
x2: Union[tf.Tensor, tf.Variable],
/,
... | null |
149,395 | 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_not(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, ... | null |
149,396 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,397 | 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,398 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,399 | 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_xor(
x1: Union[tf.Tensor, tf.Variable],
x2: Union[tf.Tensor, tf.Variable],
/,
... | null |
149,400 | 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 cos(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,401 | 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 cosh(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Var... | null |
149,402 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,403 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,404 | 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 exp(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,405 | 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 expm1(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Va... | null |
149,406 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,407 | 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 minimum(
x1: Union[tf.Tensor, tf.Variable],
x2: Union[tf.Tensor, tf.Variable],
/,
*,... | null |
149,408 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,409 | 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 real(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,410 | 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 lcm(
x1: Union[tf.Tensor, tf.Variable],
x2: Union[tf.Tensor, tf.Variable],
/,
*,
... | null |
149,411 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,412 | 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 log(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Varia... | null |
149,413 | 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 log(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Varia... | null |
149,414 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,415 | 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 abs(
x: Union[float, tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, t... | null |
149,416 | 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 negative(
x: Union[float, tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Ten... | null |
149,417 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,418 | 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 positive(
x: Union[float, tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Ten... | null |
149,419 | 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 sign(
x: Union[tf.Tensor, tf.Variable],
/,
*,
np_variant: Optional[bool] = True,
... | null |
149,420 | 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 sin(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,421 | 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 sinh(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Var... | null |
149,422 | 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 sqrt(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Var... | null |
149,423 | 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 square(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.V... | null |
149,424 | 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 multiply(
x1: Union[float, tf.Tensor, tf.Variable],
x2: Union[float, tf.Tensor, tf.Variable]... | null |
149,425 | 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 tan(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,426 | 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 tanh(
x: Union[tf.Tensor, tf.Variable],
/,
*,
complex_mode="jax",
out: Optional... | null |
149,427 | 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 trapz(
y: Union[tf.Tensor, tf.Variable],
/,
*,
x: Optional[Union[tf.Tensor, tf.Vari... | null |
149,428 | 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 ceil(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,429 | 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 erf(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.Vari... | null |
149,430 | 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 reciprocal(
x: Union[float, tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.T... | null |
149,431 | 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
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_... | null |
149,432 | 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 rad2deg(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.... | null |
149,433 | 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 isreal(
x: Union[tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, tf.V... | null |
149,434 | 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 abs(
x: Union[float, tf.Tensor, tf.Variable],
/,
*,
out: Optional[Union[tf.Tensor, t... | null |
149,435 | 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 gcd(
x1: Union[tf.Tensor, tf.Variable, int, list, tuple],
x2: Union[tf.Tensor, tf.Variable,... | null |
149,436 | 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 angle(
input: Union[tf.Tensor, tf.Variable],
/,
*,
deg: Optional[bool] = None,
... | null |
149,437 | 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_and(
x1: Union[tf.Tensor, tf.Variable],
x2: Union[tf.Tensor, tf.Variable],
/,
... | null |
149,438 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
def _same_device(dev_a, dev_b):
if dev_a is None or dev_b is None:
return False
return "/" + ":".join(dev_a[1:].split(":")[-2:]) == "/" + ":".join(
dev_b[1:].split... | null |
149,439 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
def clear_cached_mem_on_dev(device: str, /):
return None | null |
149,440 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
def num_gpus() -> int:
return len(tf.config.list_physical_devices("GPU")) | null |
149,441 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
def gpu_is_available() -> bool:
return len(tf.config.list_physical_devices("GPU")) > 0 | null |
149,442 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
def tpu_is_available() -> bool:
try:
resolver = tf.distribute.cluster_resolver.TPUClusterResolver()
tf.config.experimental_connect_to_cluster(resolver)
tf.tpu... | null |
149,443 | import tensorflow as tf
from typing import Union, Optional
import ivy
from ivy.functional.ivy.device import Profiler as BaseProfiler
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... | null |
149,444 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,445 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,446 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,447 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,448 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,449 | from typing import Optional, Union, Sequence
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_randint_check_dtype_and_bound,
... | null |
149,450 | from typing import Optional, Tuple, Union, Sequence
import tensorflow as tf
from tensorflow.python.types.core import Tensor
import ivy
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
from . import backend_version
from ivy.functional.ivy.layers import (
_deconv_length,
_get_x_data_for... | null |
149,451 | from typing import Optional, Tuple, Union, Sequence
import tensorflow as tf
from tensorflow.python.types.core import Tensor
import ivy
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
from . import backend_version
from ivy.functional.ivy.layers import (
_deconv_length,
_get_x_data_for... | null |
149,452 | from typing import Optional, Tuple, Union, Sequence
import tensorflow as tf
from tensorflow.python.types.core import Tensor
import ivy
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
from . import backend_version
from ivy.functional.ivy.layers import (
_deconv_length,
_get_x_data_for... | null |
149,453 | from typing import Optional, Tuple, Union, Sequence
import tensorflow as tf
from tensorflow.python.types.core import Tensor
import ivy
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
from . import backend_version
from ivy.functional.ivy.layers import (
_deconv_length,
_get_x_data_for... | null |
149,454 | from typing import Optional, Tuple, Union, Sequence
import tensorflow as tf
from tensorflow.python.types.core import Tensor
import ivy
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
from . import backend_version
from ivy.functional.ivy.layers import (
_deconv_length,
_get_x_data_for... | null |
149,455 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
def as_nat... | null |
149,456 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
def broadc... | null |
149,457 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
class Finf... | null |
149,458 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
def as_ivy... | null |
149,459 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
def as_ivy... | null |
149,460 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
def as_ivy... | null |
149,461 | from typing import Optional, Union, Sequence, List
import numpy as np
import tensorflow as tf
from tensorflow.python.framework.dtypes import DType
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
from . import backend_version
ivy_dtype_... | null |
149,462 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,463 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,464 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,465 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,466 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,467 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,468 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,469 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,470 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,471 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,472 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,473 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,474 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,475 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,476 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,477 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,478 | import functools
from operator import mul
from typing import Optional, Union, Sequence, Callable, Tuple
import numpy as np
import multiprocessing as _multiprocessing
from numbers import Number
import tensorflow as tf
import ivy
from ivy.functional.ivy.gradients import _is_variable
from ivy.func_wrapper import with_unsu... | null |
149,479 | from typing import Optional, Union
import tensorflow_probability as tfp
import tensorflow as tf
def trapz(
y: Union[tf.Tensor, tf.Variable],
/,
*,
x: Optional[Union[tf.Tensor, tf.Variable]] = None,
dx: float = 1.0,
axis: int = -1,
out: Optional[Union[tf.Tensor, tf.Variable]] = None,
) -> Un... | null |
149,480 | from typing import Optional, Sequence, Tuple, Union
import ivy
from ivy.func_wrapper import with_supported_dtypes
from ivy.functional.backends.numpy.experimental.statistical import (
_handle_axis,
_quantile,
_validate_quantile,
)
import tensorflow_probability as tfp
import tensorflow as tf
from .... import ... | null |
149,481 | from typing import Optional, Sequence, Tuple, Union
import ivy
from ivy.func_wrapper import with_supported_dtypes
from ivy.functional.backends.numpy.experimental.statistical import (
_handle_axis,
_quantile,
_validate_quantile,
)
import tensorflow_probability as tfp
import tensorflow as tf
from .... import ... | null |
149,482 | from typing import Optional, Sequence, Tuple, Union
import ivy
from ivy.func_wrapper import with_supported_dtypes
from ivy.functional.backends.numpy.experimental.statistical import (
_handle_axis,
_quantile,
_validate_quantile,
)
import tensorflow_probability as tfp
import tensorflow as tf
from .... import ... | null |
149,483 | from typing import Optional, Sequence, Tuple, Union
import ivy
from ivy.func_wrapper import with_supported_dtypes
from ivy.functional.backends.numpy.experimental.statistical import (
_handle_axis,
_quantile,
_validate_quantile,
)
import tensorflow_probability as tfp
import tensorflow as tf
from .... import ... | null |
149,484 | from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_check_shapes_broadcastable,
)
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
import tensorflow as tf
from tensorflow.python.framework.dtypes im... | null |
149,485 | from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_check_shapes_broadcastable,
)
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
import tensorflow as tf
from tensorflow.python.framework.dtypes im... | null |
149,486 | from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_check_shapes_broadcastable,
)
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
import tensorflow as tf
from tensorflow.python.framework.dtypes im... | null |
149,487 | from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.ivy.random import (
_check_bounds_and_get_shape,
_check_shapes_broadcastable,
)
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
import tensorflow as tf
from tensorflow.python.framework.dtypes im... | null |
149,488 | import tensorflow as tf
from typing import Callable
import ivy
from ivy.func_wrapper import inputs_to_native_arrays
from ivy.functional.ivy.gradients import _get_required_float_variables
from ivy.functional.ivy.gradients import (
_flatten_containers,
_rebuild_flattened_containers,
)
def inputs_to_native_arrays... | null |
149,489 | import tensorflow as tf
from typing import Callable
import ivy
from ivy.func_wrapper import inputs_to_native_arrays
from ivy.functional.ivy.gradients import _get_required_float_variables
from ivy.functional.ivy.gradients import (
_flatten_containers,
_rebuild_flattened_containers,
)
def _flatten_containers(inp... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.