Skip to content

Commit

Permalink
fix: Fixed typos (used codespell pre-commit hook) (ivy-llc#27426)
Browse files Browse the repository at this point in the history
Co-authored-by: Bhushan Srivastava <59949692+he11owthere@users.noreply.github.com>
  • Loading branch information
Sai-Suraj-27 and he11owthere authored Dec 3, 2023
1 parent 0984dae commit 2e1dab4
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ivy/data_classes/array/experimental/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def polyval(
Returns
-------
ret
Simplified result of substituing x in the coefficients - final value of
Simplified result of substituting x in the coefficients - final value of
polynomial.
Examples
Expand Down
8 changes: 4 additions & 4 deletions ivy/data_classes/container/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ def _cont_prune_key_chains_input_as_dict(self, key_chains, return_cont=None):
# ---------------#

def cont_duplicate_array_keychains(self):
duplciates = ()
duplicates = ()
key_chains = self.cont_all_key_chains()
skips = set()
for i in range(len(key_chains)):
Expand All @@ -1618,9 +1618,9 @@ def cont_duplicate_array_keychains(self):
if key_chains[j] not in temp_duplicates:
temp_duplicates += (key_chains[j],)
if len(temp_duplicates) > 0:
duplciates += (temp_duplicates,)
skips = chain.from_iterable(duplciates)
return duplciates
duplicates += (temp_duplicates,)
skips = chain.from_iterable(duplicates)
return duplicates

def cont_update_config(self, **config):
new_config = {}
Expand Down
4 changes: 2 additions & 2 deletions ivy/data_classes/container/experimental/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ def static_polyval(
Returns
-------
ret
Output container containing simplified result of substituing x in the
Output container containing simplified result of substituting x in the
coefficients - final value of polynomial.
"""
return ContainerBase.cont_multi_map_in_function(
Expand Down Expand Up @@ -1385,7 +1385,7 @@ def polyval(
Returns
-------
ret
Output container containing simplified result of substituing x in the
Output container containing simplified result of substituting x in the
coefficients - final value of polynomial.
"""
return self.static_polyval(self, coeffs, x)
2 changes: 1 addition & 1 deletion ivy/engines/XLA/rust_api/xla_rs/xla_rs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ status execute(const pjrt_loaded_executable exe, const literal *inputs,
ASSIGN_OR_RETURN_STATUS(buffer,
client->BufferFromHostLiteral(*inputs[i], device));
// Wait for the transfer to have completed to avoid the literal potentially
// getting out of scope before it has been transfered.
// getting out of scope before it has been transferred.
MAYBE_RETURN_STATUS(buffer->GetReadyFuture().Await());
input_buffer_ptrs.push_back(buffer.release());
}
Expand Down
2 changes: 1 addition & 1 deletion ivy/functional/ivy/experimental/activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def celu(
out: Optional[ivy.Array] = None,
) -> ivy.Array:
"""
Apply the Continously Differentiable Exponential Linear Unit (CELU) activation
Apply the Continuously Differentiable Exponential Linear Unit (CELU) activation
function to each element of the input.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion ivy/functional/ivy/experimental/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ def polyval(
Returns
-------
ret
Simplified result of substituing x in the coefficients - final value
Simplified result of substituting x in the coefficients - final value
of polynomial.
Examples
Expand Down
2 changes: 1 addition & 1 deletion ivy/functional/ivy/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -2841,7 +2841,7 @@ def get_item(
if query.ndim == 0:
if query is False:
return ivy.zeros(shape=(0,) + x.shape, dtype=x.dtype)
return x[None] # eqivalent to ivy.expand_dims(x, axis=0)
return x[None] # equivalent to ivy.expand_dims(x, axis=0)
query = ivy.nonzero(query, as_tuple=False)
ret = ivy.gather_nd(x, query)
else:
Expand Down
2 changes: 1 addition & 1 deletion ivy/stateful/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def __repr__(self):
main_str += ")"
return main_str

# Methods to be Optionally Overriden #
# Methods to be Optionally Overridden #
# -----------------------------------#

def _create_variables(self, *, device=None, dtype=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def general_helpers_dtype_info_helper(backend, kind_dtype, dtype):

# from array-api repo
class BroadcastError(ValueError):
"""Shapes do not broadcast with eachother."""
"""Shapes do not broadcast with each other."""


# from array-api repo
Expand Down
6 changes: 3 additions & 3 deletions scripts/backend_generation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ def _update_valid_config_value(key):
ret = ret.strip("")
if ret == "":
return True
indicies = ret.split(" ")
indicies = [int(item.strip(" ")) for item in indicies]
for i in sorted(indicies, reverse=True):
indices = ret.split(" ")
indices = [int(item.strip(" ")) for item in indices]
for i in sorted(indices, reverse=True):
del config_valids[key][i]
return True

Expand Down

0 comments on commit 2e1dab4

Please sign in to comment.