@@ -1305,7 +1305,7 @@ defmodule Nx do
13051305 out =
13061306 case shape do
13071307 { n } ->
1308- intermediate_shape = Tuple . duplicate ( 1 , tuple_size ( out_shape ) - 1 ) |> Tuple . append ( n )
1308+ intermediate_shape = Tuple . duplicate ( 1 , tuple_size ( out_shape ) - 1 ) |> tuple_append ( n )
13091309
13101310 backend . eye (
13111311 % T { type: type , shape: intermediate_shape , names: names } ,
@@ -1609,7 +1609,7 @@ defmodule Nx do
16091609 t
16101610 else
16111611 diag_length = div ( Nx . size ( t ) , Tuple . product ( batch_shape ) )
1612- Nx . reshape ( t , Tuple . append ( batch_shape , diag_length ) )
1612+ Nx . reshape ( t , tuple_append ( batch_shape , diag_length ) )
16131613 end
16141614 end
16151615
@@ -10365,9 +10365,9 @@ defmodule Nx do
1036510365 if opts [ :keep_axis ] do
1036610366 new_shape
1036710367 |> Tuple . delete_at ( tuple_size ( new_shape ) - 1 )
10368- |> Tuple . append ( :auto )
10368+ |> tuple_append ( :auto )
1036910369 else
10370- Tuple . append ( new_shape , :auto )
10370+ tuple_append ( new_shape , :auto )
1037110371 end
1037210372
1037310373 reshaped_tensor = reshape ( tensor , flattened_shape )
@@ -13554,7 +13554,7 @@ defmodule Nx do
1355413554 end )
1355513555 |> Nx . stack ( )
1355613556 |> Nx . revectorize ( vectorized_axes ,
13557- target_shape: Tuple . append ( List . to_tuple ( lengths ) , :auto )
13557+ target_shape: tuple_append ( List . to_tuple ( lengths ) , :auto )
1355813558 )
1355913559
1356013560 Nx . gather ( tensor , idx )
@@ -14288,7 +14288,7 @@ defmodule Nx do
1428814288 Nx.Shared . optional ( :take_along_axis , [ tensor , indices , [ axis: axis ] ] , out , fn
1428914289 tensor , indices , _opts ->
1429014290 axes_range = axes ( indices )
14291- new_axis_shape = Tuple . append ( shape ( indices ) , 1 )
14291+ new_axis_shape = tuple_append ( shape ( indices ) , 1 )
1429214292
1429314293 full_indices =
1429414294 axes_range
@@ -14471,7 +14471,7 @@ defmodule Nx do
1447114471 indices = devectorize ( indices , keep_names: false )
1447214472
1447314473 iota_shape =
14474- indices . shape |> Tuple . delete_at ( tuple_size ( indices . shape ) - 1 ) |> Tuple . append ( 1 )
14474+ indices . shape |> Tuple . delete_at ( tuple_size ( indices . shape ) - 1 ) |> tuple_append ( 1 )
1447514475
1447614476 offset_axes = ( offset - 1 ) .. 0 // - 1
1447714477
0 commit comments