Skip to content

Commit 04002c2

Browse files
committed
Add note on python tensorbatch not supporting more than one element
1 parent a6072a7 commit 04002c2

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

crates/store/re_types/definitions/rerun/archetypes/tensor.fbs

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ namespace rerun.archetypes;
77
/// \cpp data can be passed in without a copy from raw pointers or by reference from `std::vector`/`std::array`/c-arrays.
88
/// \cpp If needed, this "borrow-behavior" can be extended by defining your own `rerun::CollectionAdapter`.
99
///
10+
/// \py It's currently possible to use `send_columns` with tensors since construction
11+
/// \py of `rerun.components.TensorDataBatch` does not support more than a single element.
12+
/// \py This will be addressed as part of https://github.com/rerun-io/rerun/issues/6832.
13+
///
1014
/// \example archetypes/tensor_simple title="Simple tensor" image="https://static.rerun.io/tensor_simple/baacb07712f7b706e3c80e696f70616c6c20b367/1200w.png"
1115
table Tensor (
1216
"attr.rust.derive": "PartialEq",

crates/store/re_types/definitions/rerun/datatypes/tensor_data.fbs

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ namespace rerun.datatypes;
1010
///
1111
/// These dimensions are combined with an index to look up values from the `buffer` field,
1212
/// which stores a contiguous array of typed values.
13+
///
14+
/// \py It's currently possible to use `send_columns` with tensors since construction
15+
/// \py of `rerun.components.TensorDataBatch` does not support more than a single element.
16+
/// \py This will be addressed as part of https://github.com/rerun-io/rerun/issues/6832.
1317
table TensorData (
1418
"attr.python.aliases": "npt.ArrayLike",
1519
"attr.python.array_aliases": "npt.ArrayLike",

rerun_py/rerun_sdk/rerun/archetypes/tensor.py

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rerun_py/rerun_sdk/rerun/datatypes/tensor_data.py

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)