Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does the data and weight is handled in NVDLA? #358

Closed
mtsanic opened this issue Dec 12, 2021 · 1 comment
Closed

How does the data and weight is handled in NVDLA? #358

mtsanic opened this issue Dec 12, 2021 · 1 comment

Comments

@mtsanic
Copy link

mtsanic commented Dec 12, 2021

Hi,

I am working on nv_small with LeNet on VP (prototxt for it given in the attachment given as txt). I am trying to understand how the data and weight is accepted and convoluted.

The first layer should accept 28x28x1 image. It should be convoluted with 5x5x20 kernels. The total number of convolutions should be 24x24x20=11520.

Second convolution layer accepts 12x12x20 data. It should be convoluted with 5x5x50 kernels. The total number of convolutions should be 8x8x20x50=64000.

The total number of convolutions should be 75520.

When I check the results counters for individual convolution operations 476160 times.

When I check CSC logs, it seems data is called 59519 times. The input image is somehow divided into 4 channels. Kernel width for first convolution layer is decreased to 1 (which should be 5). csc.log is also given in the below.

All these information still doesn't help me understand how the data and weight is accepted and convoluted in NVDLA.

I appreciate any help I can get

lenet.txt
csc.log

@mtsanic
Copy link
Author

mtsanic commented Dec 20, 2021

In-memory data formats section (http://nvdla.org/hw/format.html) in hardware manual shows most of the data input-output. If anyone wants to understand further, I suggest printing all data to output and reading them.

@mtsanic mtsanic closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant