Skip to content

Commit

Permalink
Revert "Actually make MobileBERT run in the test. (#5264)"
Browse files Browse the repository at this point in the history
This reverts commit 1bdc3a4.
  • Loading branch information
MaheshRavishankar authored Mar 31, 2021
1 parent 10f5eaf commit dbe1d92
Show file tree
Hide file tree
Showing 4 changed files with 751 additions and 763 deletions.
10 changes: 1 addition & 9 deletions iree/compiler/Dialect/Flow/IR/FlowOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "iree/compiler/Dialect/Shape/IR/Builders.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CommandLine.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/BlockAndValueMapping.h"
Expand All @@ -34,12 +33,6 @@
#include "mlir/Support/LogicalResult.h"
#include "mlir/Transforms/RegionUtils.h"

static llvm::cl::opt<int> clInlineConstantByteLength(
"iree-flow-inline-constants-max-byte-length",
llvm::cl::desc("Maximum byte-length of constant that can be inlined into a "
"dispatch region"),
llvm::cl::init(256));

namespace mlir {
namespace iree_compiler {
namespace IREE {
Expand Down Expand Up @@ -838,8 +831,7 @@ static bool canDispatchRegionContainOp(Operation *op) {
uint64_t estimatedByteLength =
(shapedType.getNumElements() * shapedType.getElementTypeBitWidth()) /
8;
return denseAttr.isSplat() ||
estimatedByteLength <= clInlineConstantByteLength;
return denseAttr.isSplat() || estimatedByteLength <= 256; // or whatever
} else if (constantType.isIntOrIndexOrFloat()) {
return true;
}
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ iree_check_single_backend_test_suite(
srcs = CHECK_FRAMEWORK_TESTS,
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
"-iree-flow-inline-constants-max-byte-length=2048",
"-iree-codegen-spirv-experimental-linalg-on-tensors",
"-iree-spirv-enable-vectorization",
],
Expand All @@ -81,7 +80,6 @@ iree_check_single_backend_test_suite(
srcs = CHECK_FRAMEWORK_TESTS,
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
"-iree-flow-inline-constants-max-byte-length=2048",
"-iree-codegen-llvm-experimental-linalg-on-tensors",
],
driver = "dylib",
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ iree_check_single_backend_test_suite(
"vulkan"
COMPILER_FLAGS
"-iree-flow-dispatch-linalg-on-tensors"
"-iree-flow-inline-constants-max-byte-length=2048"
"-iree-codegen-spirv-experimental-linalg-on-tensors"
"-iree-spirv-enable-vectorization"
)
Expand All @@ -70,7 +69,6 @@ iree_check_single_backend_test_suite(
"dylib"
COMPILER_FLAGS
"-iree-flow-dispatch-linalg-on-tensors"
"-iree-flow-inline-constants-max-byte-length=2048"
"-iree-codegen-llvm-experimental-linalg-on-tensors"
)

Expand Down
Loading

0 comments on commit dbe1d92

Please sign in to comment.