代码拉取完成,页面将自动刷新
同步操作将从 OpenDILab开源决策智能平台/DI-engine 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
CI := $(shell echo ${CI})
WORKERS ?= 2
WORKERS_COMMAND := $(if ${WORKERS},-n ${WORKERS} --dist=loadscope,)
DURATIONS ?= 10
DURATIONS_COMMAND := $(if ${DURATIONS},--durations=${DURATIONS},)
RANGE_DIR ?=
TEST_DIR ?= $(if ${RANGE_DIR},${RANGE_DIR},./ding)
COV_DIR ?= $(if ${RANGE_DIR},${RANGE_DIR},./ding)
FORMAT_DIR ?= $(if ${RANGE_DIR},${RANGE_DIR},./ding)
PLATFORM_TEST_DIR ?= $(if ${RANGE_DIR},${RANGE_DIR},./ding/entry/tests/test_serial_entry.py ./ding/entry/tests/test_serial_entry_onpolicy.py)
docs:
$(MAKE) -C ./ding/docs html
unittest:
pytest ${TEST_DIR} \
--cov-report=xml \
--cov-report term-missing \
--cov=${COV_DIR} \
${DURATIONS_COMMAND} \
${WORKERS_COMMAND} \
-sv -m unittest \
algotest:
pytest ${TEST_DIR} \
${DURATIONS_COMMAND} \
-sv -m algotest
cudatest:
pytest ${TEST_DIR} \
-sv -m cudatest
envpooltest:
pytest ${TEST_DIR} \
-sv -m envpooltest
dockertest:
./ding/scripts/docker-test-entry.sh
platformtest:
pytest ${PLATFORM_TEST_DIR} \
--cov-report term-missing \
--cov=${COV_DIR} \
${WORKERS_COMMAND} \
-sv -m unittest \
benchmark:
pytest ${TEST_DIR} \
--durations=0 \
-sv -m benchmark
test: unittest # just for compatibility, can be changed later
cpu_test: unittest algotest benchmark
all_test: unittest algotest cudatest benchmark
format:
yapf --in-place --recursive -p --verbose --style .style.yapf ${FORMAT_DIR}
format_test:
bash format.sh ./ding --test
flake_check:
flake8 ./ding
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。