ones method Null safety

List ones(
  1. List shape,
  2. {String? dtype = 'int'}
)

Implementation

List ones(List shape, {String? dtype = 'int'}) =>
    DartTensor().ones(shape, dtype: dtype);