Skip to content

Commit

Permalink
changed path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-Chen222 committed Jun 1, 2024
1 parent 2c87798 commit d90b093
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions lib/kernels/src/hip/ops/conv_2d_kernels.h
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

0 comments on commit d90b093

Please sign in to comment.