https://github.com/halide/Halide
Raw File
Tip revision: 8d9f859f30c716b4dc9df0ede65e6d3170077167 authored by Steven Johnson on 17 November 2022, 22:30:47 UTC
Merge branch 'srj/halide_fopen' into srj/fopen-fix
Tip revision: 8d9f859
Tuple.cpp
#include "Tuple.h"
#include "Debug.h"
#include "Func.h"

namespace Halide {

Tuple::Tuple(const FuncRef &f)
    : exprs(f.size()) {
    user_assert(f.size() > 1)
        << "Can't construct a Tuple from a call to Func \""
        << f.function().name() << "\" because it does not return a Tuple.\n";
    for (size_t i = 0; i < f.size(); i++) {
        exprs[i] = f[i];
    }
}

}  // namespace Halide
back to top