Skip to content

Commit

Permalink
Update runtime code to to use ::ttnn::SmallVector<int64_t> for ::ttnn…
Browse files Browse the repository at this point in the history
…::permute()

 - Fixes compile error "no known conversion from 'std::vector<long>' to 'const SmallVector<int64_t>'"
  • Loading branch information
kmabeeTT committed Jan 4, 2025
1 parent edc6bd2 commit 67aedca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/lib/ttnn/operations/data_movement/permute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void run(const ::tt::target::ttnn::PermuteOp *op, ProgramContext &context) {
const ::ttnn::Tensor &in = tensorPool.at(op->in()->global_id());
DEBUG_ASSERT(in.is_allocated());

std::vector<int64_t> permutation(op->permutation()->begin(),
op->permutation()->end());
::ttnn::SmallVector<int64_t> permutation(op->permutation()->begin(),
op->permutation()->end());
std::optional<tt::tt_metal::MemoryConfig> memoryConfig =
op->memory_config() ? std::make_optional(utils::createMemoryConfig(
op->memory_config(), op->out()))
Expand Down

0 comments on commit 67aedca

Please sign in to comment.