torch.canBroadcastTo
function canBroadcastTo(shape: readonly number[], targetShape: readonly number[]): booleanCheck if a shape is broadcastable to a target shape.
Parameters
shapereadonly number[]targetShapereadonly number[]
Returns
booleanfunction canBroadcastTo(shape: readonly number[], targetShape: readonly number[]): booleanCheck if a shape is broadcastable to a target shape.
shapereadonly number[]targetShapereadonly number[]boolean