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/log.h"

#include "dispatch.h"

namespace ctranslate2 {
  namespace ops {

    void Log::operator()(const StorageView& x, StorageView& y) const {
      PROFILE("Log");
      DEVICE_AND_FLOAT_DISPATCH("Log", x.device(), x.dtype(), (compute<D, T>(x, y)));
    }

  }
}