Skip to main content

src/DataObjects/Tensors/InvalidationWiringFn.hpp

src/DataObjects/Tensors/InvalidationWiringFn.hpp

Types

Name
using std::function< void(LazyColumnTensorStorage &, TensorData &)> InvalidationWiringFn
Callback that wires observer invalidation after lazy tensor construction.

Types Documentation

using InvalidationWiringFn

using InvalidationWiringFn =  std::function<void(LazyColumnTensorStorage &, TensorData &)>;

Callback that wires observer invalidation after lazy tensor construction.

Receives the lazy storage (for invalidateColumn) and the TensorData (for notifyObservers). Called exactly once, at the end of createFromLazyColumns(). Constructed at the builder layer (e.g., TensorColumnBuilders.hpp in TransformsV2).

Source code

#ifndef NEURALYZER_TENSORS_INVALIDATION_WIRING_FN_HPP
#define NEURALYZER_TENSORS_INVALIDATION_WIRING_FN_HPP

#include <functional>

class LazyColumnTensorStorage;
class TensorData;

using InvalidationWiringFn = std::function<void(LazyColumnTensorStorage &, TensorData &)>;


#endif// NEURALYZER_TENSORS_INVALIDATION_WIRING_FN_HPP

Updated on 2026-11-13 at 20:25:43 +0000