Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Static Public Member Functions | Static Public Attributes
torch::detail::has_forward< T > Struct Template Reference

Detects if a type T has a forward() method. More...

#include <static.h>

Public Types

using yes = int8_t
 
using no = int16_t
 

Static Public Member Functions

template<typename U >
static yes test (decltype(&U::forward))
 
template<typename U >
static no test (...)
 

Static Public Attributes

static constexpr bool value = (sizeof(test<T>(nullptr)) == sizeof(yes))
 

Detailed Description

template<typename T>
struct torch::detail::has_forward< T >

Detects if a type T has a forward() method.

Definition at line 19 of file static.h.


The documentation for this struct was generated from the following file: