MCPcopy Create free account
hub / github.com/clab/dynet / cube

Function cube

dynet/expr.cc:104–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102Expression exp(const Expression& x) { return Expression(x.pg, x.pg->add_function<Exp>({x.i})); }
103Expression square(const Expression& x) { return Expression(x.pg, x.pg->add_function<Square>({x.i})); }
104Expression cube(const Expression& x) { return Expression(x.pg, x.pg->add_function<Cube>({x.i})); }
105Expression logistic(const Expression& x) { return Expression(x.pg, x.pg->add_function<LogisticSigmoid>({x.i})); }
106Expression rectify(const Expression& x) { return Expression(x.pg, x.pg->add_function<Rectify>({x.i})); }
107Expression elu(const Expression& x, float alpha) { return Expression(x.pg, x.pg->add_function<ExponentialLinearUnit>({x.i}, 1.0, alpha)); }

Callers 2

dynet.cppFile · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50

Calls 1

ExpressionClass · 0.70

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.40