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

Method printData

serving/processor/tests/flatbuf_test/java/perf.java:140–203  ·  view source on GitHub ↗
(String sigName, String[] inputNames,
                               int[] dataTypes, long[][] shapes,
                               float[][] floatContent, long[][] longContent,
                               double[][] doubleContent, int[][] intContent,
                               String[][] stringContent, String[] fetchNames)

Source from the content-addressed store, hash-verified

138 }
139
140 public static void printData(String sigName, String[] inputNames,
141 int[] dataTypes, long[][] shapes,
142 float[][] floatContent, long[][] longContent,
143 double[][] doubleContent, int[][] intContent,
144 String[][] stringContent, String[] fetchNames) {
145 System.out.println("signatureName: " + sigName);
146
147 for (int i = 0; i < TOTAL_COUNT; ++i) {
148 System.out.println("int_name: " + inputNames[i]);
149 }
150
151 for (int i = 0; i < TOTAL_COUNT; ++i) {
152 System.out.println("data_type: " + dataTypes[i]);
153 }
154
155 for (int i = 0; i < TOTAL_COUNT; ++i) {
156 System.out.println("shape: [" + shapes[i][0] + ", " + shapes[i][1] + "]");
157 }
158
159 System.out.println("\nfloat content:\n");
160 // float
161 for (int i = 0; i < FLOAT_COUNT; ++i) {
162 for (int x = 0; x < DIM_0 * DIM_1; ++x) {
163 System.out.println(floatContent[i][x]);
164 }
165 }
166
167 System.out.println("\nlong content:\n");
168 // long
169 for (int i = 0; i < LONG_COUNT; ++i) {
170 for (int x = 0; x < DIM_0 * DIM_1; ++x) {
171 System.out.println(longContent[i][x]);
172 }
173 }
174
175 System.out.println("\ndouble content:\n");
176 // double
177 for (int i = 0; i < DOUBLE_COUNT; ++i) {
178 for (int x = 0; x < DIM_0 * DIM_1; ++x) {
179 System.out.println(doubleContent[i][x]);
180 }
181 }
182
183 System.out.println("\nint content:\n");
184 // int
185 for (int i = 0; i < INT_COUNT; ++i) {
186 for (int x = 0; x < DIM_0 * DIM_1; ++x) {
187 System.out.println(intContent[i][x]);
188 }
189 }
190
191 System.out.println("\nstring content:\n");
192 // String
193 for (int i = 0; i < STRING_COUNT; ++i) {
194 for (int x = 0; x < DIM_0 * DIM_1; ++x) {
195 System.out.println(stringContent[i][x]);
196 }
197 }

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected