Skip to content

Commit

Permalink
[Tmpl test] Convert: enable whole Tensor comparison (openvinotoolkit#…
Browse files Browse the repository at this point in the history
…23861)

### Details:
 - Used actual shapes for Tensors creation.
 - Applied to `Convert` and `ConvertLike`.

### Tickets:
 - CVS-137152

---------

Co-authored-by: Michal Lukaszewski <[email protected]>
  • Loading branch information
t-jankowski and mlukasze authored Apr 10, 2024
1 parent d66b366 commit 1f1fc92
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 634 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ struct ConvertParams {
const ov::element::Type& iType,
const ov::element::Type& oType,
const std::vector<IT>& iValues,
const std::vector<OT>& oValues,
size_t iSize = 0,
size_t oSize = 0)
const std::vector<OT>& oValues)
: conversionType(convType),
pshape(shape),
inType(iType),
outType(oType),
inputData(CreateTensor(iType, iValues, iSize)),
refData(CreateTensor(oType, oValues, oSize)) {}
inputData(CreateTensor(shape.get_shape(), iType, iValues)),
refData(CreateTensor(shape.get_shape(), oType, oValues)) {}
ConversionTypes conversionType;
ov::PartialShape pshape;
ov::element::Type inType;
Expand Down
Loading

0 comments on commit 1f1fc92

Please sign in to comment.