alibaba / euler

A distributed graph deep learning framework.
Apache License 2.0
2.89k stars 559 forks source link

ThreadLocalRandom() 随机数分布问题 - sample_neighbor_layerwise OP #321

Open LuconYang opened 3 years ago

LuconYang commented 3 years ago

在对 sample_neighbor_layerwise OP测试的时候,发现最终结果和预期存在出入。定位到是 DAG流程中 API_SAMPLE_L,3 中采样邻居的输出节点分布不符合预期。以下是具体结果和复现方法:

base.initialize_graph({ 'mode': 'local', 'data_path': '/tmp/euler', 'sampler_type': 'all', 'data_type': 'all' })

sample_neighbor_layerwise([[1, 2, 3]], ['0', '1'], 10, -1, '')(循环执行10000次)