mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Follows #132604 Pull Request resolved: https://github.com/pytorch/pytorch/pull/132753 Approved by: https://github.com/Skylion007
16 lines
333 B
C++
16 lines
333 B
C++
#pragma once
|
|
|
|
#include <torch/csrc/jit/api/module.h>
|
|
#include <torch/csrc/jit/ir/ir.h>
|
|
|
|
namespace torch::jit {
|
|
|
|
using PrePackingOpsFilterFn = std::function<bool(Node*)>;
|
|
|
|
void PrePackingOpsFolder(
|
|
script::Module& m,
|
|
const PrePackingOpsFilterFn& is_foldable_op,
|
|
const std::string& attr_prefix);
|
|
|
|
} // namespace torch::jit
|