Skip to content

Commit

Permalink
Remove deprecated functions in schema.h (onnx#5538)
Browse files Browse the repository at this point in the history
### Description

Remove deprecated functions in schema.h that are marked for deletion in
1.15

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Corwin Joy <corwinjoy@gmail.com>
  • Loading branch information
justinchuby authored and Corwin Joy committed Sep 5, 2023
1 parent 6a1b533 commit de888ab
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions onnx/defs/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,6 @@ class OpSchema final {
return numeric_types_for_math_reduction_ir4;
}

// Deprecated function, use numeric_types_for_math_reduction_ir4 instead. It will be removed in onnx==1.15.0.
static const std::vector<std::string>& numeric_types_for_math_reduction_with_bfloat() {
return numeric_types_for_math_reduction_ir4();
}

static const std::vector<std::string>& numeric_types_for_math_reduction() {
static const std::vector<std::string> numeric_types_for_math_reduction = {
"tensor(uint32)",
Expand Down Expand Up @@ -668,11 +663,6 @@ class OpSchema final {
return all_numeric_types_ir4;
}

// Deprecated function, use all_numeric_types_ir4 instead. It will be removed in onnx==1.15.0.
static const std::vector<std::string>& all_numeric_types_with_bfloat() {
return all_numeric_types_ir4();
}

static const std::vector<std::string>& all_numeric_types() {
static const std::vector<std::string> all_numeric_types = {
"tensor(uint8)",
Expand Down Expand Up @@ -752,11 +742,6 @@ class OpSchema final {
return all_float_types_ir4;
}

// Deprecated function, use all_tensor_types_ir4 instead. It will be removed in onnx==1.15.0.
static const std::vector<std::string>& all_tensor_types_with_bfloat() {
return all_tensor_types_ir4();
}

static const std::vector<std::string>& all_tensor_types_ir9() {
static const std::vector<std::string> all_tensor_types_ir9 = {
"tensor(uint8)", "tensor(uint16)", "tensor(uint32)", "tensor(uint64)",
Expand Down Expand Up @@ -808,11 +793,6 @@ class OpSchema final {
return all_tensor_sequence_types_ir4;
}

// Deprecated function, use all_tensor_sequence_types_ir4 instead. It will be removed in onnx==1.15.0.
static const std::vector<std::string>& all_tensor_sequence_types_with_bfloat() {
return all_tensor_sequence_types_ir4();
}

static const std::vector<std::string>& all_tensor_sequence_types_ir9() {
static const std::vector<std::string> all_tensor_sequence_types_ir4 = {
"seq(tensor(uint8))", "seq(tensor(uint16))", "seq(tensor(uint32))",
Expand Down Expand Up @@ -856,10 +836,6 @@ class OpSchema final {
return all_optional_types;
}

// Deprecated function, use all_optional_types_ir4 instead. It will be removed in onnx==1.15.0.
static const std::vector<std::string>& all_optional_types_with_bfloat() {
return all_optional_types_ir4();
}
static const std::vector<std::string>& all_optional_types_ir9() {
static const std::vector<std::string> all_optional_types = {
"optional(seq(tensor(uint8)))", "optional(seq(tensor(uint16)))", "optional(seq(tensor(uint32)))",
Expand Down

0 comments on commit de888ab

Please sign in to comment.