Repository navigation
Add Xtensa HiFi-optimized BATCH_TO_SPACE_ND, SPACE_TO_BATCH_ND, and DEPTH_TO_SPACE kernels - #4014
Open
rameshkunasi wants to merge 1 commit into
Open
rameshkunasi wants to merge 1 commit into
rameshkunasi wants to merge 1 commit into
Conversation
…EPTH_TO_SPACE kernels
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Xtensa NNLib-optimized
BATCH_TO_SPACE_ND,SPACE_TO_BATCH_ND, andDEPTH_TO_SPACEkernel implementations (split out and modernized from #3701):tensorflow/lite/micro/kernels/xtensa/{batch_to_space_nd,space_to_batch_nd,depth_to_space}.cc):int8evaluation onHIFI3,HIFI4,HIFI5, andHIFI_IQusingxa_nn_batch_to_space_nd_8_8,xa_nn_space_to_batch_nd_8_8, andxa_nn_depth_to_space_8_8, falling back to*EvalReferenceotherwise.NHCoutput shapes ([B, H, C]->[B, H, 1, C]) when invokingxa_nn_batch_to_space_nd_8_8.{batch_to_space_nd,space_to_batch_nd,depth_to_space}.{h,cc},*_common.cc,BUILD,sources.inc):inline constexpr inttensor index and rank constants.*InitReference(withnullptrcheck before placementnewinSpaceToBatchNDInitReference),*PrepareReference, and*EvalReference.{batch_to_space_nd,space_to_batch_nd,depth_to_space}_test.cc):NHCint8crop/padding tests (BatchToSpace3DCropsInt8,SpaceToBatch3DPaddingInt8) and multi-batchint8DEPTH_TO_SPACEcoverage (DepthToSpaceMultiBatchInt8).BUG=n/a