# Init TrainLineage to record the training information
# Init TrainLineage to record the training information
...
@@ -164,9 +164,6 @@ def test_summary():
...
@@ -164,9 +164,6 @@ def test_summary():
# Prepare mindrecord_dataset for testing
# Prepare mindrecord_dataset for testing
eval_ds=create_mindrecord_dataset_for_testing()
eval_ds=create_mindrecord_dataset_for_testing()
model.eval(eval_ds,callbacks=[eval_callback])
model.eval(eval_ds,callbacks=[eval_callback])
# Note: Make sure to close summary
summary_writer.close()
```
```
Use the `save_graphs` option of `context` to record the computational graph after operator fusion.
Use the `save_graphs` option of `context` to record the computational graph after operator fusion.
...
@@ -174,6 +171,7 @@ Use the `save_graphs` option of `context` to record the computational graph afte
...
@@ -174,6 +171,7 @@ Use the `save_graphs` option of `context` to record the computational graph afte
> - Currently MindSpore supports recording computational graph after operator fusion for Ascend 910 AI processor only.
> - Currently MindSpore supports recording computational graph after operator fusion for Ascend 910 AI processor only.
> - It's recommended that you reduce calls to `HistogramSummary` under 10 times per batch. The more you call `HistogramSummary`, the more performance overhead.
> - It's recommended that you reduce calls to `HistogramSummary` under 10 times per batch. The more you call `HistogramSummary`, the more performance overhead.
> - Please use the *with statement* to ensure that `SummaryRecord` is properly closed at the end, otherwise the process may fail to exit.