com.microsoft - RelativePositionBias#

RelativePositionBias - 1#

Version

This version of the operator has been available since version 1 of domain com.microsoft.

Summary

Attributes

  • is_bidirectional - INT : Default value is 0.

  • max_distance - INT (required) : Max distance

Inputs

  • bias_table (heterogeneous) - T:

  • query_length (heterogeneous) - U:

  • key_length (heterogeneous) - U:

Outputs

  • output (heterogeneous) - T:

Type Constraints

  • T in ( tensor(float), tensor(float16) ): Constrain input and output types to float or half tensors.

  • U in ( tensor(int64) ): Constrain sequence_length to int tensors.

Examples