/// <summary> /// Deserializes the specified allocator. /// </summary> /// <param name="allocator">The allocator.</param> /// <param name="stream">The stream.</param> /// <returns>Tensor.</returns> public static NDArray Deserialize(IAllocator allocator, System.IO.Stream stream) { return(TensorSerialization.Deserialize(allocator, stream)); }
/// <summary> /// Serializes the specified stream. /// </summary> /// <param name="stream">The stream.</param> public void Serialize(System.IO.Stream stream) { TensorSerialization.Serialize(this, stream); }