canMaterialize

open override fun canMaterialize(view: TensorView<T, V>): Boolean(source)

Checks if this strategy can materialize the given view.

Some materialization strategies may have constraints or requirements that make them unsuitable for certain types of views. This method allows the strategy to indicate whether it can handle a particular view.

Common constraints might include:

  • View complexity (too many nested transformations)

  • Memory availability (not enough space for immediate copying)

  • Data type compatibility (specialized strategies for specific types)

  • Backend requirements (GPU vs CPU accessibility)

Return

true if this strategy can materialize the view, false otherwise

Parameters

view

the TensorView to check