Skip to content

Discussion on integrating MKLDNN to fluid #6815

@QiJune

Description

@QiJune

1. Background and consensus

2. concerns on Layout as the key of OpKernelType

The essence about taking layout as the key OpKernelType is to write following codes in which part.

  • We can get proper Layout in GetExpectedKernelType method and convert data in Trans method, and then chose right kernel registered in advance.
  • We can also put these codes inside the Compute method of MKLDNN kernel. The layout will be chosen and transformed inside kernel.

@tensor-tang Could you give some advice on the total effort of these two choice considering integrating MKLDNN to fluid.

3. Some other related question

Some operators like dropout and batch norm will have different computation logic in train/test process. Fluid handles these logic inside the Compute method of operator kernel. Fluid does not take is_test as a key of OpKernelType currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions