MCPcopy Create free account
hub / github.com/apache/arrow / variable_shape_tensor

Function variable_shape_tensor

cpp/src/arrow/extension/variable_shape_tensor.cc:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321std::shared_ptr<DataType> variable_shape_tensor(
322 const std::shared_ptr<DataType>& value_type, int32_t ndim,
323 std::vector<int64_t> permutation, std::vector<std::string> dim_names,
324 std::vector<std::optional<int64_t>> uniform_shape) {
325 auto maybe_type =
326 VariableShapeTensorType::Make(value_type, ndim, std::move(permutation),
327 std::move(dim_names), std::move(uniform_shape));
328 ARROW_CHECK_OK(maybe_type.status());
329 return maybe_type.MoveValueUnsafe();
330}
331
332} // namespace arrow::extension

Callers 3

CreateGlobalRegistryFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.85
TEST_FFunction · 0.85

Calls 3

MoveValueUnsafeMethod · 0.80
MakeFunction · 0.70
statusMethod · 0.45

Tested by 2

ASSERT_OK_AND_ASSIGNFunction · 0.68
TEST_FFunction · 0.68