Skip to main content

Crate ghostflow_ffi

Crate ghostflow_ffi 

Source
Expand description

C FFI bindings for GhostFlow

This module provides C-compatible APIs for using GhostFlow from other languages like Python, C++, Java, Go, etc.

Structs§

GhostFlowModel
Opaque handle to a GhostFlow model
GhostFlowTensor
Opaque handle to a GhostFlow tensor

Enums§

GhostFlowError
Error codes

Functions§

ghostflow_free_string
Free a version string
ghostflow_get_last_error
Get last error message
ghostflow_init
Initialize GhostFlow library
ghostflow_tensor_add
Add two tensors
ghostflow_tensor_create
Create a new tensor from data
ghostflow_tensor_data
Get tensor data
ghostflow_tensor_free
Free a tensor
ghostflow_tensor_matmul
Matrix multiplication
ghostflow_tensor_mul
Multiply two tensors element-wise
ghostflow_tensor_ones
Create a tensor filled with ones
ghostflow_tensor_reshape
Reshape a tensor
ghostflow_tensor_shape
Get tensor shape
ghostflow_tensor_zeros
Create a tensor filled with zeros
ghostflow_version
Get GhostFlow version string