Home
last modified time | relevance | path

Searched refs:kDataTypeRefOffset (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dtypes_test.cc31 TEST(TypesTest, kDataTypeRefOffset) { in TEST() argument
33 EXPECT_EQ(DT_FLOAT + kDataTypeRefOffset, DT_FLOAT_REF); in TEST()
41 int e_ref = e + kDataTypeRefOffset; in TEST()
78 for (; e < DataType_MIN + kDataTypeRefOffset; ++e) { in TEST()
Dtypes.cc109 DataType non_ref = static_cast<DataType>(dtype - kDataTypeRefOffset); in DataTypeString()
120 *dt = static_cast<DataType>(non_ref + kDataTypeRefOffset); in DataTypeFromString()
Dtypes.h236 enum { kDataTypeRefOffset = 100 };
238 return dtype > static_cast<DataType>(kDataTypeRefOffset);
242 return static_cast<DataType>(dtype + kDataTypeRefOffset);
246 return static_cast<DataType>(dtype - kDataTypeRefOffset);