#pragma once #include namespace torch::jit::mobile { /** * Recursively scan the IValue object, traversing lists, tuples, dicts, and stop * and call the user provided callback function 'func' when a Tensor is found. */ void for_each_tensor_in_ivalue( const ::c10::IValue& iv, std::function const& func); } // namespace torch::jit::mobile