Home
last modified time | relevance | path

Searched refs:TF_PREDICT_FALSE (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc233 if (TF_PREDICT_FALSE(obj == nullptr)) { \
240 if (TF_PREDICT_FALSE(seq == nullptr)) return ErrorRectangular; \
241 if (TF_PREDICT_FALSE(s != PySequence_Fast_GET_SIZE(seq.get()))) { \
249 if (TF_PREDICT_FALSE(error != nullptr)) return error; \
253 if (TF_PREDICT_FALSE(seq == nullptr)) return ErrorRectangular; \
255 if (TF_PREDICT_FALSE(s != PySequence_Fast_GET_SIZE(seq.get()))) { \
263 if (TF_PREDICT_FALSE(error != nullptr)) return error; \
302 if (TF_PREDICT_FALSE(overflow)) return ErrorOutOfRange; in ConvertOneInt64()
330 if (TF_PREDICT_FALSE(overflow)) return ErrorOutOfRange; in ConvertOneInt32()
345 if (TF_PREDICT_FALSE(i != *out)) return ErrorFoundInt64; in ConvertOneInt32()
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dlogging.h37 #define TF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) macro
40 #define TF_PREDICT_FALSE(x) (x) macro
95 if (TF_PREDICT_FALSE(VLOG_IS_ON(lvl))) \
/external/tensorflow/tensorflow/core/platform/
Dmacros.h87 #define TF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) macro
90 #define TF_PREDICT_FALSE(x) (x) macro
/external/tensorflow/tensorflow/core/platform/default/
Dlogging.h128 if (TF_PREDICT_FALSE(!(condition))) \
180 operator bool() const { return TF_PREDICT_FALSE(str_ != NULL); }
240 if (TF_PREDICT_FALSE(v2 < 0)) { \
247 if (TF_PREDICT_FALSE(v2 >= std::numeric_limits<int>::max())) { \
/external/tensorflow/tensorflow/python/util/
Dutil.cc223 if (TF_PREDICT_FALSE(collections_mapping_type == nullptr)) { in IsMappingHelper()
260 if (TF_PREDICT_FALSE(indexed_slices_type == nullptr)) { in IsIndexedSlicesHelper()
280 if (TF_PREDICT_FALSE(tensor_type == nullptr)) { in IsTensorHelper()
309 if (TF_PREDICT_FALSE(collections_sequence_type == nullptr)) { in IsSequenceHelper()
500 if (TF_PREDICT_FALSE(sparse_tensor_value_type == nullptr)) { in IsSparseTensorValueType()
514 if (TF_PREDICT_FALSE(composite_tensor_type == nullptr)) { in IsCompositeTensorHelper()
853 if (TF_PREDICT_FALSE(collections_sequence_type == nullptr)) { in IsNamedtuple()
/external/tensorflow/tensorflow/core/lib/db/
Dsqlite.cc179 if (TF_PREDICT_FALSE(bind_error_ != SQLITE_OK)) { in Step()
210 if (TF_PREDICT_FALSE(is_done)) { in StepOnce()
224 if (TF_PREDICT_FALSE(s.ok() && !is_done)) { in StepAndReset()
Dsqlite.h357 if (TF_PREDICT_FALSE(rc != SQLITE_OK)) { in Update()
391 if (TF_PREDICT_FALSE(sqlite3_mutex_try(mutex_) != SQLITE_OK)) { in SqliteLock()
/external/tensorflow/tensorflow/core/lib/core/
Derrors.h73 if (TF_PREDICT_FALSE(!_status.ok())) return _status; \
79 if (TF_PREDICT_FALSE(!_status.ok())) { \
/external/tensorflow/tensorflow/compiler/xla/
Dstatus_macros.cc79 if (TF_PREDICT_FALSE(code == tensorflow::error::OK)) { in MakeError()
153 if (TF_PREDICT_FALSE(str.empty())) { in GetStatus()
Dstatus_macros.h184 while (TF_PREDICT_FALSE(!(condition))) \
209 if (TF_PREDICT_FALSE(!statusor.ok())) { \
Doverflow_util.h35 if (TF_PREDICT_FALSE((ux | uy) >> 32 != 0)) { in MultiplyWithoutOverflow()
/external/tensorflow/tensorflow/core/lib/strings/
Dbase64.cc66 if (TF_PREDICT_FALSE((packed & 0xFF000000) != 0)) { in DecodeThreeChars()
119 if (TF_PREDICT_FALSE(remain == 1)) { in Base64Decode()
/external/tensorflow/tensorflow/core/util/
Doverflow.h35 if (TF_PREDICT_FALSE((ux | uy) >> 32 != 0)) { in MultiplyWithoutOverflow()
/external/tensorflow/tensorflow/stream_executor/platform/
Dport.h51 #define SE_PREDICT_FALSE TF_PREDICT_FALSE
/external/tensorflow/tensorflow/core/kernels/
Dsparse_xent_op.h77 return TF_PREDICT_FALSE(label == depth) in operator()
117 T subtract = TF_PREDICT_FALSE(depth == label) ? T(1.0) : T(0.0); in operator()
Dscatter_nd_op_cpu_impl.h123 if (TF_PREDICT_FALSE(out_of_bounds)) {
207 if (TF_PREDICT_FALSE(out_of_bounds)) {
Dgather_nd_op_cpu_impl.h74 if (TF_PREDICT_FALSE(out_of_bounds)) { in operator()
Ddecode_proto_op.cc135 if (TF_PREDICT_FALSE(dtype != DT_STRING)) { in InitDefaultValue()
139 if (TF_PREDICT_FALSE(value == nullptr)) { in InitDefaultValue()
Dconstant_op.cc86 if (TF_PREDICT_FALSE(ctx->track_allocations())) { in Compute()
/external/tensorflow/tensorflow/contrib/coder/kernels/
Drange_coder_ops_util.cc47 if (TF_PREDICT_FALSE( in MergeAxes()
Drange_coder_ops.cc120 if (TF_PREDICT_FALSE(cdf_shape.dims() != data_shape.dims() + 1)) { in CheckCdfShape()
126 if (TF_PREDICT_FALSE(cdf_shape.dim_size(cdf_shape.dims() - 1) <= 1)) { in CheckCdfShape()
/external/tensorflow/tensorflow/core/framework/
Dresource_op_kernel.h92 if (TF_PREDICT_FALSE(!s.ok())) { in Compute()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/trees/
Ddecision_tree.cc28 if (TF_PREDICT_FALSE(config.nodes_size() <= sub_root_id)) { in Traverse()
/external/tensorflow/tensorflow/contrib/boosted_trees/kernels/
Dtraining_ops.cc66 if (TF_PREDICT_FALSE(split->split_info.split_node().node_case() == in UpdateBestSplit()
97 if (TF_PREDICT_FALSE(split->gain == best_split.gain)) { in UpdateBestSplit()
539 if (TF_PREDICT_FALSE(gain == best_split.gain)) { in FindBestSplitOblivious()
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dtraining_ops.cc218 if (TF_PREDICT_FALSE(best_split_it != best_split_per_node->end() && in FindBestSplitsPerNode()

12