File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace internal {
2525 protected:
2626 tensor transform_input (const tensor& in_vol) const override
2727 {
28- return transform_tensor ([this ](float_type x) {
28+ return transform_tensor ([](float_type x) {
2929 if (x < -1 ) {
3030 return static_cast <float_type>(-1 );
3131 } else if (x > 1 ) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace internal {
2424 protected:
2525 tensor transform_input (const tensor& in_vol) const override
2626 {
27- return transform_tensor ([this ](float_type x) {
27+ return transform_tensor ([](float_type x) {
2828 return std::log (1 / (1 + std::exp (-x)));
2929 },
3030 in_vol);
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace internal {
2525 protected:
2626 tensor transform_input (const tensor& in_vol) const override
2727 {
28- return transform_tensor ([this ](float_type x) {
28+ return transform_tensor ([](float_type x) {
2929 return std::log (x);
3030 },
3131 softmax (in_vol));
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace internal {
2424 protected:
2525 tensor transform_input (const tensor& in_vol) const override
2626 {
27- return transform_tensor ([this ](float_type x) {
27+ return transform_tensor ([](float_type x) {
2828 if (x <= -1 ) {
2929 return static_cast <float_type>(0 );
3030 } else if (x < 1 ) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace internal {
2424 protected:
2525 tensor transform_input (const tensor& in_vol) const override
2626 {
27- return transform_tensor ([this ](float_type x) {
27+ return transform_tensor ([](float_type x) {
2828 return x - std::tanh (x);
2929 },
3030 in_vol);
You can’t perform that action at this time.
0 commit comments