Пример #1
0
def zeros_like(tensor):
    return Tensor(np.zeros_like(tensor.data), dtype=int64)
Пример #2
0
def zeros(shape):
    return Tensor(np.zeros(shape), dtype=int64)
Пример #3
0
def ones_like(tensor):
    return Tensor(np.ones_like(tensor.data), dtype=int64)
Пример #4
0
def ones(shape):
    return Tensor(np.ones(shape), dtype=int64)