Function marian::cast

Function Documentation

Expr marian::cast(Expr a, Type type = Type::float32)

Cast an expression to a specified type.

Return

Expression with data cast to type

Parameters
  • a: Expression to cast

  • type: Desired type