| 185 | espdl.Tensor = class Tensor { |
| 186 | |
| 187 | static decode(reader, position) { |
| 188 | const $ = new espdl.Tensor(); |
| 189 | $.dims = reader.int64s_(position, 4); |
| 190 | $.data_type = reader.int32_(position, 6, 0); |
| 191 | $.float_data = reader.array(position, 8, Float32Array); |
| 192 | $.int32_data = reader.array(position, 10, Int32Array); |
| 193 | $.string_data = reader.strings_(position, 12); |
| 194 | $.int64_data = reader.int64s_(position, 14); |
| 195 | $.name = reader.string_(position, 16, null); |
| 196 | $.doc_string = reader.string_(position, 18, null); |
| 197 | $.raw_data = reader.structs(position, 20, espdl.AlignedBytes, 16); |
| 198 | $.external_data = reader.tables(position, 22, espdl.StringStringEntry); |
| 199 | $.data_location = reader.int32_(position, 24, 0); |
| 200 | $.double_data = reader.array(position, 26, Float64Array); |
| 201 | $.uint64_data = reader.uint64s_(position, 28); |
| 202 | $.exponents = reader.int64s_(position, 30); |
| 203 | return $; |
| 204 | } |
| 205 | }; |
| 206 | |
| 207 | espdl.TensorShape = class TensorShape { |