Tannic
A C++ Tensor Library
Loading...
Searching...
No Matches
graph.hpp
Go to the documentation of this file.
1// Copyright 2025 Eric Hermosis
2//
3// This file is part of the Tannic Tensor Library.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17
18#ifndef GRAPH_HPP
19#define GRAPH_HPP
20
21#include <cstdint>
22
23namespace tannic {
24
25class Tensor;
26
27// WARNING: THIS FILE IS UNDER ACTIVE DEVELOPMENT!.
28
29struct Node {
30 uintptr_t id = 0;
31 Node(Tensor const&);
33 Node(const Node&) = delete;
34 Node& operator=(const Node&) = delete;
35
36 Node(Node&& other) noexcept;
37 Node& operator=(Node&& other) noexcept;
38};
39
40} // namespace TANNIC
41
42#endif // GRAPH_HPP
A multidimensional, strided tensor data structure.
Definition: tensor.hpp:99
Definition: buffer.hpp:41
Definition: graph.hpp:29
Node & operator=(Node &&other) noexcept
Node(const Node &)=delete
Node(Node &&other) noexcept
Node(Tensor const &)
Node & operator=(const Node &)=delete