Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::ResizableTensorOutput Concept Reference

Mutable tensor output that can replace its shape and storage. More...

#include <output.hpp>

Concept definition

template<class T>
requires(std::remove_reference_t<T>& output, tensor_extents_t<T> const& extents) { output.reset_shape(extents); }
TensorView whose writable mdspec supports eventual element assignment.
Definition tensor/concepts.hpp:133
Mutable tensor output that can replace its shape and storage.
Definition tensor/output.hpp:76

Detailed Description

Mutable tensor output that can replace its shape and storage.

A resizable output provides reset_shape(extents), whose contract discards old values and leaves the object with the requested shape.