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

Class EdgeToConvert

tensorflow/core/graph/quantize_training.cc:48–65  ·  view source on GitHub ↗

Contains necessary parameters to convert an edge.

Source from the content-addressed store, hash-verified

46
47// Contains necessary parameters to convert an edge.
48struct EdgeToConvert {
49 // edge is not owned here.
50 const Edge* edge;
51 int32 num_bits;
52 bool signed_input;
53 bool range_given;
54 float input_min;
55 float input_max;
56
57 EdgeToConvert(const Edge* e, int32 bits, bool sign, bool range, float min,
58 float max)
59 : edge(e),
60 num_bits(bits),
61 signed_input(sign),
62 range_given(range),
63 input_min(min),
64 input_max(max) {}
65};
66
67// Decide if a node is in backward pass by checking if its name is led by
68// "gradients".

Callers 1

DoQuantizeTrainingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected