ct2rs 0.9.21

Rust bindings for OpenNMT/CTranslate2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "op.h"

namespace ctranslate2 {
  namespace ops {

    class Identity : public UnaryOp {
    public:
      void operator()(const StorageView& x, StorageView& y) const override {
        PROFILE("Identity");
        y = x;
      }
    };

  }
}