SparseConnectivityTracer.Tracer
— TypeTracer(indexset) <: Number
Number type keeping track of input indices of previous computations.
See also the convenience constructor tracer
. For a higher-level interface, refer to connectivity
.
Examples
By enumerating inputs with tracers, we can keep track of input connectivities:
julia> xt = [tracer(1), tracer(2), tracer(3)]
+ ⋅ ⋅ 1
connectivity(f!, y, x)
Enumerates inputs x
and primal outputs y
after f!(y, x)
and returns sparse connectivity matrix C
of size (m, n)
where C[i, j]
is true if the compute graph connects the i
-th entry in y
to the j
-th entry in x
.