18 #ifndef TENSORFLOW_SERVING_CORE_STORAGE_PATH_H_
19 #define TENSORFLOW_SERVING_CORE_STORAGE_PATH_H_
25 #include "tensorflow/core/lib/core/status.h"
26 #include "tensorflow/core/platform/types.h"
27 #include "tensorflow_serving/core/servable_data.h"
28 #include "tensorflow_serving/core/servable_id.h"
30 namespace tensorflow {
34 using StoragePath = string;
36 inline bool operator==(
const ServableData<StoragePath>& a,
37 const ServableData<StoragePath>& b) {
38 if (a.id() != b.id()) {
41 if (a.status().ok() != b.status().ok()) {
44 if (a.status().ok()) {
45 return a.DataOrDie() == b.DataOrDie();
47 return a.status() == b.status();