This action will force synchronization from Gitee 极速下载/Halide, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#include "Buffer.h"#include "IR.h"#include "IREquality.h"#include "IROperator.h"#include "Var.h"namespace Halide {namespace Internal {template<>RefCount &ref_count<BufferContents>(const BufferContents *c) noexcept {return c->ref_count;}template<>void destroy<BufferContents>(const BufferContents *c) {delete c;}Expr buffer_accessor(const Buffer<> &buf, const std::vector<Expr> &args) {std::vector<Expr> int_args;for (const Expr &e : args) {user_assert(Int(32).can_represent(e.type()))<< "Args to a call to an Image must be representable as 32-bit integers.\n";if (equal(e, _)) {// Expand the _ into the appropriate number of implicit vars.int missing_dimensions = buf.dimensions() - (int)args.size() + 1;for (int i = 0; i < missing_dimensions; i++) {int_args.push_back(Var::implicit(i));}} else if (e.type() == Int(32)) {int_args.push_back(e);} else {int_args.push_back(cast<int>(e));}}Expr c = Call::make(buf, int_args);user_assert(int_args.size() == (size_t)buf.dimensions())<< "Dimensionality mismatch accessing Buffer " << buf.name()<< ". There were " << int_args.size()<< " arguments, but the Buffer has " << buf.dimensions() << " dimensions:\n"<< " " << c << "\n";return c;}} // namespace Internal} // namespace Halide
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。