ContNonContractRV.perform#
- ContNonContractRV.perform(node, inputs, outputs)#
Calculate the function on the inputs and put the variables in the output storage.
- Parameters:
- node
The symbolic
Applynode that represents this computation.- inputs
Immutable sequence of non-symbolic/numeric inputs. These are the values of each
Variableinnode.inputs.- output_storage
List of mutable single-element lists (do not change the length of these lists). Each sub-list corresponds to value of each
Variableinnode.outputs. The primary purpose of this method is to set the values of these sub-lists.
Notes
The
output_storagelist might contain data. If an element of output_storage is notNone, it has to be of the right type, for instance, for aTensorVariable, it has to be a NumPyndarraywith the right number of dimensions and the correct dtype. Its shape and stride pattern can be arbitrary. It is not guaranteed that such pre-set values were produced by a previous call to thisOp.perform(); they could’ve been allocated by anotherOp’sperformmethod. AnOpis free to reuseoutput_storageas it sees fit, or to discard it and allocate new memory.