Function rune_native::rune_input_tensors_insert
source · [−]#[no_mangle]
pub unsafe extern "C" fn rune_input_tensors_insert(
tensors: *mut InputTensors,
node_id: u32,
element_type: ElementType,
dimensions: *const usize,
rank: c_int
) -> *mut Tensor
Expand description
Add a new tensor to this set of input tensors, returning a pointer to the newly created tensor.
If a tensor has already been declared for this node, it will be overwritten.
This function may return null
if the dimensions array contains a zero or
tensors
is a null pointer.