Documentation
¶
Overview ¶
Package cbuffer provides a wrapper for a C/C++ buffer that can be used to transfer data in-between pjrt, xlabuilder and the user of the library.
It is used to feed data: literals for xlabuilder, and actual values for pjrt, and as a holder of the StableHLO program built by xlabuilder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CBuffer ¶
type CBuffer struct {
// contains filtered or unexported fields
}
CBuffer is a generic wrapper to a C/C++ data, which is assumed to own the underlying data.
func New ¶
New returns a CBuffer object to manage the C/C++ data.
If `withStack` is set to true, it also stores a stack of where it was created. This is used for debugging if it is garbage collected without being freed.
Click to show internal directories.
Click to hide internal directories.