开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 3

xiongying/Halide

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
main
分支 (1093)
标签 (17)
main
xtensa-codegen
vksnk/dma-limit-channels
rootjalex/trs-codegen-cross
abadams/fix_7374
abadams/remove_hack_from_gpu_only_aottest
srj/gpu-cache
srj/generator_aot_gpu_multi_context_threaded
srj/xtensa-merge
abadams/vector_scan
abadams/fix_7365
darya-ver/ir-viz
vulkan-phase2-runtime
srj/param-map-deprecation
srj/rt-return-types
srj/main-vs2022
release/15.x
srj/param-map
abadams/ir_builder_unique_ptr
vksnk/restrict
v14.0.0
v13.0.4
v13.0.3
v13.0.2
v13.0.1
v13.0.0
v12.0.1
v12.0.0
v11.0.1
v11.0.0
v10.0.1
v10.0.0
release_2019_08_27
release_8.0.0
v8.0.0
release_2018_02_15
release_2013_11_11
main
分支 (1093)
标签 (17)
main
xtensa-codegen
vksnk/dma-limit-channels
rootjalex/trs-codegen-cross
abadams/fix_7374
abadams/remove_hack_from_gpu_only_aottest
srj/gpu-cache
srj/generator_aot_gpu_multi_context_threaded
srj/xtensa-merge
abadams/vector_scan
abadams/fix_7365
darya-ver/ir-viz
vulkan-phase2-runtime
srj/param-map-deprecation
srj/rt-return-types
srj/main-vs2022
release/15.x
srj/param-map
abadams/ir_builder_unique_ptr
vksnk/restrict
v14.0.0
v13.0.4
v13.0.3
v13.0.2
v13.0.1
v13.0.0
v12.0.1
v12.0.0
v11.0.1
v11.0.0
v10.0.1
v10.0.0
release_2019_08_27
release_8.0.0
v8.0.0
release_2018_02_15
release_2013_11_11
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
main
分支 (1093)
标签 (17)
main
xtensa-codegen
vksnk/dma-limit-channels
rootjalex/trs-codegen-cross
abadams/fix_7374
abadams/remove_hack_from_gpu_only_aottest
srj/gpu-cache
srj/generator_aot_gpu_multi_context_threaded
srj/xtensa-merge
abadams/vector_scan
abadams/fix_7365
darya-ver/ir-viz
vulkan-phase2-runtime
srj/param-map-deprecation
srj/rt-return-types
srj/main-vs2022
release/15.x
srj/param-map
abadams/ir_builder_unique_ptr
vksnk/restrict
v14.0.0
v13.0.4
v13.0.3
v13.0.2
v13.0.1
v13.0.0
v12.0.1
v12.0.0
v11.0.1
v11.0.0
v10.0.1
v10.0.0
release_2019_08_27
release_8.0.0
v8.0.0
release_2018_02_15
release_2013_11_11
Halide
/
src
/
ModulusRemainder.cpp
Halide
/
src
/
ModulusRemainder.cpp
ModulusRemainder.cpp 17.26 KB
一键复制 编辑 原始数据 按行查看 历史
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
#include "ModulusRemainder.h"
#include "IR.h"
#include "IROperator.h"
#include "IRPrinter.h"
#include "Simplify.h"
namespace Halide {
namespace Internal {
namespace {
// A version of mod where a % 0 == a
int64_t mod(int64_t a, int64_t b) {
if (b == 0) {
return a;
} else {
return mod_imp(a, b);
}
}
class ComputeModulusRemainder : public IRVisitor {
public:
ModulusRemainder analyze(const Expr &e);
ModulusRemainder result;
Scope<ModulusRemainder> scope;
ComputeModulusRemainder(const Scope<ModulusRemainder> *s) {
scope.set_containing_scope(s);
}
void visit(const IntImm *) override;
void visit(const UIntImm *) override;
void visit(const FloatImm *) override;
void visit(const StringImm *) override;
void visit(const Cast *) override;
void visit(const Reinterpret *) override;
void visit(const Variable *) override;
void visit(const Add *) override;
void visit(const Sub *) override;
void visit(const Mul *) override;
void visit(const Div *) override;
void visit(const Mod *) override;
void visit(const Min *) override;
void visit(const Max *) override;
void visit(const EQ *) override;
void visit(const NE *) override;
void visit(const LT *) override;
void visit(const LE *) override;
void visit(const GT *) override;
void visit(const GE *) override;
void visit(const And *) override;
void visit(const Or *) override;
void visit(const Not *) override;
void visit(const Select *) override;
void visit(const Load *) override;
void visit(const Ramp *) override;
void visit(const Broadcast *) override;
void visit(const Call *) override;
void visit(const Let *) override;
void visit(const LetStmt *) override;
void visit(const AssertStmt *) override;
void visit(const ProducerConsumer *) override;
void visit(const For *) override;
void visit(const Acquire *) override;
void visit(const Store *) override;
void visit(const Provide *) override;
void visit(const Allocate *) override;
void visit(const Realize *) override;
void visit(const Block *) override;
void visit(const Fork *) override;
void visit(const IfThenElse *) override;
void visit(const Free *) override;
void visit(const Evaluate *) override;
void visit(const Shuffle *) override;
void visit(const VectorReduce *) override;
void visit(const Prefetch *) override;
void visit(const Atomic *) override;
};
void ComputeModulusRemainder::visit(const IntImm *op) {
// Equal to op->value modulo anything. We'll use zero as the
// modulus to mark this special case. We'd better be able to
// handle zero in the rest of the code...
result = {0, op->value};
}
void ComputeModulusRemainder::visit(const UIntImm *op) {
internal_error << "modulus_remainder of uint\n";
}
void ComputeModulusRemainder::visit(const FloatImm *) {
internal_error << "modulus_remainder of float\n";
}
void ComputeModulusRemainder::visit(const StringImm *) {
internal_error << "modulus_remainder of string\n";
}
void ComputeModulusRemainder::visit(const Cast *) {
// TODO: Could probably do something reasonable for integer
// upcasts and downcasts where the modulus is a power of two.
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const Reinterpret *) {
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const Variable *op) {
if (scope.contains(op->name)) {
result = scope.get(op->name);
} else {
result = ModulusRemainder{};
}
}
void ComputeModulusRemainder::visit(const Add *op) {
result = analyze(op->a) + analyze(op->b);
}
void ComputeModulusRemainder::visit(const Sub *op) {
result = analyze(op->a) - analyze(op->b);
}
void ComputeModulusRemainder::visit(const Mul *op) {
result = analyze(op->a) * analyze(op->b);
}
void ComputeModulusRemainder::visit(const Div *op) {
result = analyze(op->a) / analyze(op->b);
}
void ComputeModulusRemainder::visit(const Min *op) {
result = ModulusRemainder::unify(analyze(op->a), analyze(op->b));
}
void ComputeModulusRemainder::visit(const Max *op) {
result = ModulusRemainder::unify(analyze(op->a), analyze(op->b));
}
void ComputeModulusRemainder::visit(const EQ *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const NE *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const LT *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const LE *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const GT *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const GE *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const And *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const Or *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const Not *) {
internal_error << "modulus_remainder of bool\n";
}
void ComputeModulusRemainder::visit(const Select *op) {
result = ModulusRemainder::unify(analyze(op->true_value),
analyze(op->false_value));
}
void ComputeModulusRemainder::visit(const Load *) {
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const Ramp *) {
internal_error << "modulus_remainder of vector\n";
}
void ComputeModulusRemainder::visit(const Broadcast *) {
internal_error << "modulus_remainder of vector\n";
}
void ComputeModulusRemainder::visit(const Call *) {
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const Let *op) {
if (op->value.type().is_int()) {
ScopedBinding<ModulusRemainder> bind(scope, op->name, analyze(op->value));
result = analyze(op->body);
} else {
result = analyze(op->body);
}
}
void ComputeModulusRemainder::visit(const Shuffle *op) {
// It's possible that scalar expressions are extracting a lane of
// a vector - don't fail in this case, but stop
internal_assert(op->indices.size() == 1) << "modulus_remainder of vector\n";
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const VectorReduce *op) {
internal_assert(op->type.is_scalar()) << "modulus_remainder of vector\n";
result = ModulusRemainder{};
}
void ComputeModulusRemainder::visit(const LetStmt *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const AssertStmt *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const ProducerConsumer *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const For *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Acquire *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Store *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Provide *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Allocate *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Realize *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Block *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Fork *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Free *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const IfThenElse *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Evaluate *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Prefetch *) {
internal_error << "modulus_remainder of statement\n";
}
void ComputeModulusRemainder::visit(const Atomic *) {
internal_error << "modulus_remainder of statement\n";
}
} // namespace
ModulusRemainder modulus_remainder(const Expr &e) {
ComputeModulusRemainder mr(nullptr);
return mr.analyze(e);
}
ModulusRemainder modulus_remainder(const Expr &e, const Scope<ModulusRemainder> &scope) {
ComputeModulusRemainder mr(&scope);
return mr.analyze(e);
}
bool reduce_expr_modulo(const Expr &expr, int64_t modulus, int64_t *remainder) {
ModulusRemainder result = modulus_remainder(expr);
/* As an example: If we asked for expr mod 8, and the analysis
* said that expr = 16*k + 13, then because 16 % 8 == 0, the
* result is 13 % 8 == 5. But if the analysis says that expr =
* 6*k + 3, then expr mod 8 could be 1, 3, 5, or 7, so we just
* return false.
*/
if (mod(result.modulus, modulus) == 0) {
*remainder = mod(result.remainder, modulus);
return true;
} else {
return false;
}
}
bool reduce_expr_modulo(const Expr &expr, int64_t modulus, int64_t *remainder, const Scope<ModulusRemainder> &scope) {
ModulusRemainder result = modulus_remainder(expr, scope);
if (mod(result.modulus, modulus) == 0) {
*remainder = mod(result.remainder, modulus);
return true;
} else {
return false;
}
}
ModulusRemainder ComputeModulusRemainder::analyze(const Expr &e) {
e.accept(this);
return result;
}
namespace {
void check(const Expr &e, int64_t m, int64_t r) {
ModulusRemainder result = modulus_remainder(e);
if (result.modulus != m || result.remainder != r) {
std::cerr << "Test failed for modulus_remainder:\n";
std::cerr << "Expression: " << e << "\n";
std::cerr << "Correct modulus, remainder = " << m << ", " << r << "\n";
std::cerr << "Computed modulus, remainder = "
<< result.modulus << ", "
<< result.remainder << "\n";
exit(-1);
}
}
} // namespace
void modulus_remainder_test() {
Expr x = Variable::make(Int(32), "x");
Expr y = Variable::make(Int(32), "y");
check((30 * x + 3) + (40 * y + 2), 10, 5);
check((6 * x + 3) * (4 * y + 1), 2, 1);
check(max(30 * x - 24, 40 * y + 31), 5, 1);
check(10 * x - 33 * y, 1, 0);
check(10 * x - 35 * y, 5, 0);
check(123, 0, 123);
check(Let::make("y", x * 3 + 4, y * 3 + 4), 9, 7);
// Check overflow
check((5045320 * x + 4) * (405713 * y + 3) * (8000123 * x + 4354), 1, 0);
std::cout << "modulus_remainder test passed\n";
}
int64_t gcd(int64_t a, int64_t b) {
if (a < b) {
std::swap(a, b);
}
while (b != 0) {
int64_t tmp = b;
b = a % b;
a = tmp;
}
return a;
}
int64_t lcm(int64_t a, int64_t b) {
// Remove all of the common factors from one of the operands
b /= gcd(a, b);
// Then multiply. On overflow this will return zero, so ignore the overflow
// flag.
int64_t result;
(void)mul_with_overflow(64, a, b, &result);
return result;
}
ModulusRemainder operator+(const ModulusRemainder &a, const ModulusRemainder &b) {
int64_t m = 1, r = 0;
if (add_with_overflow(64, a.remainder, b.remainder, &r)) {
m = gcd(a.modulus, b.modulus);
r = mod(r, m);
}
return {m, r};
}
ModulusRemainder operator-(const ModulusRemainder &a, const ModulusRemainder &b) {
int64_t m = 1, r = 0;
if (sub_with_overflow(64, a.remainder, b.remainder, &r)) {
m = gcd(a.modulus, b.modulus);
r = mod(r, m);
}
return {m, r};
}
ModulusRemainder operator*(const ModulusRemainder &a, const ModulusRemainder &b) {
int64_t m, r;
if (a.modulus == 0) {
// a is constant
if (mul_with_overflow(64, a.remainder, b.modulus, &m) &&
mul_with_overflow(64, a.remainder, b.remainder, &r)) {
return {m, r};
}
} else if (b.modulus == 0) {
// b is constant
if (mul_with_overflow(64, a.modulus, b.remainder, &m) &&
mul_with_overflow(64, a.remainder, b.remainder, &r)) {
return {m, r};
}
} else if (a.remainder == 0 && b.remainder == 0) {
// multiple times multiple
if (mul_with_overflow(64, a.modulus, b.modulus, &m)) {
return {m, 0};
}
} else if (a.remainder == 0) {
int64_t g = gcd(b.modulus, b.remainder);
if (mul_with_overflow(64, a.modulus, g, &m)) {
return {m, 0};
}
} else if (b.remainder == 0) {
int64_t g = gcd(a.modulus, a.remainder);
if (mul_with_overflow(64, b.modulus, g, &m)) {
return {m, 0};
}
} else {
// Convert them to the same modulus and multiply
if (mul_with_overflow(64, a.remainder, b.remainder, &r)) {
m = gcd(a.modulus, b.modulus);
r = mod(r, m);
return {m, r};
}
}
return ModulusRemainder{};
}
ModulusRemainder operator/(const ModulusRemainder &a, const ModulusRemainder &b) {
// What can we say about:
// floor((m1 * x + r1) / (m2 * y + r2))
// If m2 is zero and m1 is a multiple of r2, then we can pull the
// varying term out of the floor div and the expression simplifies
// to:
// (m1 / r2) * x + floor(r1 / r2)
// E.g. (8x + 3) / 2 -> (4x + 1)
if (b.modulus == 0 && b.remainder != 0) {
if (mod(a.modulus, b.remainder) == 0) {
return {a.modulus / b.remainder, div_imp(a.remainder, b.remainder)};
}
}
return ModulusRemainder{};
}
ModulusRemainder ModulusRemainder::unify(const ModulusRemainder &a, const ModulusRemainder &b) {
// We don't know if we're going to get a or b, so we'd better find
// a single modulus remainder that works for both.
// For example:
// max(30*_ + 13, 40*_ + 27) ->
// max(10*_ + 3, 10*_ + 7) ->
// max(2*_ + 1, 2*_ + 1) ->
// 2*_ + 1
if (b.remainder > a.remainder) {
return unify(b, a);
}
// Reduce them to the same modulus and the same remainder
int64_t modulus = gcd(a.modulus, b.modulus);
int64_t r;
if (!sub_with_overflow(64, a.remainder, b.remainder, &r)) {
// The modulus is not representable as an int64.
return {0, 1};
}
int64_t diff = a.remainder - b.remainder;
modulus = gcd(diff, modulus);
int64_t ra = mod(a.remainder, modulus);
internal_assert(ra == mod(b.remainder, modulus))
<< "There's a bug inside ModulusRemainder in unify_alternatives:\n"
<< "a.modulus = " << a.modulus << "\n"
<< "a.remainder = " << a.remainder << "\n"
<< "b.modulus = " << b.modulus << "\n"
<< "b.remainder = " << b.remainder << "\n"
<< "diff = " << diff << "\n"
<< "unified modulus = " << modulus << "\n"
<< "unified remainder = " << ra << "\n";
return {modulus, ra};
}
ModulusRemainder ModulusRemainder::intersect(const ModulusRemainder &a, const ModulusRemainder &b) {
// We have x == ma * y + ra == mb * z + rb
// We want to synthesize these two facts into one modulus
// remainder relationship. We are permitted to be
// conservatively-large, so it's OK if some elements of the result
// only satisfy one of the two constraints.
// For coprime ma and mb you want to use the Chinese remainder
// theorem. In our case, the moduli will almost always be
// powers of two, so we should just return the smaller of the two
// sets (usually the one with the larger modulus).
if (a.modulus == 0) {
return a;
}
if (b.modulus == 0) {
return b;
}
if (a.modulus > b.modulus) {
return a;
}
return b;
}
void ComputeModulusRemainder::visit(const Mod *op) {
result = analyze(op->a) % analyze(op->b);
}
ModulusRemainder operator%(const ModulusRemainder &a, const ModulusRemainder &b) {
// For non-zero y, we can treat x mod y as x + z*y, where we know
// nothing about z.
// (ax + b) + z (cx + d) ->
// ax + b + zcx + dz ->
// gcd(a, c, d) * w + b
// E.g:
// (8x + 5) mod (6x + 2) ->
// (8x + 5) + z (6x + 2) ->
// (8x + 6zx + 2x) + 5 ->
// 2(4x + 3zx + x) + 5 ->
// 2w + 1
int64_t modulus = gcd(a.modulus, b.modulus);
modulus = gcd(modulus, b.remainder);
int64_t remainder = mod(a.remainder, modulus);
if (b.remainder == 0 && remainder != 0) {
// b could be zero, so the result could also just be zero.
if (modulus == 0) {
remainder = 0;
} else {
// This can no longer be expressed as ax + b
remainder = 0;
modulus = 1;
}
}
return {modulus, remainder};
}
ModulusRemainder operator+(const ModulusRemainder &a, int64_t b) {
return a + ModulusRemainder(0, b);
}
ModulusRemainder operator-(const ModulusRemainder &a, int64_t b) {
return a - ModulusRemainder(0, b);
}
ModulusRemainder operator*(const ModulusRemainder &a, int64_t b) {
return a * ModulusRemainder(0, b);
}
ModulusRemainder operator/(const ModulusRemainder &a, int64_t b) {
return a / ModulusRemainder(0, b);
}
ModulusRemainder operator%(const ModulusRemainder &a, int64_t b) {
return a % ModulusRemainder(0, b);
}
} // namespace Internal
} // namespace Halide
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

MIT计算机科学和人工智能实验室的研究人员创造出一种专门设计简化图像处理的程序语言Halide,源代码托管在GitHub上,目前二进制程序只支持Mac OS X和Ubuntu 12
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/VisionDeveloper/Halide.git
git@gitee.com:VisionDeveloper/Halide.git
VisionDeveloper
Halide
Halide
main
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /