MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / apply

Method apply

tensorflow/core/kernels/fused_eigen_output_kernels.h:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103struct Elu {
104 template <typename XprType>
105 static auto apply(XprType expr) -> decltype(
106 (expr < std::declval<typename XprType::Scalar>())
107 .select(expr.exp() -
108 expr.constant(std::declval<typename XprType::Scalar>()),
109 expr)) {
110 return (expr < static_cast<typename XprType::Scalar>(0))
111 .select(expr.exp() -
112 expr.constant(static_cast<typename XprType::Scalar>(1)),
113 expr);
114 };
115};
116
117// Applies `LeakyRelu` to the passed input expression.

Callers 15

__init__Method · 0.45
input_fnMethod · 0.45
testSlideDatasetMethod · 0.45
testSlideSparseMethod · 0.45
testNestedSlideSparseMethod · 0.45
testSlideShapeErrorMethod · 0.45

Calls 2

selectMethod · 0.45
constantMethod · 0.45