项目文件夹

文件
Quan (Andy) Gan e19cd62ecd [Test] Unify tests for different backends (#333)
* test basics

* batched graph & filter, mxnet filter fix

* frame and function; bugfix

* test graph adj and inc matrices

* fixing start = 0 for mxnet

* test index

* inplace update & line graph

* multi send recv

* more tests

* oops

* more tests

* removing old test files; readonly graphs for mxnet still kept

* modifying test scripts

* adding a placeholder for pytorch to reserve directory

* torch 0.4.1 compat fixes

* moving backend out of compute to avoid nose detection

* tests guide

* mx sparse-to-dense/sparse-to-numpy is buggy

* oops

* contribution guide for unit tests

* printing incmat

* printing dlpack

* small push

* typo

* fixing duplicate entries that causes undefined behavior

* move equal comparison to backend
2019-01-05 23:32:33 -05:00

18 行
760 B
Markdown

Unit test
===
The code organization goes as follows:
* `backend`: Additional unified tensor interface for supported frameworks.
The functions there are only used in unit tests, not DGL itself. Note that
the code there are not unit tests by themselves.
* `compute`: All framework-agnostic computation-related unit tests go there.
* `${DGLBACKEND}` (e.g. `pytorch` and `mxnet`): All framework-specific
computation-related unit tests go there.
* `graph_index`: All unit tests for C++ graph structure implementation go
there. The Python API being tested in this directory, if any, should be
as minimal as possible (usually simple wrappers of corresponding C++
functions).
* `lint`: Pylint-related files.
* `scripts`: Automated test scripts for CI.