Add a compile time flag to support all ET's in cpu backend (#3350)
* Refactor cpu/builder/dot.cpp * Support only float and i64 * Refactor softmax and reduction to support only float and i64 * Add a new file for customized kernels * Add compile time flag NGRAPH_CPU_LARGE_BINARY * Add compilation flag checks in reduction.hpp * change dot to only support float and i64 * Revert "Refactor cpu/builder/dot.cpp" This reverts commit 0d53f27fde64872aff096f12ee9b79e5db7a7fee. * style * Consolidate macros * Refactor slice ops, reshape & pad * cleanup * Gather op * Concat, Convert and broadcast op * Tile and reverse_sequence op * Scatter_add op * ET other then fp and i64 go through ref * tests passing * Consolidate macros * Address feedback * Fall back to reference for pad and reshape * add scatter_add reference fallback * Undo concat change * Undo tile and update slice as they dont have reference implementation * Remove update slice condition * Gather op type check * change routine name * Build-time configurability for datatypes that requires optimized kernels on CPU backend (#3592) * Inline function * Change condition * VS compiler workaround * Add comment for VS workaround * More fixes for VS * More wrapping of nested macros for VS * More wrapper * variable name change and more wrapping of macros * test * Style and refactor * Wrap macros * Add a seperate macro for SELECT_KERNEL * Change SELECT_KERNEL_3ARGS * Unwrap couple of macros * Syntax * Add a new macro for fixed number of args for VS compiler * Comment/Fake ectx * Add detailed comment for the workaround for VS compiler * Comment all unused ectx variables * Templated calls to reference kernels * const args * Change softmax ref definition to take double * Hardcode softmax kernel to take double ..testing * Fix softmax
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment