torch.applyOut
Helper to copy result into out tensor if provided. Returns the out tensor if provided, otherwise the result. Exported for use in other op modules (comparison.ts, etc.)
Parameters
resultToptions{ out?: Tensor }optional
Returns
THelper to copy result into out tensor if provided. Returns the out tensor if provided, otherwise the result. Exported for use in other op modules (comparison.ts, etc.)
resultToptions{ out?: Tensor }optionalT