Skip to content

Why force_fp32 is set to true for conv weight and biases on XNNPack backend #15817

@onurtore

Description

@onurtore

Is there a specific reason force_fp32 set to true for convolution weight and biases for the XNNPack backend? I would like to use fp16 operations but default does not allow me.

    self.define_tensor(
        kernel_node,
        xnn_graph,
        vals_to_ids,
        ...,
        force_fp32=True,
    )
    ...
    self.define_tensor(
        get_input_node(node, 2),
        xnn_graph,
        vals_to_ids,
        ...,
        quant_params=bias_quant_params,
        force_fp32=True,
    )

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