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

Function Scalar

tensorflow/core/kernels/training_ops_test.cc:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static Node* Scalar(Graph* g, float val) {
84 Tensor data(DT_FLOAT, TensorShape({}));
85 data.flat<float>()(0) = val;
86 return test::graph::Constant(g, data);
87}
88
89static void SGD(int32 n, Graph** init_g, Graph** train_g) {
90 {

Callers 15

scalarMethod · 0.85
TESTFunction · 0.85
GPU_1D_KERNEL_LOOPFunction · 0.85
coeffMethod · 0.85
packetMethod · 0.85
operator()Method · 0.85
initializeMethod · 0.85
initializeMethod · 0.85
ComputeMatrixMethod · 0.85
loadCoeffMethod · 0.85
loadCoeffStandardMethod · 0.85

Calls 2

ConstantFunction · 0.70
TensorShapeClass · 0.50

Tested by

no test coverage detected