MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / shape

Method shape

src/python/lfs/py_tensor.cpp:180–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 nb::tuple PyTensor::shape() const {
181 const auto& dims = tensor_.shape().dims();
182 nb::list shape_list;
183 for (size_t d : dims) {
184 shape_list.append(static_cast<int64_t>(d));
185 }
186 return nb::tuple(shape_list);
187 }
188
189 size_t PyTensor::ndim() const {
190 return tensor_.shape().rank();

Callers 15

filterMethod · 0.80
filter_indicesMethod · 0.80
set_dataMethod · 0.80
set_colorsMethod · 0.80
set_meansMethod · 0.80
add_point_cloudMethod · 0.80
add_meshMethod · 0.80
get_colors_rgbMethod · 0.80
set_colors_rgbMethod · 0.80
mesh_data_to_trimeshFunction · 0.80
NB_MODULEFunction · 0.80
DLPackContextMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by 15

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64