Skip to content

Commit ae83d32

Browse files
committed
Merge pull request Theano#114 from abergeron/fix_bugs
Fix take when check_error is False.
2 parents c168f07 + d32c10b commit ae83d32

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/gpuarray_array.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,9 @@ int GpuArray_take1(GpuArray *a, const GpuArray *v, const GpuArray *i,
434434
n[1] *= v->dimensions[j];
435435
}
436436

437-
if (check_error) {
438-
err = v->ops->property(NULL, v->data, NULL, GA_CTX_PROP_ERRBUF, &errbuf);
439-
if (err != GA_NO_ERROR)
440-
return err;
441-
}
437+
err = v->ops->property(NULL, v->data, NULL, GA_CTX_PROP_ERRBUF, &errbuf);
438+
if (err != GA_NO_ERROR)
439+
return err;
442440

443441
err = gen_take1_kernel(&k, a->ops, GpuArray_context(a),
444442
#if DEBUG

0 commit comments

Comments
 (0)