Skip to main content

Overview

Description

DRP-AI for RZ/V2H and RZ/V2N supports a feature for efficiently calculating the pruned AI model. The DRP-AI Extension Pack provides a pruning function optimized for RZ/V2H and RZ/V2N. The DRP-AI optimized pruning function can be used in combination with this tool and PyTorch or TensorFlow training code.

What is pruning?

Nodes in a neural network are interconnected as shown in the figure. Methods of reducing the number of parameters by removing weights between nodes or removing nodes are referred to as “pruning”. A neural network to which pruning has not been applied is generally referred to as a dense neural network. And a neural network to which pruning has been applied is generally referred to as a sparse neural network. Applying pruning leads to a slight deterioration in the accuracy of the model but can reduce the power required by hardware and accelerate the inference process.

Image
Dense neural network; after pruning: sparse neural network

How to embed the pruned model

The pruned model can be embedded using DRP-AI TVM. Refer to the DRP-AI TVM page on GitHub for details on TVM.
https://github.com/renesas-rz/rzv_drp-ai_tvm

Note: As shown in the figure, pruning is an optional function. (Dense model also can be embedded.)

Image
DRP-AI Development Environment

Features

  • Pruning functions optimized for RZ/V2H and RZ/V2N
  • Pruning ratio can be specified for balance between accuracy and power efficiency
  • Supports 2 pruning modes for improving accuracy (One Shot/Gradual)

Release Information

DRP-AI Extension Pack Version 1.2.0 is available. (Jun. 2025)

  • Supported Ubuntu 22.04 and Python 3.10
  • Changed the supported TensorFlow version from 2.5.0 to 2.18.0
  • Supported PyTorch’s torch.nn.MultiheadAttention() layer for pruning Transformer structure.

Target Devices

Downloads

Documentation

Design & Development

Related Boards & Kits

Support

Support Communities

Support Communities

Get quick technical support online from Renesas Engineering Community technical staff.
Browse Articles

Knowledge Base

Browse our knowledge base for helpful articles, FAQs, and other useful resources.
Submit a Ticket

Submit a Ticket

Need to ask a technical question or share confidential information?

Videos & Training