| 516 | } |
| 517 | |
| 518 | tensorflow::Status CheckInputsCount( |
| 519 | const NodeDef& node, const TensorFlowImportFlags& tf_import_flags, |
| 520 | int expected_input_count) { |
| 521 | if (GetInputsCount(node, tf_import_flags) != expected_input_count) { |
| 522 | return tensorflow::errors::FailedPrecondition( |
| 523 | node.op(), " node expects ", expected_input_count, |
| 524 | " input(s) other than control dependencies: ", node.DebugString()); |
| 525 | } |
| 526 | return tensorflow::Status::OK(); |
| 527 | } |
| 528 | |
| 529 | template <ArrayDataType T> |
| 530 | string CreateConstArray(Model* model, string const& name, |
no test coverage detected