-
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.
- Loading branch information
1 parent
bd0cd48
commit 4d6e8c0
Showing
4 changed files
with
200 additions
and
137 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
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,38 @@ | ||
// SPDX-FileCopyrightText: © 2023 Tenstorrent Inc. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/stl.h> | ||
#include "ttnn/operations/others.hpp" | ||
|
||
namespace py = pybind11; | ||
|
||
namespace ttnn { | ||
namespace operations { | ||
namespace others { | ||
|
||
void py_module(py::module& module) { | ||
|
||
module.def("upsample", &upsample, | ||
py::arg("input_tensor"), | ||
py::arg("scale_factor"), | ||
py::arg("memory_config") = std::nullopt, | ||
R"doc( | ||
Upsamples a given multi-channel 2D (spatial) data. | ||
The input data is assumed to be of the form [N, H, W, C]. | ||
The algorithms available for upsampling are 'nearest' for now. | ||
Args: | ||
* :attr:`input_tensor`: the input tensor | ||
* :attr:`scale_factor`: multiplier for spatial size. Has to match input size if it is a tuple. | ||
)doc"); | ||
|
||
} | ||
|
||
} // namespace normalization | ||
} // namespace operations | ||
} // namespace ttnn |
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
Oops, something went wrong.