Skip to content

Commit

Permalink
Revert change in ccv_nnc_compat.h
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Feb 24, 2024
1 parent 1430f67 commit be6d590
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions lib/nnc/gpu/ccv_nnc_compat.cu
Original file line number Diff line number Diff line change
Expand Up @@ -872,13 +872,6 @@ cudnnOpTensorDescriptor_t ccv_nnc_stream_context_get_op_tensor_descriptor(const
return desc;
}

cudnnTensorTransformDescriptor_t ccv_nnc_stream_context_get_tensor_transform_descriptor(const ccv_nnc_stream_context_t* const stream_context)
{
cudnnTensorTransformDescriptor_t desc;
cudnnCreateTensorTransformDescriptor(&desc);
return desc;
}

cudnnPoolingDescriptor_t ccv_nnc_stream_context_get_pooling_descriptor(const ccv_nnc_stream_context_t* const stream_context)
{
cudnnPoolingDescriptor_t desc;
Expand Down Expand Up @@ -939,11 +932,6 @@ void ccv_nnc_stream_context_return_op_tensor_descriptor(const ccv_nnc_stream_con
cudnnDestroyOpTensorDescriptor(op_tensor_desc);
}

void ccv_nnc_stream_context_return_tensor_transform_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnTensorTransformDescriptor_t tensor_desc)
{
cudnnDestroyTensorTransformDescriptor(tensor_desc);
}

void ccv_nnc_stream_context_return_pooling_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnPoolingDescriptor_t pooling_desc)
{
cudnnDestroyPoolingDescriptor(pooling_desc);
Expand Down
2 changes: 0 additions & 2 deletions lib/nnc/gpu/ccv_nnc_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ CCV_WARN_UNUSED(cudnnActivationDescriptor_t) ccv_nnc_stream_context_get_activati
CCV_WARN_UNUSED(cudnnConvolutionDescriptor_t) ccv_nnc_stream_context_get_convolution_descriptor(const ccv_nnc_stream_context_t* const stream_context, const int datatype);
CCV_WARN_UNUSED(cudnnDropoutDescriptor_t) ccv_nnc_stream_context_get_dropout_descriptor(const ccv_nnc_stream_context_t* const stream_context, const float p);
CCV_WARN_UNUSED(cudnnFilterDescriptor_t) ccv_nnc_stream_context_get_filter_descriptor(const ccv_nnc_stream_context_t* const stream_context);
CCV_WARN_UNUSED(cudnnTensorTransformDescriptor_t) ccv_nnc_stream_context_get_tensor_transform_descriptor(const ccv_nnc_stream_context_t* const stream_context);
CCV_WARN_UNUSED(cudnnOpTensorDescriptor_t) ccv_nnc_stream_context_get_op_tensor_descriptor(const ccv_nnc_stream_context_t* const stream_context);
CCV_WARN_UNUSED(cudnnPoolingDescriptor_t) ccv_nnc_stream_context_get_pooling_descriptor(const ccv_nnc_stream_context_t* const stream_context);
CCV_WARN_UNUSED(cudnnReduceTensorDescriptor_t) ccv_nnc_stream_context_get_reduce_tensor_descriptor(const ccv_nnc_stream_context_t* const stream_context);
Expand All @@ -150,7 +149,6 @@ void ccv_nnc_stream_context_return_convolution_descriptor(const ccv_nnc_stream_c
void ccv_nnc_stream_context_return_dropout_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnDropoutDescriptor_t dropout_desc);
void ccv_nnc_stream_context_return_filter_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnFilterDescriptor_t filter_desc);
void ccv_nnc_stream_context_return_op_tensor_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnOpTensorDescriptor_t op_tensor_desc);
void ccv_nnc_stream_context_return_tensor_transform_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnTensorTransformDescriptor_t tensor_desc);
void ccv_nnc_stream_context_return_pooling_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnPoolingDescriptor_t pooling_desc);
void ccv_nnc_stream_context_return_reduce_tensor_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnReduceTensorDescriptor_t reduce_tensor_desc);
void ccv_nnc_stream_context_return_rnn_descriptor(const ccv_nnc_stream_context_t* const stream_context, cudnnRNNDescriptor_t rnn_desc);
Expand Down

0 comments on commit be6d590

Please sign in to comment.