TVM  0.9.4
LinearFunction.h
Go to the documentation of this file.
1 
3 #pragma once
4 
6 
7 #include <Eigen/Core>
8 
9 #include <initializer_list>
10 #include <memory>
11 
12 namespace tvm
13 {
14 
15 namespace function
16 {
17 
18 namespace abstract
19 {
20 
62 {
63 public:
65  SET_UPDATES(LinearFunction, Value, Velocity)
66 
67  void updateValue();
68  void updateVelocity();
69  void resizeCache() override;
70  const tvm::internal::VectorWithProperties & b() const { return b_; }
71 
72 protected:
74  virtual void updateValue_();
75  virtual void updateVelocity_();
77 
79 };
80 
81 } // namespace abstract
82 
83 } // namespace function
84 
85 } // namespace tvm
#define SET_UPDATES(SelfT,...)
Definition: AbstractNode.h:138
#define SET_OUTPUTS(SelfT,...)
Definition: Outputs.h:113
#define TVM_DLLAPI
Definition: api.h:35
Definition: Function.h:45
Definition: LinearFunction.h:62
tvm::internal::VectorWithProperties b_
Definition: LinearFunction.h:78
Definition: MatrixWithProperties.h:54
ObjectWithProperties< Eigen::VectorXd > VectorWithProperties
Definition: MatrixWithProperties.h:163
Definition: Clock.h:12