| 1822 | } |
| 1823 | |
| 1824 | float * ggml_get_data_f32(const struct ggml_tensor * tensor) { |
| 1825 | assert(tensor->type == GGML_TYPE_F32); |
| 1826 | return (float *)(tensor->data); |
| 1827 | } |
| 1828 | |
| 1829 | enum ggml_unary_op ggml_get_unary_op(const struct ggml_tensor * tensor) { |
| 1830 | GGML_ASSERT(tensor->op == GGML_OP_UNARY); |
no outgoing calls