MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetElementZero

Function SetElementZero

tensorflow/core/util/batch_util.cc:294–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294Status SetElementZero(Tensor* element, const Tensor& padding) {
295#define HANDLE_TYPE(T) \
296 if (element->dtype() == DataTypeToEnum<T>::value) { \
297 element->flat<T>().setConstant(padding.scalar<T>()()); \
298 return Status::OK(); \
299 }
300 TF_CALL_DATASET_TYPES(HANDLE_TYPE);
301#undef HANDLE_TYPE
302 return errors::Unimplemented("SetElementZero Unhandled data type: ",
303 element->dtype());
304}
305
306} // namespace batch_util
307} // namespace tensorflow

Callers 2

TryDequeueManyMethod · 0.85
GetNextInternalMethod · 0.85

Calls 2

UnimplementedFunction · 0.85
dtypeMethod · 0.45

Tested by

no test coverage detected