-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to GNNLux for first release (#540)
- Loading branch information
1 parent
5b5663e
commit bd1614c
Showing
9 changed files
with
92 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[deps] | ||
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66" | ||
ConcreteStructs = "2569d6c7-a4a2-43d3-a901-331e8e4be471" | ||
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196" | ||
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c" | ||
GNNLux = "e8545f4d-a905-48ac-a8c4-ca114b98986d" | ||
GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48" | ||
Lux = "b2108857-7c20-44ae-9111-449ecde12c47" | ||
LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623" | ||
LuxTestUtils = "ac9de150-d08f-4546-94fb-7472b5760531" | ||
MLDataDevices = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40" | ||
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" | ||
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a" | ||
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe" | ||
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" |
4 changes: 3 additions & 1 deletion
4
GNNLux/test/layers/basic_tests.jl → GNNLux/test/layers/basic.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
GNNLux/test/layers/temporalconv_test.jl → GNNLux/test/layers/temporalconv.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
using Test | ||
using Lux | ||
using GNNLux | ||
using Random, Statistics | ||
using TestItemRunner | ||
|
||
using ReTestItems | ||
# using Pkg, Preferences, Test | ||
# using InteractiveUtils, Hwloc | ||
## See https://www.julia-vscode.org/docs/stable/userguide/testitems/ | ||
## for how to run the tests within VS Code. | ||
## See test_module.jl for the test infrastructure. | ||
|
||
runtests(GNNLux) | ||
## Uncomment below and in test_module.jl to change the default test settings | ||
# ENV["GNN_TEST_CPU"] = "false" | ||
# ENV["GNN_TEST_CUDA"] = "true" | ||
# ENV["GNN_TEST_AMDGPU"] = "true" | ||
# ENV["GNN_TEST_Metal"] = "true" | ||
|
||
# The only available tag at the moment is :gpu | ||
# Tests not tagged with :gpu are considered to be CPU tests | ||
# Tests tagged with :gpu should run on all GPU backends | ||
|
||
# TODO add gpu tests. Not urgent since almost the whole path for layers is tested | ||
# in GraphNeuralNetworks.jl | ||
|
||
if get(ENV, "GNN_TEST_CPU", "true") == "true" | ||
@run_package_tests filter = ti -> :gpu ∉ ti.tags | ||
end | ||
if get(ENV, "GNN_TEST_CUDA", "false") == "true" | ||
@run_package_tests filter = ti -> :gpu ∈ ti.tags | ||
end | ||
if get(ENV, "GNN_TEST_AMDGPU", "false") == "true" | ||
@run_package_tests filter = ti -> :gpu ∈ ti.tags | ||
end | ||
if get(ENV, "GNN_TEST_Metal", "false") == "true" | ||
@run_package_tests filter = ti -> :gpu ∈ ti.tags | ||
end |
28 changes: 26 additions & 2 deletions
28
GNNLux/test/shared_testsetup.jl → GNNLux/test/test_module.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters