kstaats / karoo_gp

A Genetic Programming platform for Python with TensorFlow for wicked-fast CPU and GPU support.
Other
159 stars 61 forks source link

tf.map_fn in population.py problem #72

Closed asksak closed 2 years ago

asksak commented 2 years ago

Problem with dtype in tf.map_fn (file population.py), dtype replaced with fn_output_signature

working format:

pred_labels = tf.map_fn(fx_fitness_labels_map, result, fn_output_signature=(tf.int32, tf.string), swap_memory=True)

granawkins commented 2 years ago

This bit of code was removed in the engine-api update so I'll close it. If there's a similar issue, add to #73 for now.

kstaats commented 2 years ago

Thank you Aymen. Received and processing.

On 6/19/22 02:42, asksak wrote:

Problem with dtype in tf.map_fn (file population.py), dtype replaced with fn_output_signature

working format:

pred_labels = tf.map_fn(fx_fitness_labels_map, result, fn_output_signature=(tf.int32, tf.string), swap_memory=True)