| 488 | |
| 489 | template <typename Factory> |
| 490 | struct Register { |
| 491 | Register(Env* env, const string& scheme) { |
| 492 | // TODO(b/32704451): Don't just ignore the ::tensorflow::Status object! |
| 493 | env->RegisterFileSystem(scheme, []() -> FileSystem* { return new Factory; }) |
| 494 | .IgnoreError(); |
| 495 | } |
| 496 | }; |
| 497 | |
| 498 | } // namespace register_file_system |
| 499 |
no outgoing calls