[Doc][Misc] Improve readability and fix typos in documentation (#8340)
### What this PR does / why we need it? This PR improves the readability of the documentation by fixing typos, correcting command extensions, and fixing broken links in the Chinese README. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Documentation changes only. --------- Signed-off-by: sunshine202600 <sunshine202600@163.com>
This commit is contained in:
@@ -99,7 +99,7 @@ pytest -sv tests/ut/ops/test_prepare_finalize.py
|
||||
pytest -sv tests/ut/ops/test_prepare_finalize.py::test_prepare_inputs
|
||||
|
||||
# Run NPU-specific tests (requires NPU hardware)
|
||||
pytest -sv tests/e2e/singlecard/test_piecewise_res_consistency
|
||||
pytest -sv tests/e2e/singlecard/test_piecewise_res_consistency.py
|
||||
```
|
||||
|
||||
**Requirement**: Run all tests locally before requesting review. Verify tests pass on NPU hardware for NPU-specific changes.
|
||||
@@ -163,7 +163,7 @@ pytest -sv tests/e2e/singlecard/test_piecewise_res_consistency
|
||||
|
||||
**Warning**: `tensor.item()` operations cause synchronization overhead on NPU when the `tensor` is on device.
|
||||
|
||||
If the `tensor` is a device tensor, the operator `item()` will trigger a synchronous data transfer from NPU to CPU, which can severely degrade performance in hot paths, cause this will make `AsyncScheduler` block here.
|
||||
If the `tensor` is a device tensor, calling `item()` will triggers a synchronous data transfer from NPU to CPU. This can severely degrade performance in hot paths, causing `AsyncScheduler` to block here.
|
||||
|
||||
**Review Requirements:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user