Skip to content

[AMP] Audit mixed precision operation schedules for correctness #8340

Closed
@AndrewZhaoLuo

Description

Some operations like conv2d and matmul support heterogenous output datatypes.

E.g. the operation could be done with float16 operands but accumulate the result in float32.

However, some schedules for these ops don't actually support mixed precision types. For example python/tvm/topi/cuda/conv2d_winograd.py has a type error if the output dtype is not the same as the input dtypes.

This issue is to audit operations which support output datatypes (e.g. have the out_dtype attribute) and make sure corresponding schedules support the feature. For every schedule this will involve adding a unittest.

List of ops to examine

  • "nn.conv1d",
  • "nn.conv2d",
  • "nn.conv3d",
  • "nn.conv1d_transpose",
  • "nn.conv2d_transpose",
  • "nn.conv3d_transpose",
  • "nn.dense",
  • "nn.batch_matmul"

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