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

Function garrow_tensor_class_init

c_glib/arrow-glib/tensor.cpp:125–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void
126garrow_tensor_class_init(GArrowTensorClass *klass)
127{
128 GParamSpec *spec;
129
130 auto gobject_class = G_OBJECT_CLASS(klass);
131
132 gobject_class->dispose = garrow_tensor_dispose;
133 gobject_class->finalize = garrow_tensor_finalize;
134 gobject_class->set_property = garrow_tensor_set_property;
135 gobject_class->get_property = garrow_tensor_get_property;
136
137 spec = g_param_spec_pointer(
138 "tensor",
139 "Tensor",
140 "The raw std::shared<arrow::Tensor> *",
141 static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
142 g_object_class_install_property(gobject_class, PROP_TENSOR, spec);
143
144 spec = g_param_spec_object(
145 "buffer",
146 "Buffer",
147 "The data",
148 GARROW_TYPE_BUFFER,
149 static_cast<GParamFlags>(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
150 g_object_class_install_property(gobject_class, PROP_BUFFER, spec);
151}
152
153/**
154 * garrow_tensor_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected