NewStringShape returns a new n-dimensional tensor of string values using given shape.
(shape *Shape)
| 32 | // NewStringShape returns a new n-dimensional tensor of string values |
| 33 | // using given shape. |
| 34 | func NewStringShape(shape *Shape) *String { |
| 35 | tsr := &String{} |
| 36 | tsr.Shp.CopyShape(shape) |
| 37 | tsr.Values = make([]string, tsr.Len()) |
| 38 | return tsr |
| 39 | } |
| 40 | |
| 41 | // StringToFloat64 converts string value to float64 using strconv, |
| 42 | // returning 0 if any error |