projects
/
flatland.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[flatland.git]
/
flatland.c
diff --git
a/flatland.c
b/flatland.c
index
77f89aa
..
a77d7c1
100644
(file)
--- a/
flatland.c
+++ b/
flatland.c
@@
-21,6
+21,7
@@
THByteTensor *generate_sequence(long nb_sequences,
long nb_images,
long image_height, long image_width,
THByteTensor *generate_sequence(long nb_sequences,
long nb_images,
long image_height, long image_width,
+ int nb_shapes,
int random_shape_size, int random_colors) {
long nb_channels = 3;
int random_shape_size, int random_colors) {
long nb_channels = 3;
@@
-46,7
+47,7
@@
THByteTensor *generate_sequence(long nb_sequences,
for(s = 0; s < nb_sequences; s++) {
a = THByteTensor_storage(result)->data + THByteTensor_storageOffset(result) + s * st0;
for(s = 0; s < nb_sequences; s++) {
a = THByteTensor_storage(result)->data + THByteTensor_storageOffset(result) + s * st0;
- fl_generate_sequence(nb_images, image_width, image_height,
+ fl_generate_sequence(nb_images, image_width, image_height,
nb_shapes,
random_shape_size, random_colors,
tmp_buffer);
unsigned char *r = tmp_buffer;
random_shape_size, random_colors,
tmp_buffer);
unsigned char *r = tmp_buffer;