dòng chảy căng:: ôi:: TakeManySparseFromTensorsMap

#include <sparse_ops.h>

Chuyển đổi một biểu diễn thưa thớt thành một tensor dày đặc.

Bản tóm tắt

Xây dựng một mảng dense với hình dạng output_shape sao cho

Nếu thưa thớt_indices là vô hướng

dày đặc [i] = (i == thưa thớt_indices ? thưa thớt_values ​​: default_value)

Nếu thưa_indices là một vectơ thì với mỗi i

dày đặc[sparse_indices[i]] = thưa thớt_values[i]

Nếu thưa_indices là ma trận n x d, thì với mỗi i trong [0, n)

dày đặc [thưa_indices[i] [0], ..., thưa thớt_indices[i] [d-1]] = thưa thớt_values[i]