• Mateusz Bencer's avatar
    [ONNX] Add ReverseSequence operator (#3239) · 16550767
    Mateusz Bencer authored
    * ReverseSequence operator introduced
    
    * Code review remarks introduced
    
    * Added missing EOF
    
    * Removed unused whitespaces in onnx_import.in.cpp
    
    * Added convert to i32 for sequence_lenghts
    
    * Coode review remarks introduced
    
    * Disable reverse sequence for plaidml backend
    
    * Code style fixed
    16550767
reverse_sequence_time_0_batch_1.prototxt 1019 Bytes
ir_version: 3
producer_name: "nGraph ONNX Importer"
graph {
  node {
    input: "x"
    input: "sequence_lengths"
    output: "y"
    op_type: "ReverseSequence"
    attribute {
      name: "batch_axis"
      i: 1
      type: INT
    }
    attribute {
      name: "time_axis"
      i: 0
      type: INT
    }
  }
  name: "reverse_sequence_graph"
  input {
    name: "x"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 4
          }
          dim {
            dim_value: 4
          }
        }
      }
    }
  }
  input {
    name: "sequence_lengths"
    type {
      tensor_type {
        elem_type: 6
        shape {
          dim {
            dim_value: 4
          }
        }
      }
    }
  }
  output {
    name: "y"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 4
          }
          dim {
            dim_value: 4
          }
        }
      }
    }
  }
}
opset_import {
  version: 10
}