def test_tensor_str(): tensor_object_2 = Tensor(shape=(5000,), dtype="<U20") assert tensor_object_2.__str__() == "Tensor(shape=(5000,), dtype='<U20')"
def test_tensor_str(): tensor_object = Tensor() tensor_object_2 = Tensor(shape=(5000,), dtype="<U20") assert tensor_object.__str__() == "Tensor(shape=(None,), dtype='float64')" assert tensor_object_2.__str__() == "Tensor(shape=(5000,), dtype='<U20')"