Skip to content

Multiplying float16 matrices gives a float32 matrix #4057

@ViralBShah

Description

@ViralBShah

This should give a Float16 result.

julia> ones(Float16,5,5)*ones(Float16,5,5,)
5x5 Float32 Array:
 5.0f0  5.0f0  5.0f0  5.0f0  5.0f0
 5.0f0  5.0f0  5.0f0  5.0f0  5.0f0
 5.0f0  5.0f0  5.0f0  5.0f0  5.0f0
 5.0f0  5.0f0  5.0f0  5.0f0  5.0f0
 5.0f0  5.0f0  5.0f0  5.0f0  5.0f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions