Class ov::op::v17::Histc#

class Histc : public ov::op::Op#

Histc operation computes the histogram of all input elements using equal-width bins.

Public Functions

Histc(const Output<Node> &data, int64_t bins = 100, double min = 0.0, double max = 0.0, bool preserve_input_type = true)#

Constructs a Histc operation.

Parameters:
  • data – Input tensor of numeric type and arbitrary shape.

  • bins – Number of equal-width bins.

  • min – Lower end of the range (inclusive). If equal to max, the range is taken from data.

  • max – Upper end of the range (inclusive). If equal to min, the range is taken from data.

  • preserve_input_type – If true, the output has the input type, otherwise i32.

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.