aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/tensorboard/components/tf-graph-common/lib/template.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tensorboard/components/tf-graph-common/lib/template.ts b/tensorflow/tensorboard/components/tf-graph-common/lib/template.ts
index 5d6a93a1f5..7800d46029 100644
--- a/tensorflow/tensorboard/components/tf-graph-common/lib/template.ts
+++ b/tensorflow/tensorboard/components/tf-graph-common/lib/template.ts
@@ -41,10 +41,10 @@ export function detect(h, verifyTemplate): {[templateId: string]: string[]} {
// maximum differentiation.
return <{[templateId: string]: string[]}>_(templates)
.pairs()
- .sortBy(function(pair: {level: number, nodes: string[]}) {
+ .sortBy(function(pair: {level: number, nodes: string[]}[]) {
return pair[1].level;
})
- .map(function(pair: {level: number, nodes: string[]}) {
+ .map(function(pair: {level: number, nodes: string[]}[]) {
return [pair[0], pair[1].nodes];
})
.object()