Skip to content

Commit 8f54d70

Browse files
committed
fix: remove old changes
1 parent 9759ffd commit 8f54d70

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include "stablehlo/dialect/ChloOps.h"
3333
#include "stablehlo/dialect/StablehloOps.h"
3434

35-
#include "src/enzyme_ad/jax/Dialect/Dialect.h"
36-
#include "src/enzyme_ad/jax/Dialect/Ops.h"
3735
#include "src/enzyme_ad/jax/Implementations/WhileLoopInfo.h"
3836
#include "src/enzyme_ad/jax/Implementations/XLADerivatives.h"
3937
#include "src/enzyme_ad/jax/Utils.h"
@@ -1694,9 +1692,8 @@ struct SHLOGetDimensionSizeOpBatchInterface
16941692
auto bcastOp = BroadcastInDimOp::create(
16951693
builder, src->getLoc(),
16961694
RankedTensorType::get(
1697-
batchSizes,
1698-
cast<RankedTensorType>(newOp->getResult(0).getType())
1699-
.getElementType()),
1695+
batchSizes, cast<RankedTensorType>(newOp->getResult(0).getType())
1696+
.getElementType()),
17001697
newOp->getResult(0), builder.getDenseI64ArrayAttr({}));
17011698
mapper.map(src->getResult(0), bcastOp->getResult(0));
17021699
return success();
@@ -3949,8 +3946,6 @@ void mlir::enzyme::registerStableHLODialectAutoDiffInterface(
39493946
*context);
39503947

39513948
ConstantOp::attachInterface<SHLOConstantOpBatchInterface>(*context);
3952-
GetDimensionSizeOp::attachInterface<SHLOGetDimensionSizeOpBatchInterface>(
3953-
*context);
39543949
TransposeOp::attachInterface<SHLOTransposeOpBatchInterface>(*context);
39553950
IfOp::attachInterface<SHLOGenericBatchOpInterface<IfOp>>(*context);
39563951
WhileOp::attachInterface<SHLOGenericBatchOpInterface<WhileOp>>(*context);
@@ -3980,9 +3975,5 @@ void mlir::enzyme::registerStableHLODialectAutoDiffInterface(
39803975

39813976
AddOp::attachInterface<StablehloAddSimplifyMathInterface>(*context);
39823977
SubtractOp::attachInterface<StablehloSubSimplifyMathInterface>(*context);
3983-
3984-
// TODO: move into its own file
3985-
enzymexla::JITCallOp::attachInterface<
3986-
SHLOGenericBatchOpInterface<enzymexla::JITCallOp>>(*context);
39873978
});
39883979
}

0 commit comments

Comments
 (0)