41 lines
855 B
C++
41 lines
855 B
C++
|
// Copyright 2016, Tobias Hermann.
|
||
|
// https://github.com/Dobiasd/frugally-deep
|
||
|
// Distributed under the MIT License.
|
||
|
// (See accompanying LICENSE file or at
|
||
|
// https://opensource.org/licenses/MIT)
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "fdeep/common.hpp"
|
||
|
|
||
|
#include <cstddef>
|
||
|
#include <cstdlib>
|
||
|
#include <string>
|
||
|
|
||
|
namespace fdeep { namespace internal
|
||
|
{
|
||
|
|
||
|
class shape_hw_variable
|
||
|
{
|
||
|
public:
|
||
|
explicit shape_hw_variable(
|
||
|
fplus::maybe<std::size_t> height,
|
||
|
fplus::maybe<std::size_t> width) :
|
||
|
height_(height),
|
||
|
width_(width)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fplus::maybe<std::size_t> height_;
|
||
|
fplus::maybe<std::size_t> width_;
|
||
|
};
|
||
|
|
||
|
inline bool operator == (const shape_hw_variable& lhs, const shape_hw_variable& rhs)
|
||
|
{
|
||
|
return
|
||
|
lhs.height_ == rhs.height_ &&
|
||
|
lhs.width_ == rhs.width_;
|
||
|
}
|
||
|
|
||
|
} } // namespace fdeep, namespace internal
|