Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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