https://github.com/halide/Halide
Raw File
Tip revision: b7b4d6edd18926a77c76204fda11fea581362e69 authored by Steven Johnson on 06 March 2018, 01:39:56 UTC
Minor Module API cleanup
Tip revision: b7b4d6e
Tuple.cpp
#include "Tuple.h"
#include "Func.h"
#include "Debug.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];
    }
}

}
back to top