MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / LT>

Method LT>

src/jit/impl/mlir/ir/each_mode.cpp:334–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332//! LT: x < y ? 1 : 0
333template <>
334mlir::Value lower_mode<Mode::LT>(
335 mlir::OpBuilder& builder, mlir::Location loc, ValueRange operands) {
336 ValueBuilderHelper helper(builder, loc);
337 return helper.select(
338 helper.lt(operands[0], operands[1]), helper.const_f32(1.f),
339 helper.const_f32(0.f));
340}
341
342//! POW: x^y = exp(y * log(x))
343template <>

Callers

nothing calls this directly

Calls 2

const_f32Method · 0.80
selectMethod · 0.45

Tested by

no test coverage detected