batch=[b[-1]forbinbatch]# indices without the tree structure
try:
returnfunctions[order](
forward_kwargs,
...
...
@@ -360,7 +381,7 @@ class BaseTaylorAnalysis(object):
tctensor_features_axis (int, optional): Dimension containing features in tctensor given in forward_kwargs. Defaults to -1.
additional_idx_to_tctensor (int, optional): Index of the tctensor if forward_kwargs[forward_kwargs_tctensor_key] is a list. Defaults to None.
selected_model_output_idx (int, optional): Index of the model output if its output is a sequence. Defaults to 0.
n_threads (int, optional): Number of threads to use for parallelization. If None, no multithreading is used at all. Defaults to None.
n_threads (int, optional): Number of threads to parallelize the computation of TCs in tc_idx_list. If None, no multithreading is used at all. Defaults to None.
Raises:
ValueError: tc_idx_list must be a List of tuples!
...
...
@@ -378,7 +399,6 @@ class BaseTaylorAnalysis(object):