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

Method WithValue

tensorflow/core/framework/shape_inference.cc:423–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423Status InferenceContext::WithValue(DimensionHandle dim, int64 value,
424 DimensionHandle* out) {
425 const int64 existing = Value(dim);
426 if (existing == value) {
427 *out = dim;
428 return Status::OK();
429 }
430 if (existing == kUnknownDim) {
431 DimensionHandle d = MakeDim(value);
432 return Merge(dim, d, out);
433 }
434 *out = nullptr;
435 return errors::InvalidArgument("Dimension must be ", value, " but is ",
436 existing);
437}
438
439void InferenceContext::Relax(DimensionHandle d_old, DimensionHandle d_new,
440 DimensionHandle* out) {

Calls 3

InvalidArgumentFunction · 0.85
ValueClass · 0.70
MergeFunction · 0.50

Tested by 2

RFFTShapeFunction · 0.64
TEST_FFunction · 0.64