             let bvalue = broadcast(newValue, shape: view.shape)
             copy(from: bvalue, to: view)
         }
-    }    
+    }
+    
     open subscript(ranges:TensorIndex...) -> Tensor {
         get {
             return self[ranges]

    }
}

public func ones<S:Storage>(_ shape:Extent) -> Tensor<S> {
    return Tensor<S>(shape, value: S.ElementType(1))
}

            storage = tensor.storage
        }
        
        self.fixedDims = fixedDims ?? tensor.fixedDims
        
        self.dimIndex = dimIndex ?? tensor.dimIndex
