getDecisionReason

abstract fun getDecisionReason(tensor: Tensor<T, V>, slices: List<Slice<T, V>>): String(source)

Provides a reason code for the view vs copy decision.

This method returns a human-readable explanation for why the strategy chose to create a view or perform a copy. Useful for debugging and performance analysis.

Return

a string describing the decision rationale

Parameters

tensor

the parent tensor being sliced

slices

the list of slice descriptors