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

Method Swap

tensorflow/core/framework/variant.h:347–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 }
346
347 void Swap(ValueInterface* memory) override {
348 CHECK(TypeId() == memory->TypeId())
349 << TypeId().name() << " vs. " << memory->TypeId().name();
350 std::swap(value, static_cast<Value*>(memory)->value);
351 }
352
353 string TypeName() const override { return TypeNameVariant(value); }
354

Callers 15

FillMethod · 0.45
FillMethod · 0.45
FillMethod · 0.45
FillMethod · 0.45
FillMethod · 0.45
CreateTensorProtoFunction · 0.45
InlineValueClass · 0.45
CreateMethod · 0.45
DefineMethod · 0.45
WithGraphMethod · 0.45
AddSubgraphMethod · 0.45
functions.ccFile · 0.45

Calls 2

nameMethod · 0.65
TypeIdMethod · 0.45

Tested by 10

OptimizeAndPruneMethod · 0.36
OptimizeTwiceMethod · 0.36
OptimizeTwiceAndPruneMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36