sn = gather(sf) collects
all the wavelet time scattering network, sf, properties from the GPU
device and returns the gathered waveletScattering object
sn. All properties of the gathered object are stored in the local
workspace.
Load the noisy Doppler signal. Create a wavelet scattering network gsf that you can apply to the data.
load noisdopp
gsf = waveletScattering;
Copy the signal to the GPU.
gnoisdopp = gpuArray(noisdopp);
Obtain the scattering feature matrix for the scattering network gsf and the data that is on the GPU. Specify the log transformation. Confirm the feature matrix is on the GPU.
The first element of gfil contains the scaling filter used in the computation of the zeroth order scattering coefficients. Subsequent elements of gfil contain the wavelet filters and scaling filter for the corresponding filter banks of the scattering decomposition. Confirm all the scaling and wavelet filters are on the GPU.
Obtain the scattering feature matrix for the scattering network sf and the original signal. Specify the log transformation. Confirm the feature matrix is not on the GPU. Confirm the feature matrix is equal to the matrix obtained using the network gsf.
The gather function
fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.