| 160 | |
| 161 | template <class K, class V> |
| 162 | Status GetInputEmbeddingVar(OpKernelContext* ctx, int input, |
| 163 | EmbeddingVar<K, V>** var) { |
| 164 | if (LookupResource(ctx, HandleFromInput(ctx, input), var).ok()) { |
| 165 | return Status::OK(); |
| 166 | } else { |
| 167 | return errors::Internal("Invalid versioned variable reference."); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | Status MoveMatchingFiles( |
| 172 | Env* env, |
no test coverage detected