qiskit_machine_learning.neural_networks
Returns whether the output is sparse or not.
TwoLayerQNN.sparse