-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef XLA_TORCH_XLA_CSRC_OPS_NATIVE_DROPOUT_H_ | ||
#define XLA_TORCH_XLA_CSRC_OPS_NATIVE_DROPOUT_H_ | ||
|
||
#include "torch_xla/csrc/ir.h" | ||
|
||
namespace torch_xla { | ||
|
||
// This node has no metadata, so it could have been implemented as generic-op in | ||
// ops.cpp, but since this might require special handling from upper IR layers, | ||
// it gets its own IR node class. | ||
class Scan : public XlaNode { | ||
public: | ||
Map(const Callable f, const at::Tensor& init, const at::Tensor& xs); | ||
|
||
torch::lazy::NodePtr Clone(torch::lazy::OpList operands) const override; | ||
|
||
XlaOpVector Lower(LoweringContext* loctx) const override; | ||
}; | ||
|
||
} // namespace torch_xla | ||
|
||
#endif // XLA_TORCH_XLA_CSRC_OPS_NATIVE_DROPOUT_H_ |