Skip to content

Conversation

@xgqdut2016
Copy link
Collaborator

No description provided.

@xgqdut2016 xgqdut2016 added 模块:算子 添加新的算子 类别:重构 项目结构、接口更改、或重命名 进度:已完成 开发完成,等待审阅合并 labels Nov 6, 2024
@PanZezhong1725 PanZezhong1725 added 类别:开发 新功能开发 and removed 类别:重构 项目结构、接口更改、或重命名 labels Nov 12, 2024
infiniopTensorDescriptor_t input_desc,
int axis,
infiniopTensorDescriptor_t output_desc) {
ASSERT_EQ(input_desc->ndim, output_desc->ndim);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

库函数不要assert,要返回错误status

infiniopSoftmaxDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t input_desc, int axis, infiniopTensorDescriptor_t output_desc);


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

softmax考虑加一下getworkspace接口吧

SoftmaxBangDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t input_desc, int axis, infiniopTensorDescriptor_t output_desc) {

ASSERT_EQ(input_desc->ndim, output_desc->ndim);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

库函数不要assert,要返回错误status

infiniopStatus_t cpuCreateSoftmaxDescriptor(infiniopHandle_t handle,
SoftmaxCpuDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t input_desc, int axis, infiniopTensorDescriptor_t output_desc) {
ASSERT_EQ(input_desc->ndim, output_desc->ndim);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

库函数不要assert,要返回错误status

SoftmaxCudaDescriptor_t *desc_ptr,
infiniopTensorDescriptor_t input_desc, int axis, infiniopTensorDescriptor_t output_desc) {

ASSERT_EQ(input_desc->ndim, output_desc->ndim);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

库函数不要assert,要返回错误status

@xgqdut2016 xgqdut2016 closed this Dec 6, 2024
@xgqdut2016 xgqdut2016 deleted the SoftMax branch December 6, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

模块:算子 添加新的算子 类别:开发 新功能开发 进度:已完成 开发完成,等待审阅合并

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants