-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Data movement Ops Program factory into CPP and HPP (#11067)
#0: split data movement ops into hpp and cpp
- Loading branch information
Showing
13 changed files
with
3,494 additions
and
3,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
862 changes: 6 additions & 856 deletions
862
ttnn/cpp/ttnn/operations/data_movement/downsample/device/downsample_op.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
877 changes: 877 additions & 0 deletions
877
ttnn/cpp/ttnn/operations/data_movement/downsample/device/downsample_program_factory.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
ttnn/cpp/ttnn/operations/data_movement/downsample/device/downsample_program_factory.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-FileCopyrightText: © 2023 Tenstorrent Inc. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
#pragma once | ||
|
||
|
||
#include "tt_metal/host_api.hpp" | ||
|
||
using namespace tt::constants; | ||
|
||
namespace ttnn::operations::data_movement::detail { | ||
|
||
std::pair<uint32_t, uint32_t> get_num_cores_height_width_sliced( | ||
CoreRangeSet all_cores, TensorMemoryLayout memory_layout, ShardOrientation shard_orientation); | ||
operation::ProgramWithCallbacks downsample_single_core( | ||
const Tensor& a, std::array<uint32_t, 5> downsample_params, Tensor& output); | ||
|
||
} // namespace ttnn::operations::data_movement::detail |
1,127 changes: 1,127 additions & 0 deletions
1,127
ttnn/cpp/ttnn/operations/data_movement/pad/device/pad_program_factory.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
1,095 changes: 6 additions & 1,089 deletions
1,095
ttnn/cpp/ttnn/operations/data_movement/pad/device/pad_program_factory.hpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
545 changes: 545 additions & 0 deletions
545
ttnn/cpp/ttnn/operations/data_movement/slice/device/slice_program_factory.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
541 changes: 3 additions & 538 deletions
541
ttnn/cpp/ttnn/operations/data_movement/slice/device/slice_program_factory.hpp
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.