Fix api test, fix testing script for macos

avx_docs
Yu Yang 9 years ago
parent b102d294f3
commit ba68704edb

@ -20,11 +20,7 @@ popd > /dev/null
cd $SCRIPTPATH
if [ ! -f ../../dist/*.whl ] ; then # Swig not compiled.
exit 0
fi
rm .test_env -rf
rm -rf .test_env
virtualenv .test_env
source .test_env/bin/activate

@ -66,7 +66,9 @@ Tester::Tester(const std::shared_ptr<TrainerConfigHelper>& config,
}
void Tester::startTestPeriod() {
testDataProvider_->reset();
if (testDataProvider_) {
testDataProvider_->reset();
}
testEvaluator_->start();
testContext_.cost = 0;
testContext_.numSamples = 0;

Loading…
Cancel
Save