Skip to content

Commit

Permalink
Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
iitaku committed Aug 5, 2024
1 parent 4477056 commit 9060470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ion/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ class Port {

template<typename T>
void bind(T *v) {
bind(Halide::type_of<T>(),v);
bind(Halide::type_of<T>(), v);
}

void bind(Halide::Type typ,void *v) {
void bind(Halide::Type target_type, void *v) {
auto i = index_ == -1 ? 0 : index_;

if (has_pred()) {
impl_->params[i] = Halide::Parameter{typ, false, 0, argument_name(pred_id(), id(), pred_name(), i, graph_id())};
impl_->params[i] = Halide::Parameter{target_type, false, 0, argument_name(pred_id(), id(), pred_name(), i, graph_id())};
} else {
impl_->params[i] = Halide::Parameter{type(), false, dimensions(), argument_name(pred_id(), id(), pred_name(), i, graph_id())};
}
Expand Down

0 comments on commit 9060470

Please sign in to comment.