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"
9
9
end
10
10
11
11
(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
18
12
end
Original file line number Diff line number Diff line change @@ -9,29 +9,6 @@ CartesianIndex(5, 3)
9
9
"""
10
10
drop_batch_index (C:: CartesianIndex ) = CartesianIndex (C. I[1 : (end - 1 )])
11
11
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
-
35
12
"""
36
13
masked_copy(A, mask)
37
14
You can’t perform that action at this time.
0 commit comments