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

Function ConstHelper

tensorflow/cc/gradients/array_grad.cc:616–618  ·  view source on GitHub ↗

Create a constant of the provided d_type;

Source from the content-addressed store, hash-verified

614
615// Create a constant of the provided d_type;
616Output ConstHelper(const Scope& scope, int value, DataType d_type) {
617 return Cast(scope, Const(scope, value), d_type);
618}
619
620// Adds the batch offsets to the given indices and returns the results.
621Output GetBatchIndices(const Scope& scope, const Output& params_shape,

Callers 1

GetBatchIndicesFunction · 0.70

Calls 2

CastFunction · 0.50
ConstFunction · 0.50

Tested by

no test coverage detected