Skip to content

Commit

Permalink
#0: move Layout enum to device accessible location (#13118)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanNijjar authored Sep 25, 2024
1 parent 0502e68 commit fd488f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions ttnn/cpp/ttnn/tensor/enum_types.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-FileCopyrightText: © 2024 Tenstorrent AI ULC
//
// SPDX-License-Identifier: Apache-2.0

#pragma once

namespace tt::tt_metal {

enum class Layout { ROW_MAJOR = 0, TILE = 1, INVALID = 2 };

} // namespace tt::tt_metal
3 changes: 1 addition & 2 deletions ttnn/cpp/ttnn/tensor/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
#include "tt_metal/tt_stl/concepts.hpp"
#include "tt_metal/tt_stl/reflection.hpp"
#include "ttnn/tensor/host_buffer/types.hpp"
#include "ttnn/cpp/ttnn/tensor/enum_types.hpp"

namespace tt {

namespace tt_metal {

static constexpr std::uint8_t VERSION_ID = 3;

enum class Layout { ROW_MAJOR = 0, TILE = 1, INVALID = 2 };

enum class DataType {
BFLOAT16 = 0,
FLOAT32 = 1,
Expand Down

0 comments on commit fd488f5

Please sign in to comment.