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

Function NewSession

tensorflow/core/ops/array_grad_test.cc:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using FDH = FunctionDefHelper;
29
30std::unique_ptr<Session> NewSession() {
31 SessionOptions opts;
32 (*opts.config.mutable_device_count())["CPU"] = 1;
33 return std::unique_ptr<Session>(NewSession(opts));
34}
35
36std::vector<Tensor> PackGrad(const Tensor& x0, const Tensor& x1,
37 const Tensor& dy, int axis) {

Callers 15

PackGradFunction · 0.70
UnpackGradFunction · 0.70
ConcatGradFunction · 0.70
ConcatGradV2Function · 0.70
SplitGradFunction · 0.70
SplitVGradFunction · 0.70
ReshapeGradFunction · 0.70
ExpandDimsGradFunction · 0.70
SqueezeGradFunction · 0.70
TransposeGradFunction · 0.70
ReverseGradFunction · 0.70
ReverseV2GradFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected