Commit 56cd3558 by Lawrence Wolf-Sonkin Committed by Copybara-Service

Internal change

PiperOrigin-RevId: 461233823
parent 73992b54
...@@ -110,7 +110,7 @@ The following python types can be loaded *without* copying or converting: ...@@ -110,7 +110,7 @@ The following python types can be loaded *without* copying or converting:
- The array dtype matches T exactly. - The array dtype matches T exactly.
- If T is not const, the buffer allows writing. - If T is not const, the buffer allows writing.
- The stride does not indicate to skip elements or go in reverse order. - The stride does not indicate to skip elements or go in reverse order.
- [Opaque](go/pybind11-opaque-types) `std::vector<T>` => `Span<{const or non-const} T>`. - [Opaque](https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html#making-opaque-types) `std::vector<T>` => `Span<{const or non-const} T>`.
- T can be any type, including converted or pointer types, but must - T can be any type, including converted or pointer types, but must
match exactly between C++ and python. match exactly between C++ and python.
- Opaque vectors are *not* currently compatible with the smart holder. - Opaque vectors are *not* currently compatible with the smart holder.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment