aeppl.cumsum.MeasurableCumsum#

class aeppl.cumsum.MeasurableCumsum(axis=None, mode='add')[source]#

A placeholder used to specify a log-likelihood for a cumsum sub-graph.

Methods

MeasurableCumsum.L_op(inputs, outputs, ...)

Construct a graph for the L-operator.

MeasurableCumsum.R_op(inputs, eval_points)

Construct a graph for the R-operator.

MeasurableCumsum.__init__([axis, mode])

MeasurableCumsum.add_tag_trace([user_line])

Add tag.trace to a node or variable.

MeasurableCumsum.c_cleanup_code_struct(node, ...)

Return an Apply-specific code string to be inserted in the struct cleanup code.

MeasurableCumsum.c_code(node, name, inames, ...)

Return the C implementation of an Op.

MeasurableCumsum.c_code_cache_version()

Return a tuple of integers indicating the version of this Op.

MeasurableCumsum.c_code_cache_version_apply(node)

Return a tuple of integers indicating the version of this Op.

MeasurableCumsum.c_code_cleanup(node, name, ...)

Return C code to run after CLinkerOp.c_code, whether it failed or not.

MeasurableCumsum.c_compile_args(**kwargs)

Return a list of recommended compile arguments for code returned by other methods in this class.

MeasurableCumsum.c_header_dirs(**kwargs)

Return a list of header search paths required by code returned by this class.

MeasurableCumsum.c_headers(**kwargs)

Return a list of header files required by code returned by this class.

MeasurableCumsum.c_init_code(**kwargs)

Return a list of code snippets to be inserted in module initialization.

MeasurableCumsum.c_init_code_apply(node, name)

Return a code string specific to the Apply to be inserted in the module initialization code.

MeasurableCumsum.c_init_code_struct(node, ...)

Return an Apply-specific code string to be inserted in the struct initialization code.

MeasurableCumsum.c_lib_dirs(**kwargs)

Return a list of library search paths required by code returned by this class.

MeasurableCumsum.c_libraries(**kwargs)

Return a list of libraries required by code returned by this class.

MeasurableCumsum.c_no_compile_args(**kwargs)

Return a list of incompatible gcc compiler arguments.

MeasurableCumsum.c_support_code(**kwargs)

Return utility code for use by a Variable or Op.

MeasurableCumsum.c_support_code_apply(node, name)

Return Apply-specialized utility code for use by an Op that will be inserted at global scope.

MeasurableCumsum.c_support_code_struct(node, ...)

Return Apply-specific utility code for use by an Op that will be inserted at struct scope.

MeasurableCumsum.do_constant_folding(fgraph, ...)

Determine whether or not constant folding should be performed for the given node.

MeasurableCumsum.get_params(node)

Try to get parameters for the Op when Op.params_type is set to a ParamsType.

MeasurableCumsum.grad(inputs, output_gradients)

Construct a graph for the gradient with respect to each input variable.

MeasurableCumsum.infer_shape(fgraph, node, ...)

MeasurableCumsum.make_c_thunk(node, ...)

Create a thunk for a C implementation.

MeasurableCumsum.make_node(x)

Construct an Apply node that represent the application of this operation to the given inputs.

MeasurableCumsum.make_py_thunk(node, ...[, ...])

Make a Python thunk.

MeasurableCumsum.make_thunk(node, ...[, impl])

Create a thunk.

MeasurableCumsum.perform(node, inputs, ...)

Calculate the function on the inputs and put the variables in the output storage.

MeasurableCumsum.prepare_node(node, ...)

Make any special modifications that the Op needs before doing Op.make_thunk.

Attributes

c_axis

check_input

default_output

An int that specifies which output Op.__call__ should return.

destroy_map

A dict that maps output indices to the input indices upon which they operate in-place.

itypes

otypes

params_type([name])

view_map

A dict that maps output indices to the input indices of which they are a view.