Skip to content

Commit

Permalink
Merge pull request tensorflow#9351 from av8ramit/cherrypicks
Browse files Browse the repository at this point in the history
TensorBoard Cherrypick
  • Loading branch information
Amit Patankar authored Apr 21, 2017
2 parents b728b74 + fa25fcb commit 1ec6ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
// if undefined, default value (enable for first k runs, disable after).
type: Object,
value: TF.URIStorage.getObjectInitializer('runSelectionState', {}),
observer: "_storeRunToIsCheckedMapping",
},
// (Allows state to persist across regex filtering)
outSelected: {
Expand Down Expand Up @@ -230,7 +231,6 @@
},
observers: [
"_setIsolatorIcon(runSelectionState, names)",
"_storeRunToIsCheckedMapping(runSelectionState)",
],
_storeRunToIsCheckedMapping: TF.URIStorage.getObjectObserver('runSelectionState', {}),
_makeRegex: function(regex) {
Expand Down
18 changes: 1 addition & 17 deletions tensorflow/tensorboard/dist/tf-tensorboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3325,6 +3325,7 @@ <h3>[[name]]</h3>
// if undefined, default value (enable for first k runs, disable after).
type: Object,
value: TF.URIStorage.getObjectInitializer('runSelectionState', {}),
observer: "_storeRunToIsCheckedMapping",
},
// (Allows state to persist across regex filtering)
outSelected: {
Expand Down Expand Up @@ -3373,24 +3374,7 @@ <h3>[[name]]</h3>
},
observers: [
"_setIsolatorIcon(runSelectionState, names)",
"_storeRunToIsCheckedMappingWithDefault(runSelectionState, namesMatchingRegex)",
],
_storeRunToIsCheckedMappingWithDefault() {
var runSelectionStateIsDefault = Object.keys(this.runSelectionState).length == 0;
if (runSelectionStateIsDefault || this.namesMatchingRegex == null) {
return;
}
var _this = this;
var allToggledOn = this.namesMatchingRegex
.every(function(n) {return _this.runSelectionState[n]});
var allToggledOff = this.namesMatchingRegex
.every(function(n) {return !_this.runSelectionState[n]});
var defaultOff = this.namesMatchingRegex.length > this.maxRunsToEnableByDefault;
if (defaultOff && allToggledOff || !defaultOff && allToggledOn) {
this.runSelectionState = {};
}
this._storeRunToIsCheckedMapping(this.runSelectionState);
},
_storeRunToIsCheckedMapping: TF.URIStorage.getObjectObserver('runSelectionState', {}),
_makeRegex: function(regex) {
try {
Expand Down

0 comments on commit 1ec6ed5

Please sign in to comment.