Skip to content

Commit f4dafaf

Browse files
committed
Mark vectorize/devectoriza as vectorization operations
1 parent 48b088c commit f4dafaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nx/lib/nx.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4705,7 +4705,7 @@ defmodule Nx do
47054705
iex> Nx.vectorize(t, :x)
47064706
** (ArgumentError) cannot use name :x for new vectorized axes because there's already a vectorized axis with the same name
47074707
"""
4708-
@doc type: :shape
4708+
@doc type: :vectorization
47094709
@spec vectorize(
47104710
tensor :: Nx.Tensor.t(),
47114711
name_or_axes :: atom() | [atom() | {atom(), pos_integer()}]
@@ -4850,7 +4850,7 @@ defmodule Nx do
48504850
>
48514851
48524852
"""
4853-
@doc type: :shape
4853+
@doc type: :vectorization
48544854
def devectorize(tensor_or_container, opts \\ [])
48554855

48564856
def devectorize(%T{shape: shape, names: names, vectorized_axes: vectorized_axes} = tensor, opts)

0 commit comments

Comments
 (0)