Bind input buffer Index to Buffer, or allocate owned storage.

Synopsis

Declared in <llvm/Analysis/MLModelRunner.h>

void
setUpBufferForTensor(
    size_t Index,
    TensorSpec const& Spec,
    void* Buffer);

Parameters

Name

Description

Index

Zero‐based index of the input tensor.

Spec

Tensor specification used when allocating owned storage.

Buffer

Existing buffer to use, or null to allocate one.

Created with MrDocs