forked from flexflow/FlexFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c87798
commit d90b093
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef _FLEXFLOW_KERNELS_HIP_CONV_2D_KERNELS_H | ||
#define _FLEXFLOW_KERNELS_HIP_CONV_2D_KERNELS_H | ||
|
||
#include "device.h" | ||
|
||
namespace FlexFlow { | ||
namespace Kernels { | ||
namespace Conv2D { | ||
|
||
miopenConvFwdAlgorithm_t selectConvolutionForwardAlgorithm( | ||
miopenHandle_t handle, | ||
const miopenTensorDescriptor_t xDesc, | ||
void const *x, | ||
const miopenTensorDescriptor_t wDesc, | ||
void const *w, | ||
const miopenConvolutionDescriptor_t convDesc, | ||
void *workSpace, | ||
size_t workSpaceSize, | ||
const miopenTensorDescriptor_t yDesc, | ||
void *y, | ||
float *time); | ||
|
||
miopenConvBwdWeightsAlgorithm_t selectConvolutionBackwardFilterAlgorithm( | ||
miopenHandle_t handle, | ||
const miopenTensorDescriptor_t xDesc, | ||
void const *x, | ||
const miopenTensorDescriptor_t dyDesc, | ||
void const *dy, | ||
const miopenConvolutionDescriptor_t convDesc, | ||
void *workSpace, | ||
size_t workSpaceSize, | ||
const miopenTensorDescriptor_t dwDesc, | ||
void *dw, | ||
float *time); | ||
|
||
miopenConvBwdDataAlgorithm_t selectConvolutionBackwardDataAlgorithm( | ||
miopenHandle_t handle, | ||
const miopenTensorDescriptor_t wDesc, | ||
void const *w, | ||
const miopenTensorDescriptor_t dyDesc, | ||
void const *dy, | ||
const miopenConvolutionDescriptor_t convDesc, | ||
void *workSpace, | ||
size_t workSpaceSize, | ||
const miopenTensorDescriptor_t dxDesc, | ||
void *dx, | ||
float *time); | ||
|
||
} // namespace Conv2D | ||
} // namespace Kernels | ||
} // namespace FlexFlow | ||
|
||
#endif |