A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method of controlling an inference processing system that includes a first terminal and a second terminal and performs inference processing using a plurality of neural networks,
- wherein the method comprises:
- the first terminal executing inference processing by a first neural network using acquired data as an input thereto, and outputting intermediate data to the second terminal, the intermediate data being obtained by executing processing operations in intermediate layers, up to a predetermined intermediate layer, of the first neural network, which are commonized with a second neural network;
- and
- the second terminal executing processing operations in intermediate layers, after the predetermined intermediate layer, of the second neural network using the intermediate data as an input thereto.