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

Method Init

tensorflow/core/grappler/optimizers/data/rebatch.cc:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace grappler {
35
36Status RebatchOptimizer::Init(
37 const tensorflow::RewriterConfig_CustomGraphOptimizer* config) {
38 if (!config)
39 return errors::InvalidArgument(
40 "Cannot initialize RebatchOptimizer without config.");
41
42 num_replicas_ = config->parameter_map().at("num_replicas").i();
43 use_fallback_ = config->parameter_map().at("use_fallback").b();
44 return Status::OK();
45}
46
47namespace {
48

Callers 8

LoadFunctionsMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45

Calls 4

InvalidArgumentFunction · 0.85
iMethod · 0.45
atMethod · 0.45
bMethod · 0.45

Tested by 5

TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36