Skip to content

Commit

Permalink
Remove version converter
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chu <justinchu@microsoft.com>
  • Loading branch information
justinchuby committed Sep 21, 2023
1 parent b2a07da commit 5808dd6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 138 deletions.
47 changes: 0 additions & 47 deletions onnx/version_converter/adapters/axis_attribute_to_input.h

This file was deleted.

87 changes: 0 additions & 87 deletions onnx/version_converter/adapters/axis_input_to_attribute.h

This file was deleted.

4 changes: 0 additions & 4 deletions onnx/version_converter/convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "onnx/version_converter/BaseConverter.h"
#include "onnx/version_converter/adapters/axes_attribute_to_input.h"
#include "onnx/version_converter/adapters/axes_input_to_attribute.h"
#include "onnx/version_converter/adapters/axis_attribute_to_input.h"
#include "onnx/version_converter/adapters/axis_input_to_attribute.h"
#include "onnx/version_converter/adapters/batch_normalization_13_14.h"
#include "onnx/version_converter/adapters/broadcast_backward_compatibility.h"
#include "onnx/version_converter/adapters/broadcast_forward_compatibility.h"
Expand Down Expand Up @@ -566,14 +564,12 @@ class DefaultVersionConverter : public BaseVersionConverter {
registerAdapter(std::make_unique<CompatibleAdapter>("Size", OpSetID(18), OpSetID(19)));

/******** 19 -> 20 ********/
registerAdapter(std::make_unique<AxisAttributeToInput>("DFT", OpSetID(19), OpSetID(20)));
registerAdapter(std::make_unique<CompatibleAdapter>("ConstantOfShape", OpSetID(19), OpSetID(20)));
registerAdapter(std::make_unique<CompatibleAdapter>("ReduceMax", OpSetID(19), OpSetID(20)));
registerAdapter(std::make_unique<CompatibleAdapter>("ReduceMin", OpSetID(19), OpSetID(20)));
registerAdapter(std::make_unique<GridSample_19_20>());

/******** 20 -> 19 ********/
registerAdapter(std::make_unique<AxisInputToAttribute>("DFT", OpSetID(20), OpSetID(19)));
const std::vector<TensorProto_DataType> reduce_min_max_18_unallowed_types = {TensorProto_DataType_BOOL};
registerAdapter(
std::make_unique<TypeRestriction>("ReduceMax", OpSetID(20), OpSetID(19), reduce_min_max_18_unallowed_types));
Expand Down

0 comments on commit 5808dd6

Please sign in to comment.