Skip to content

Commit

Permalink
get_tensors_shapes -> get_tensors_partial_shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
praasz committed Oct 9, 2023
1 parent 333ed6e commit d58050b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/include/openvino/op/util/evaluate_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ namespace op {
namespace util {

/**
* @brief Get the tensors shapes as ov::PartialSHape
* @brief Get the tensors shapes as ov::PartialShape.
*
* @param tensors Input tensors vector to get its shapes.
* @return Vector of partial shapes sam size as input tensor vector.
*/
std::vector<PartialShape> get_tensors_shapes(const TensorVector& tensors);
std::vector<PartialShape> get_tensors_partial_shapes(const TensorVector& tensors);
} // namespace util
} // namespace op
} // namespace ov
2 changes: 1 addition & 1 deletion src/core/src/op/eye.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ bool Eye::evaluate(TensorVector& outputs, const TensorVector& inputs) const {
OPENVINO_ASSERT(outputs.size() == 1);

// Inputs size and shapes checked by shape_infer
const auto input_shapes = util::get_tensors_shapes(inputs);
const auto input_shapes = util::get_tensors_partial_shapes(inputs);
const auto output_shape = shape_infer(this, input_shapes, make_tensor_accessor(inputs)).front().to_shape();

int64_t diagonal_index;
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/op/util/evaluate_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ AxisSet get_normalized_axes_from_tensor(const HostTensorPtr tensor,
namespace ov {
namespace op {
namespace util {
std::vector<PartialShape> get_tensors_shapes(const TensorVector& tensors) {
std::vector<PartialShape> get_tensors_partial_shapes(const TensorVector& tensors) {
std::vector<PartialShape> shapes;
shapes.reserve(tensors.size());
for (const auto& t : tensors) {
Expand Down

0 comments on commit d58050b

Please sign in to comment.