automatic code-reformat
All checks were successful
Validate Operations / validate-operations (push) Successful in 18m22s
All checks were successful
Validate Operations / validate-operations (push) Successful in 18m22s
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "mlir/IR/BuiltinTypeInterfaces.h"
|
||||
|
||||
#include "llvm/Support/Casting.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
@@ -50,10 +52,9 @@ inline int64_t getSpatWeightCompute(onnx_mlir::spatial::SpatWeightedCompute spat
|
||||
int64_t tot = 0;
|
||||
for (auto& region : spatWeightedCompute.getBody()) {
|
||||
for (auto& inst : region) {
|
||||
for(auto result : inst.getResults()){
|
||||
if(auto element = llvm::dyn_cast<mlir::ShapedType>(result.getType()))
|
||||
tot += onnx_mlir::getSizeInBytes(element);
|
||||
}
|
||||
for (auto result : inst.getResults())
|
||||
if (auto element = llvm::dyn_cast<mlir::ShapedType>(result.getType()))
|
||||
tot += onnx_mlir::getSizeInBytes(element);
|
||||
}
|
||||
}
|
||||
return tot;
|
||||
|
||||
Reference in New Issue
Block a user