Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Problem in FC layers  #3

@manojrohit

Description

@manojrohit

Hello @wickedfoo,
Readme specifies to use python3.x for validating the model. However, there is a memory mapping error while programming the FPGA. Using python2.x solves that issue. However, the fully connected layer has a problem.

Traceback (most recent call last):
File "run_fpga_resnet.py", line 103, in
reference_model=cpu_model)
File "/home/manoj/git/deepfloat/py/validate.py", line 112, in validate
output = fpga_h.forward(input)
File "run_fpga_resnet.py", line 37, in forward
self.output_p = self.model.forward(*dev + (input_p, ))
File "/home/manoj/git/deepfloat/py/fpga_resnet.py", line 209, in forward
x = self.fc.forward(context, program, queue, x)
RuntimeError: Assert failed at /home/manoj/git/deepfloat/cpp/ops/TensorMath.cpp line 217

line 217: CL_ASSERT(a.getSize(1) == b.getSize(0));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions