File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1055,7 +1055,7 @@ Method::set_input(const EValue& input_evalue, size_t input_idx) {
1055
1055
1056
1056
const auto & e = get_value (get_input_index (input_idx));
1057
1057
1058
- if (!e. isTensor () && ! e.isScalar ()) {
1058
+ if (!(e. isNone () || e. isTensor () || e.isScalar () || e. isString () )) {
1059
1059
#if ET_LOG_ENABLED
1060
1060
std::array<char , kTagNameBufferSize > tag_name;
1061
1061
tag_to_string (e.tag , tag_name.data (), tag_name.size ());
@@ -1088,7 +1088,9 @@ Method::set_input(const EValue& input_evalue, size_t input_idx) {
1088
1088
return Error::InvalidArgument;
1089
1089
}
1090
1090
1091
- if (e.isTensor ()) {
1091
+ if (e.isNone ()) {
1092
+ // no-op
1093
+ } else if (e.isTensor ()) {
1092
1094
const auto & t_dst = e.toTensor ();
1093
1095
const auto & t_src = input_evalue.toTensor ();
1094
1096
You can’t perform that action at this time.
0 commit comments