File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed
Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,4 @@ if VERSION < v"1.7.0-DEV.793"
99 end
1010
1111 (obj:: Returns )(args... ; kw... ) = obj. value
12- function Base. show (io:: IO , obj:: Returns )
13- show (io, typeof (obj))
14- print (io, " (" )
15- show (io, obj. value)
16- return print (io, " )" )
17- end
1812end
Original file line number Diff line number Diff line change @@ -9,29 +9,6 @@ CartesianIndex(5, 3)
99"""
1010drop_batch_index (C:: CartesianIndex ) = CartesianIndex (C. I[1 : (end - 1 )])
1111
12- """
13- ones_like(x)
14-
15- Returns array of ones of same shape and type as `x`.
16-
17- ## Example
18- ```julia-repl
19- julia> x = rand(Float16, 2, 4, 1)
20- 2×4×1 Array{Float16, 3}:
21- [:, :, 1] =
22- 0.2148 0.9053 0.751 0.358
23- 0.38 0.09033 0.04053 0.6543
24-
25- julia> ones_like(x)
26- 2×4×1 Array{Float16, 3}:
27- [:, :, 1] =
28- 1.0 1.0 1.0 1.0
29- 1.0 1.0 1.0 1.0
30- ```
31- """
32- ones_like (x:: AbstractArray ) = fill! (similar (x), 1 )
33- ones_like (x:: Number ) = oneunit (x)
34-
3512"""
3613 masked_copy(A, mask)
3714
You can’t perform that action at this time.
0 commit comments