Skip to content

Commit

Permalink
WIP #929 Removed debug logs and set torch installation to true
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Dec 20, 2016
1 parent 417ae8a commit 304add9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/plugins/ValidateArchitecture/ValidateArchitecture.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ define([
tests = [],
id;

console.log('creating output files!');
if (!TORCH_INSTALLED) {
return this.validationFinished();
}
Expand All @@ -84,8 +83,6 @@ define([
}

// Run each code snippet
console.log('found ' + tests.length + ' tests:');
console.log('\t', tests.map(t => t[0]));
this.validateLayers(tests)
.then(errors => this.validationFinished(errors))
.fail(err => this.logger.error(`validation failed: ${err}`));
Expand Down Expand Up @@ -115,7 +112,6 @@ define([
};

ValidateArchitecture.prototype.validateLayers = function (layerTests) {
console.log('layerTests.length', layerTests.length);
return Q.all(layerTests.map(layer => this.validateLayer(layer[0], layer[1])))
.then(results => Q.nfcall(rm_rf, this._tmpFileId)
.then(() => results.filter(result => !!result))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe('ValidateArchitecture', function () {
return manager.initializePlugin(pluginName)
.then(plugin_ => {
plugin = plugin_;
plugin.setTorchInstalled(true);
return manager.configurePlugin(plugin, {}, context);
})
.nodeify(done);
Expand Down

0 comments on commit 304add9

Please sign in to comment.