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

Method AddResource

tensorflow/compiler/tf2xla/xla_context.cc:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74XlaResource* XlaContext::AddResource(std::unique_ptr<XlaResource> resource) {
75 resources_.push_back(std::move(resource));
76 return resources_.back().get();
77}
78
79const xla::XlaComputation* XlaContext::GetOrCreateMax(const DataType type) {
80 return LookupOrCreate(type, &max_func_, [type] {

Callers 3

BuildArgumentsMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80

Calls 3

push_backMethod · 0.45
getMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected