Source code for symforce.ops.impl.databuffer_storage_ops
# ----------------------------------------------------------------------------# SymForce - Copyright 2022, Skydio, Inc.# This source code is under the Apache 2.0 license found in the LICENSE file.# ----------------------------------------------------------------------------importsymforce.internal.symbolicassffromsymforceimporttypingasT
[docs]classDataBufferStorageOps:""" Implements Storage operations for databuffers. For StorageOps, we choose a storage dim of 0 since the it is supposed to represent a pointer to external data, which we do not want to serialize """
[docs]@staticmethoddeffrom_storage(a:sf.DataBuffer,elements:T.Sequence[sf.DataBuffer])->T.Element:raiseNotImplementedError("Cannot restore DataBuffer from storage")