ct2rs 0.9.21

Rust bindings for OpenNMT/CTranslate2
Documentation
#pragma once

#include "op.h"

namespace ctranslate2 {
  namespace ops {

    // This enum order should remain fixed.
    enum class ActivationType {
      ReLU,
      GELUTanh,
      Swish,
      GELU,
      GELUSigmoid,
      Tanh,
      Sigmoid,
    };

    const UnaryOp& get_activation_op(ActivationType type);

  }
}