release

Class: dlhdl.Target
Package: dlhdl

Release the connection to the target device

Syntax

release

Description

release releases the connection to the target board.

Examples

expand all

  1. Create a dlhdl.Target object that has an Ethernet interface and SSH connection.

    hTarget = dlhdl.Target('Xilinx','Interface','Ethernet','IPAddress','192.168.1.101');
  2. Create a dlhdl.Workflow object and deploy the object to the target board.

    snet = alexnet;
    hW = dlhdl.Workflow('Network',snet,'BitstreamName','zcu102_single', 'Target', hTarget);
    hW.deploy;
  3. Obtain a prediction.

    Use this image to run the code:

    % Load input images and resize them according to the network specifications
    image = imread('zebra.jpeg');
    inputImg = imresize(image, [227, 227]);
    imshow(inputImg);
    % Predict the outcome and optionally profile the results to measure performance.
    [prediction, speed] = hW.predict(single(inputImg), 'Profile', 'on' );
    
  4. Release the connection.

    hTarget.release;
Introduced in R2020b