data_len = len(train_data)
nchunks = 10
chunksiz = int(data_len/nchunks)
chunks = list()
for i in range(nchunks):
    start_idx = i*nchunks
    chunks.append(train_data[start_idx:start_idx+chunksiz])

i got the follwoing result..
ValueError: only one element tensors can be converted to Python scalars


can you suggest me how to resolve this issue?
Thank you so much for your respone…