ct2rs 0.9.19

Rust bindings for OpenNMT/CTranslate2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "ctranslate2/ops/sub.h"

#include "dispatch.h"

namespace ctranslate2 {
  namespace ops {

    void Sub::operator()(const StorageView& a, const StorageView& b, StorageView& c) const {
      PROFILE("Sub");
      DEVICE_AND_TYPE_DISPATCH(a.device(), a.dtype(), (compute<D, T>(a, b, c)));
    }

  }
}