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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.