mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-09 06:31:47 +08:00
Fixed syntax error
This commit is contained in:
parent
83dfb40f66
commit
b789a26804
@ -354,11 +354,11 @@ struct TensorEvaluator<const TensorBroadcastingOp<Broadcast, ArgType>, Device>
|
|||||||
if (NumDims > 0) {
|
if (NumDims > 0) {
|
||||||
for (int i = NumDims - 1; i > 0; --i) {
|
for (int i = NumDims - 1; i > 0; --i) {
|
||||||
compute_cost += TensorOpCost::DivCost<Index>();
|
compute_cost += TensorOpCost::DivCost<Index>();
|
||||||
if (internal::index_statically_eq<Broadcast>()(i, 1)) {
|
if (internal::index_statically_eq<Broadcast>(i, 1)) {
|
||||||
compute_cost +=
|
compute_cost +=
|
||||||
TensorOpCost::MulCost<Index>() + TensorOpCost::AddCost<Index>();
|
TensorOpCost::MulCost<Index>() + TensorOpCost::AddCost<Index>();
|
||||||
} else {
|
} else {
|
||||||
if (!internal::index_statically_eq<InputDimensions>()(i, 1)) {
|
if (!internal::index_statically_eq<InputDimensions>(i, 1)) {
|
||||||
compute_cost += TensorOpCost::MulCost<Index>() +
|
compute_cost += TensorOpCost::MulCost<Index>() +
|
||||||
TensorOpCost::ModCost<Index>() +
|
TensorOpCost::ModCost<Index>() +
|
||||||
TensorOpCost::AddCost<Index>();
|
TensorOpCost::AddCost<Index>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user