Merge two algorithms in pytorch

Hi hope you are fine and doing great.
I want to merge two algorithms using pytorch and check the result on the same dataset.
(1) fuzzy adaptive resonance theory
(2) self organizing incremental neural network.

please help me in this assignment work . I will very thankful to you.