API Overview
Source
class DisplayNameFuncError
Source
class OpCallError
Source
class OpKwargs
TypedDict for op() keyword arguments.
Source
class Sentinel
Sentinel(package: ‘str’, path: ‘str’, name: ‘str’)
Source
method __init__
Source
class WeaveKwargs
Source
function as_op
fn: A weave.op decorated function. Returns: The Op of the function.
Source
function call
@weave.op, allowing for usage like:
Source
function calls
@weave.op, allowing for usage like:
Source
function get_captured_code
Source
function is_op
Source
function is_placeholder_call
Source
function is_tracing_setting_disabled
Source
function maybe_bind_method
Source
function maybe_unbind_method
- methods, remove set
selfparam - partials, remove any preset params
Source
function op
Source
function placeholder_call
Source
function setup_dunder_weave_dict
d: Optional existing WeaveKwargs dict to update.op: Op to extract kind and color from. Returns: WeaveKwargs dict with attributes, display_name, and optionally kind/color set.
Source