1 #pragma once 2 3 #include <torch/csrc/Export.h> 4 #include <torch/csrc/jit/ir/ir.h> 5 #include <memory> 6 7 namespace torch::jit { 8 struct Graph; 9 10 // Propagate tensor properties (e.g., dtype, device, is_contiguous, layout) 11 // propagation on all tensor objects. Currently, we only support dtype 12 // propagation 13 TORCH_API bool DtypePropagation(std::shared_ptr<Graph>& graph); 14 15 } // namespace torch::jit 16