|
|
@@ -174,7 +174,7 @@ limitations under the License. |
|
|
v-for="(watchpoint,index) in item.watch_points" |
|
|
v-for="(watchpoint,index) in item.watch_points" |
|
|
:key="index"> |
|
|
:key="index"> |
|
|
id:{{ watchpoint.id }} condition :{{ |
|
|
id:{{ watchpoint.id }} condition :{{ |
|
|
this.conditionMappings[watchpoint.watch_condition.condition] |
|
|
|
|
|
|
|
|
conditionMappings[watchpoint.watch_condition.condition] |
|
|
}} {{watchpoint.watch_condition.param}} |
|
|
}} {{watchpoint.watch_condition.param}} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@@ -917,16 +917,11 @@ export default { |
|
|
* Query tensor value |
|
|
* Query tensor value |
|
|
* @param { Object } data node info |
|
|
* @param { Object } data node info |
|
|
*/ |
|
|
*/ |
|
|
queryTensorValue(data) { |
|
|
|
|
|
|
|
|
retrieveTensorHistory(data) { |
|
|
const params = { |
|
|
const params = { |
|
|
mode: 'node', |
|
|
|
|
|
params: { |
|
|
|
|
|
node_type: data.type, |
|
|
|
|
|
watch_point_id: this.curWatchPointId, |
|
|
|
|
|
name: data.name, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
name: data.name, |
|
|
}; |
|
|
}; |
|
|
RequestService.retrieve(params).then( |
|
|
|
|
|
|
|
|
RequestService.retrieveTensorHistory(params).then( |
|
|
(res) => { |
|
|
(res) => { |
|
|
if (res.data && res.data.metadata) { |
|
|
if (res.data && res.data.metadata) { |
|
|
this.dealMetadata(res.data.metadata); |
|
|
this.dealMetadata(res.data.metadata); |
|
|
@@ -1089,14 +1084,13 @@ export default { |
|
|
} |
|
|
} |
|
|
if ( |
|
|
if ( |
|
|
res.data.receive_tensor && |
|
|
res.data.receive_tensor && |
|
|
res.data.receive_tensor.metadata && |
|
|
|
|
|
res.data.receive_tensor.metadata.step >= this.metadata.step && |
|
|
|
|
|
|
|
|
res.data.metadata && |
|
|
|
|
|
res.data.metadata.step >= this.metadata.step && |
|
|
res.data.receive_tensor.node_name === |
|
|
res.data.receive_tensor.node_name === |
|
|
this.$refs.tree.getCurrentKey() |
|
|
this.$refs.tree.getCurrentKey() |
|
|
) { |
|
|
) { |
|
|
this.queryTensorValue({ |
|
|
|
|
|
|
|
|
this.retrieveTensorHistory({ |
|
|
name: res.data.receive_tensor.node_name, |
|
|
name: res.data.receive_tensor.node_name, |
|
|
type: res.data.receive_tensor.node_type, |
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
if ( |
|
|
if ( |
|
|
@@ -3487,9 +3481,8 @@ export default { |
|
|
clearTimeout(this.graph.timer); |
|
|
clearTimeout(this.graph.timer); |
|
|
} |
|
|
} |
|
|
this.graph.timer = setTimeout(() => { |
|
|
this.graph.timer = setTimeout(() => { |
|
|
this.queryTensorValue({ |
|
|
|
|
|
|
|
|
this.retrieveTensorHistory({ |
|
|
name: path[0].replace('_unfold', ''), |
|
|
name: path[0].replace('_unfold', ''), |
|
|
type: this.allGraphData[path[0].replace('_unfold', '')].type, |
|
|
|
|
|
}); |
|
|
}); |
|
|
}, 500); |
|
|
}, 500); |
|
|
} |
|
|
} |
|
|
|