SequenceErase

SequenceErase - 11

版本

  • 名称: SequenceErase (GitHub)

  • : main

  • 始于版本: 11

  • 函数: False

  • 支持级别: SupportType.COMMON

  • shape 推断: True

此算子版本已在 版本 11 后可用

摘要

输出一个张量序列,该序列从 'input_sequence' 中移除位于 'position' 的张量。'position' 的可接受范围为 [-n, n - 1],其中 n 是 'input_sequence' 中的张量数量。负值表示从后往前计数。'position' 是可选的,默认情况下它移除 'input_sequence' 中的最后一个张量。

输入

1 到 2 个输入。

  • input_sequence (异构) - S

    输入序列。

  • position (可选, 异构) - I

    张量在序列中的位置。负值表示从后往前计数。可接受范围在 [-n, n - 1] 中,其中 n 是 'input_sequence' 中的张量数量。如果任何索引值超出边界,则会出错。它必须是一个标量(空形状的张量)。

输出

  • output_sequence (异构) - S

    移除了指定位置张量的输出序列。

类型约束

  • S 属于 ( seq(tensor(bool)), seq(tensor(complex128)), seq(tensor(complex64)), seq(tensor(double)), seq(tensor(float)), seq(tensor(float16)), seq(tensor(int16)), seq(tensor(int32)), seq(tensor(int64)), seq(tensor(int8)), seq(tensor(string)), seq(tensor(uint16)), seq(tensor(uint32)), seq(tensor(uint64)), seq(tensor(uint8)) )

    约束为任何张量类型。

  • I 属于 ( tensor(int32), tensor(int64) )

    约束 position 为整数张量。它必须是一个标量(空形状的张量)。