ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

How can I integrate this project API to TensorFlow or Caffe?

Open ysh329 opened this issue 9 years ago • 11 comments

Is there some tips or docs? Thanks a lot!

ysh329 avatar Mar 29 '17 09:03 ysh329

Hi,

We're working on it but it's still early stages. We'll publish some blog posts and examples in the coming weeks / months.

AnthonyBarbier avatar Mar 29 '17 09:03 AnthonyBarbier

Thank you

mikyoreyes avatar Mar 29 '17 09:03 mikyoreyes

@AnthonyARM Thank you very much for your work! :+1: We will continue to focus on this repo.

ysh329 avatar Mar 29 '17 09:03 ysh329

The licensing terms allow you to do this if you intend to do it yourself. We intend to integrate our library with Caffe and TensorFlow however this is still work in progress, so watch this space!

Thunderbob avatar Mar 30 '17 08:03 Thunderbob

I really hope that ARM can intergrate upstream like Intel.

bhack avatar Mar 30 '17 08:03 bhack

Hi @Thunderbob! Will you be creating a repository for Caffe/Tensorflow with the ComputeLibrary?

mikyoreyes avatar Mar 30 '17 09:03 mikyoreyes

We're only getting started, we haven't decided yet how we were going to contribute to these projects

AnthonyBarbier avatar Mar 30 '17 09:03 AnthonyBarbier

As I contributed CLBlast support in Caffe, I see two options for optimising Caffe on ARM Mali GPUs when using the BLAS approach for computing convolutions:

  1. Implement all BLAS routines needed by Caffe in a partial Mali-optimised library (based on this released compute library) and provide its integration with Caffe similar to ISAAC.
  2. Provide a Mali-optimised plugin for CLBlast using a new plugin framework proposed by @intelfx. In fact, he already used the Mali-optimised SGEMM code that ARM released over a year ago for creating a Mali-optimised CLBlast overlay. (See this Jupyter notebook for performance improvements on Samsung Chromebook 2 with AlexNet and SqueezeNet 1.0; the overlay needed more work support GoogleNet and SqueezeNet 1.1.) The new framework should be more robust and allow to use Mali-optimised implementations on Android (where the LD_PRELOAD trick is not available).

I'm happy to provide further pointers and discuss.

psyhtest avatar Apr 01 '17 23:04 psyhtest

@psyhtest seems openblas works best

austingg avatar Apr 06 '17 05:04 austingg

@austingg Yes, but it was fairly optimised implementation on quad-core Cortex-A15 @ 1700 GHz vs unoptimised implementation on quad-core Mali-T628 @ 600 MHz...

psyhtest avatar Apr 06 '17 10:04 psyhtest

Closing for inactivity. Anyway to answer the initial question:

There is a project made exactly to solve this kind of problems: ArmNN Here is the link to the repo: https://github.com/ARM-software/armnn

ManubARM avatar Feb 05 '19 16:02 ManubARM