TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.nn.functional.linear_cross_entropy

tensorplay.nn.functional.linear_cross_entropy(input: Tensor, linear_weight: Tensor, target: Tensor, *, linear_bias=None, weight=None, reduction: str = 'mean', ignore_index=None, label_smoothing: float = 0.0, options=None) → Tensor[source]

Compute cross entropy between input, transformed linearly, and target.

Equivalent to cross_entropy(linear(input, linear_weight), target, **kwargs) (reference path; chunked/fused options are ignored).

On this page

Ask DeepWiki