id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
147,189 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def mean_absolute_percentage_error(y_true, y_pred):
y_true = ivy.astype(y_true, y_pred.dtype, copy=False)
diff = ivy.abs((y_true - y_pred) / ivy.maximum(ivy.abs(y_true), 1e-7))
return 100.0 * ivy.mean(diff, axis... | null |
147,190 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def mean_squared_error(y_true, y_pred):
return ivy.mean(ivy.square(ivy.subtract(y_true, y_pred)), axis=-1) | null |
147,191 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def mean_squared_logarithmic_error(y_true, y_pred):
y_true = ivy.astype(y_true, y_pred.dtype)
first_log = ivy.log(ivy.maximum(y_pred, 1e-7) + 1.0)
second_log = ivy.log(ivy.maximum(y_true, 1e-7) + 1.0)
return ... | null |
147,192 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def poisson(y_true, y_pred):
y_true = ivy.astype(y_true, y_pred.dtype, copy=False)
return ivy.mean(y_pred - y_true * ivy.log(y_pred + 1e-7), axis=-1) | null |
147,193 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def sparse_categorical_crossentropy(y_true, y_pred, from_logits=False, axis=-1):
if from_logits:
y_pred = ivy.softmax(y_pred)
return ivy.sparse_cross_entropy(y_true, y_pred, axis=axis) | null |
147,194 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def _sparse_top_k_categorical_matches(y_true, y_pred, k=5):
def sparse_top_k_categorical_accuracy(y_true, y_pred, k=5):
return _sparse_top_k_categorical_matches(y_true, y_pred, k) | null |
147,195 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
def _cond_convert_labels(y_true):
are_zeros = ivy.equal(y_true, 0.0)
are_ones = ivy.equal(y_true, 1.0)
is_binary = ivy.all(ivy.logical_or(are_zeros, are_ones))
# convert [0, 1] labels to [-1, 1]
if is_bina... | null |
147,196 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,197 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,198 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,199 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,200 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,201 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,202 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,203 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,204 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,205 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,206 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,207 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,208 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,209 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,210 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,211 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,212 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,213 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,214 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,215 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,216 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,217 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,218 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,219 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,220 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,221 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,222 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,223 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,224 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,225 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,226 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,227 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,228 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,229 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,230 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,231 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,232 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,233 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,234 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,235 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,236 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,237 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,238 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,239 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,240 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,241 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,242 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,243 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,244 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,245 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,246 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,247 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,248 | from builtins import slice as py_slice, range as py_range
import ivy
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
to_ivy_dtype,
)
from ivy.functional.frontends.tensorflow.te... | null |
147,249 | import ivy
from ivy import with_unsupported_dtypes
import ivy.functional.frontends.tensorflow as tf_frontend
from ivy.functional.frontends.tensorflow.func_wrapper import _to_ivy_array
from ivy.functional.frontends.numpy.creation_routines.from_existing_data import array
class TensorShape:
# TODO: there are still som... | Converts the given object to a TensorShape. |
147,250 | import ivy
from ivy import with_unsupported_dtypes
import ivy.functional.frontends.tensorflow as tf_frontend
from ivy.functional.frontends.tensorflow.func_wrapper import _to_ivy_array
from ivy.functional.frontends.numpy.creation_routines.from_existing_data import array
class TensorShape:
# TODO: there are still som... | null |
147,251 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
import ivy.functional.frontends.tensorflow.nn as tf_nn
)
)
)
)
def depthwise_conv2d(
input,
filter,
strides,
padding,... | null |
147,252 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
import ivy.functional.frontends.tensorflow.nn as tf_nn
def fused_batch_norm(
x,
scale,
offset,
mean=None,
variance=None,
eps... | null |
147,253 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
import ivy.functional.frontends.tensorflow.nn as tf_nn
)
)
)
)
def max_pool(value, ksize, strides, padding, data_format="NHWC", name=... | null |
147,254 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
import ivy.functional.frontends.tensorflow.nn as tf_nn
)
)
)
)
def separable_conv2d(
input,
depthwise_filter,
pointwise_f... | null |
147,255 | import functools
import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes
def extract_patches(images, sizes, strides, rates, padding):
depth = images.shape[-1]
kernel_size = functools.reduce(lambda x, y: x * y, sizes, 1)
... | null |
147,256 | import functools
import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
from ivy.func_wrapper import with_supported_dtypes
def resize(
image, size, method="bilinear", preserve_aspect_ratio=False, antialias=False
):
unsqueezed = False
if len(image.shape) == 3:
... | null |
147,257 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
from ivy.func_wrapper import with_supported_dtypes
def dct(input, type=2, n=None, axis=-1, norm=None, name=None):
return ivy.dct(input, type=type, n=n, axis=axis, norm=norm)
import ivy
from ... | null |
147,258 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
from ivy.func_wrapper import with_supported_dtypes
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_frontend_to_specific_version
... | null |
147,259 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
from ivy.func_wrapper import with_supported_dtypes
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_frontend_to_specific_version
... | null |
147,260 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
from ivy.func_wrapper import with_supported_dtypes
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_frontend_to_specific_version
... | null |
147,261 | import ivy
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
from ivy.func_wrapper import with_supported_dtypes
import ivy
from ivy.utils.exceptions import handle_exceptions
from ivy.functional.frontends import set_frontend_to_specific_version
... | null |
147,262 | import ivy.functional.frontends.tensorflow.ragged as ragged_tf
from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
import ivy
def _flatten_composite_array(x, expand_composites=False):
if isinstance(x, ragged_tf.RaggedTensor):
if not expand_composites:
return x
... | null |
147,263 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,264 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,265 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,266 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,267 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,268 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,269 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,270 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,271 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,272 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,273 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,274 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,275 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,276 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,277 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,278 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,279 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,280 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,281 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,282 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,283 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,284 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,285 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,286 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,287 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
147,288 | import ivy
from ivy.functional.frontends.tensorflow import check_tensorflow_casting
from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
from ivy.functional.frontends.tensorflow.func_wrapper import (
to_ivy_arrays_and_back,
handle_tf_dtype,
)
import ivy.functional.frontends.tensorflow as ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.