Skip to content

Commit

Permalink
Various typo fixes in exla/
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 26, 2024
1 parent 2f44f4a commit 817a5da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion exla/lib/exla/device_buffer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule EXLA.DeviceBuffer do
end

@doc """
Places the given binary `buffer` on the given `device` using `client`.
Places the given binary `data` on the given `device` using `client`.
"""
def place_on_device(data, %EXLA.Typespec{} = typespec, client = %Client{}, device_id)
when is_integer(device_id) and is_binary(data) do
Expand Down
2 changes: 1 addition & 1 deletion exla/lib/exla/mlir/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ defmodule EXLA.MLIR.Module do
It defaults to 1 but you can set it if you want to enable single-program
multiple data.
* `:use_spmd` - enables Single-Program Multiple-Data partioning.
* `:use_spmd` - enables Single-Program Multiple-Data partitioning.
This is set to true if `:num_partitions` is more than one, otherwise is `false`.
* `:module_compilation` - either `:to_mlir` or `:to_pjrt`. The default is `:to_pjrt`.
Expand Down
6 changes: 3 additions & 3 deletions exla/test/exla/defn/lock_test.exs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
defmodule EXLA.Defn.LockeTest do
defmodule EXLA.Defn.LockTest do
use ExUnit.Case, async: true

alias EXLA.Defn.Lock, as: L

test "locks a given key while process is alive", config do
test "locks a given key while the process is alive", config do
parent = self()

task1 =
Expand Down Expand Up @@ -96,7 +96,7 @@ defmodule EXLA.Defn.LockeTest do
assert Task.await(task3)
end

test "transfers", config do
test "transfers locks correctly", config do
parent = self()

task1 =
Expand Down
2 changes: 1 addition & 1 deletion exla/test/exla/defn/vectorize_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ defmodule EXLA.Defn.VectorizeTest do
end

test "simple cond" do
# this tests the case where we have a two vectorized predicates
# This tests the case where we have two vectorized predicates
pred1 = Nx.vectorize(~VEC[1 0 0], :pred)
pred2 = Nx.vectorize(~VEC[0 0 0], :pred)

Expand Down

0 comments on commit 817a5da

Please sign in to comment.