尝试增加全局步骤以提高模型的性能
- 用于使用tf.estimator进行模型训练并尝试通过多个GPU增加全局步长。
对于DNNClassifier应用的单个和多个gpu [no gpu:2]的以下配置
+(function($) {
'use strict';
document.addEventListener('DOMContentLoaded', function() {
var buttons = document.querySelectorAll('[data-dialog="true"]');
Array.prototype.forEach.call(buttons, function(btn) {
btn.addEventListener('click', function(e) {
var link = e.currentTarget,
url = link.getAttribute('href'),
messageText = link.getAttribute('data-dialog-message') || 'Êtes-vous sûr ?',
btnClass = (link.getAttribute('data-dialog-danger')) ? 'is-danger' : 'is-main-color',
actionTitle = link.getAttribute('data-dialog-action-title') || 'Valider',
dialogNode, lightNode;
lightNode = document.createElement('div');
lightNode.classList.add('is-dark-light');
document.body.appendChild(lightNode);
$(lightNode).fadeIn();
dialogNode = document.createElement('div');
dialogNode.classList.add('dialog');
document.body.appendChild(dialogNode);
dialogNode.innerHTML = '<p>' + messageText + '</p><div class="space-20"></div><div class="flexline is-full has-margin no-mobile"><a class="btn" type="reset">Annuler</a><a data-loader="true" class="btn ' + btnClass + '" type="submit">' + actionTitle + '</a></div>';
$(dialogNode).fadeIn();
e.preventDefault();
dialogNode.querySelector('[type="submit"]').addEventListener('click', function() {
window.location.href = url;
});
dialogNode.querySelector('[type="reset"]').addEventListener('click', function() {
$(lightNode).fadeOut( function() {
lightNode.remove();
$(dialogNode).fadeOut( function() {
dialogNode.remove();
});
});
});
});
});
});
})(jQuery);