LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
OperatorTraits.hpp
Go to the documentation of this file.
1 // Copyright (c) 2014-2023, Lawrence Livermore National Security, LLC.
3 // Produced at the Lawrence Livermore National Laboratory.
4 // Written by the LBANN Research Team (B. Van Essen, et al.) listed in
5 // the CONTRIBUTORS file. <lbann-dev@llnl.gov>
6 //
7 // LLNL-CODE-697807.
8 // All rights reserved.
9 //
10 // This file is part of LBANN: Livermore Big Artificial Neural Network
11 // Toolkit. For details, see http://software.llnl.gov/LBANN or
12 // https://github.com/LLNL/LBANN.
13 //
14 // Licensed under the Apache License, Version 2.0 (the "Licensee"); you
15 // may not use this file except in compliance with the License. You may
16 // obtain a copy of the License at:
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
23 // implied. See the License for the specific language governing
24 // permissions and limitations under the license.
26 #ifndef LBANN_SRC_OPERATORS_MATH_UNIT_TEST_OPERATORTRAITS_HPP_INCLUDED
27 #define LBANN_SRC_OPERATORS_MATH_UNIT_TEST_OPERATORTRAITS_HPP_INCLUDED
28 
30 
31 namespace lbann {
32 
34 template <typename T, El::Device D>
36  El::DistMatrix<T, El::Dist::STAR, El::Dist::VC, El::DistWrap::ELEMENT, D>;
37 template <typename T, El::Device D>
39  El::DistMatrix<T, El::Dist::MC, El::Dist::MR, El::DistWrap::ELEMENT, D>;
40 
41 template <typename OpT>
43 
44 template <typename InputT, typename OutputT, El::Device D>
45 struct OperatorTraits<Operator<InputT, OutputT, D>>
46 {
47  using input_value_type = InputT;
48  using output_value_type = OutputT;
58  static constexpr El::Device device = D;
59 };
60 
61 template <typename OpT>
63 
64 template <typename OpT>
66 template <typename OpT>
68 template <typename OpT>
69 
71 template <typename OpT>
72 
75 template <typename OpT>
78 
79 template <typename OpT>
82 template <typename OpT>
85 
86 template <typename OpT>
88 template <typename OpT>
90 
91 template <typename OpT>
94 template <typename OpT>
97 
98 } // namespace lbann
99 
100 #endif // LBANN_SRC_OPERATORS_MATH_UNIT_TEST_OPERATORTRAITS_HPP_INCLUDED
ModelParallelMatrixType< InputT, D > input_model_parallel_mat_type
El::DistMatrix< T, El::Dist::STAR, El::Dist::VC, El::DistWrap::ELEMENT, D > DataParallelMatrixType
The data type for data-parallel computation.
typename OperatorTraits< OpT >::output_data_parallel_mat_type OutputDataParallelMatType
El::DistMatrix< T, El::Dist::MC, El::Dist::MR, El::DistWrap::ELEMENT, D > ModelParallelMatrixType
typename OperatorTraits< OpT >::input_const_tensor_type InputConstTensorType
typename OperatorTraits< OpT >::output_model_parallel_mat_type OutputModelParallelMatType
typename OperatorTraits< OpT >::input_model_parallel_mat_type InputModelParallelMatType
typename OperatorTraits< OpT >::output_value_type OutputValueType
ModelParallelMatrixType< OutputT, D > output_model_parallel_mat_type
typename OperatorTraits< OpT >::input_value_type InputValueType
DataParallelMatrixType< OutputT, D > output_data_parallel_mat_type
constexpr El::Device Device
typename OperatorTraits< OpT >::input_tensor_type InputTensorType
typename OperatorTraits< OpT >::output_tensor_type OutputTensorType
typename OperatorTraits< OpT >::base_type BaseOperatorType
DataParallelMatrixType< InputT, D > input_data_parallel_mat_type
typename OperatorTraits< OpT >::input_data_parallel_mat_type InputDataParallelMatType
Neural network tensor operation.
Definition: operator.hpp:85
typename OperatorTraits< OpT >::output_const_tensor_type OutputConstTensorType