     
     init(tensor:Tensor, shape:Extent, stride:[Int]) {
         storage = tensor.storage
-        internalShape = shape
         self.stride = stride
         
         // check if we need to increase the size of tensor.view.offset

    fileprivate func convertToString(_ indices:[Int], dim:Int) -> String {
        var idx = indices
        
        if dim == internalShape.count-1 {
            // last dimension, convert values to string
            let values:[String] = (0..<shape[dim]).map({(i:Int) -> String in
                idx[dim] = i

    
    init(storage:StorageType, shape:Extent, view:StorageView<StorageType>?=nil) { //, offset:Int?=nil) {
        self.storage = storage
        self.stride = calculateStride(Extent(storage.calculateOrder(shape.dims)))
        dimIndex = storage.calculateOrder(shape.count)
        self.view = view ?? ViewType(shape: shape, offset: Array<Int>(repeating: 0, count: shape.count))
