You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Establish the desired output shape, strides, and starting indices
257
-
input_tensor_shape=tuple(input_t.shape)
248
+
# Configure the start, strides and output shape tensors
258
249
start=tuple([0] *shape_rank)
259
250
260
-
# TODO: Revisit stride calculation. stride[dim]=0 implies that dimension is being broadcasted.
251
+
# stride[dim]=0 implies that dimension is being broadcasted.
261
252
# stride should be 1 for all non-broadcasted dims
262
253
stride= []
263
-
fori, oinzip(input_tensor_shape, shape_t):
264
-
# If the shape has ITensor, we treat it as a reshape dim instead of a broadcasted dim
265
-
# shape_t cannot have -1. If the input at this dimension has a shape of -1, set the stride to 1. This indicates that the input is dynamic and does not imply broadcasting at that specific dimension.
0 commit comments