| 1729 | |
| 1730 | template <typename T> |
| 1731 | T* OpKernelContext::op_device_context() { |
| 1732 | static_assert(std::is_base_of<DeviceContext, T>::value, |
| 1733 | "T is not a subclass of DeviceContext"); |
| 1734 | return static_cast<T*>(op_device_context()); |
| 1735 | } |
| 1736 | |
| 1737 | inline const Tensor& OpInputList::operator[](int i) const { |
| 1738 | DCHECK_GE(i, 0); |
no outgoing calls