Lines Matching refs:CppFunction
107 class TORCH_API CppFunction final {
114 explicit CppFunction(
128 explicit CppFunction(
143 explicit CppFunction(
159 explicit CppFunction(
175 explicit CppFunction(
192 explicit CppFunction(
207 ~CppFunction();
209 CppFunction(CppFunction&&) noexcept = default;
211 CppFunction& operator=(CppFunction&&) = default;
215 static CppFunction makeFromBoxedKernel(c10::BoxedKernel kernel) { in makeFromBoxedKernel()
216 return CppFunction( in makeFromBoxedKernel()
226 static CppFunction makeFallthrough() { in makeFallthrough()
234 static CppFunction makeNamedNotSupported() { in makeNamedNotSupported()
245 static CppFunction makeFromBoxedFunction() { in makeFromBoxedFunction()
253 static CppFunction makeFromBoxedFunction() { in makeFromBoxedFunction()
266 static CppFunction makeFromBoxedFunctor( in makeFromBoxedFunctor()
279 static CppFunction makeFromUnboxedFunction(FuncPtr* f) { in makeFromUnboxedFunction()
280 return CppFunction(f); in makeFromUnboxedFunction()
292 static CppFunction makeFromUnboxedFunction(FuncPtr f) { in makeFromUnboxedFunction()
293 return CppFunction(f); in makeFromUnboxedFunction()
296 CppFunction&& debug(std::string d) && { in debug()
310 friend CppFunction dispatch(c10::DispatchKey, Func&&);
317 CppFunction(
337 inline CppFunction dispatch(c10::DispatchKey k, Func&& raw_f) { in dispatch()
338 CppFunction f(std::forward<Func>(raw_f)); in dispatch()
351 inline CppFunction dispatch(c10::DeviceType type, Func&& raw_f) { in dispatch()
655 CppFunction f(std::forward<Func>(raw_f));
689 CppFunction f(std::forward<Func>(raw_f), NoInferSchemaTag());
691 CppFunction f(std::forward<Func>(raw_f));
706 Library& impl(Name name, CppFunction&& raw_f) & { in impl()
709 CppFunction f(std::forward<CppFunction>(raw_f)); in impl()
831 CppFunction f((std::forward<Func>(raw_f))); in fallback()
872 CppFunction&& f,
876 CppFunction&& f,
878 Library& _fallback(CppFunction&& f) &;