mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: properly create new vectors from strings
This commit is contained in:
parent
71e6c8bd7b
commit
83d5bdd55e
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ defmodule Ash.Vector do
|
|||
Creates a new vector from a list or tensor
|
||||
"""
|
||||
def new(binary) when is_binary(binary) do
|
||||
from_binary(binary)
|
||||
new(:erlang.binary_to_list(binary))
|
||||
end
|
||||
|
||||
def new(%__MODULE__{} = vector), do: {:ok, vector}
|
||||
|
|
Loading…
Reference in a new issue