NREL / rlmolecule

A reinforcement learning library for material and molecule optimization
BSD 3-Clause "New" or "Revised" License
30 stars 9 forks source link

TF serving #16

Open pstjohn opened 4 years ago

pstjohn commented 4 years ago
dmdu commented 4 years ago

Started experimenting with tf_serving and batching (with ysi example so far).

max_batch_size { value: 16 } batch_timeout_micros { value: 100000 } max_enqueued_batches { value: 1000000 } num_batch_threads { value: 4 } pad_variable_length_inputs: true

pstjohn commented 4 years ago

Looks like we'll need to either patch tf-serving or figure out a way to put a padded atom first in each input: tensorflow/serving#1279

Modifying our code, we could probably add a 'pad' atom, bond, and connectivity row to the beginning of each array. Then we'd increment all the connectivity values by 1.