This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Description
The sampler code in, e.g., src/TATi/samplers/baoabsampler.py adds nodes to the graph to perform a single sampling step for each of the parameter matrices. TATi creates two parameter matrices per layer, one weight matrix and one bias vector.
Assume we have a single hidden layer and one input and one output layer, then we have in total four sets of matrices for which sampling step nodes are added: weights and biases of the hidden layer, weights and biases of the output layer.
As the ISST weights are constant per step and hold for all parameters, the calculation of the weights (i.e. evaluating two integrals) needs to occur outside of the sampler code.
As a first step, the weight calculation can be implemented in python code without using tensorflow nodes directly. To this end, the following should be added: