Skip to content

Commit c022b9c

Browse files
committed
stop reliance on particular values in array
1 parent 5ee901e commit c022b9c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1111
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
12-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1312

1413
[compat]
1514
Adapt = "3.0"
16-
ChainRulesCore = "1.13"
1715
CUDA = "3.8"
16+
ChainRulesCore = "1.13"
1817
MLUtils = "0.2"
1918
NNlib = "0.8"
2019

2120
[extras]
22-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2321
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2422

2523
[targets]

test/array.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using Random
2-
3-
Random.seed!(0)
4-
51
ov = OneHotVector(rand(1:10), 10)
62
ov2 = OneHotVector(rand(1:11), 11)
73
om = OneHotMatrix(rand(1:10, 5), 10)
@@ -40,8 +36,6 @@ end
4036
@test oa[CartesianIndex(3, 3, 3)] == oa[3, 3, 3]
4137

4238
# linear indexing
43-
@test om[9] == true
44-
@test om[10] == false
4539
@test om[11] == om[1, 2]
4640
@test oa[52] == oa[2, 1, 2]
4741

0 commit comments

Comments
 (0)