Skip to content

Commit

Permalink
#0: Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sminakov-tt committed Nov 21, 2024
1 parent 3f27e64 commit 2a27db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/numpy/functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static Tensor full(
std::optional<Tensor> optional_output_tensor = std::nullopt) {
constexpr DataType data_type = detail::get_data_type<T>();
TensorSpec tensor_spec(shape.logical_shape(), TensorLayout::fromLegacyPaddedShape(data_type, PageConfig(layout), MemoryConfig{}, shape));
auto owned_buffer = tt::tt_metal::owned_buffer::create<T>(tensor_spec.compute_packed_buffer_size_bytes());
auto owned_buffer = tt::tt_metal::owned_buffer::create<T>(tensor_spec.padded_shape().volume());
std::fill(std::begin(owned_buffer), std::end(owned_buffer), value);

if (!optional_output_tensor.has_value()){
Expand Down

0 comments on commit 2a27db4

Please sign in to comment.