MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / getActions

Method getActions

cart-pole/index.js:224–226  ·  view source on GitHub ↗

* Get actions based on a state-tensor input. * * @param {tf.Tensor} inputs A tf.Tensor instance of shape `[batchSize, 4]`. * @param {Float32Array} inputs The actions for the inputs, with length * `batchSize`.

(inputs)

Source from the content-addressed store, hash-verified

222 * `batchSize`.
223 */
224 getActions(inputs) {
225 return this.getLogitsAndActions(inputs)[1].dataSync();
226 }
227
228 /**
229 * Push a new dictionary of gradients into records.

Callers 1

setUpUIFunction · 0.80

Calls 1

getLogitsAndActionsMethod · 0.95

Tested by

no test coverage detected