| 2161 | } |
| 2162 | |
| 2163 | bool CheckOneInput(PyObject* item) { |
| 2164 | if (EagerTensor_CheckExact(item) || CheckResourceVariable(item) || |
| 2165 | PyArray_Check(item) || IsNumberType(item)) { |
| 2166 | return true; |
| 2167 | } |
| 2168 | |
| 2169 | // Sequences are not properly handled. Sequences with purely python numeric |
| 2170 | // types work, but sequences with mixes of EagerTensors and python numeric |
| 2171 | // types don't work. |
| 2172 | // TODO(nareshmodi): fix |
| 2173 | return false; |
| 2174 | } |
| 2175 | |
| 2176 | bool CheckInputsOk(PyObject* seq, int start_index, |
| 2177 | const tensorflow::OpDef& op_def) { |
no test coverage detected