tf.raw_ops.XlaSparseDenseMatmulPositionalWeightedWithCsrInput
Stay organized with collections
Save and categorize content based on your preferences.
Note: This API is new and only available via pip install tf-nightly.
tf . raw_ops . XlaSparseDenseMatmulPositionalWeightedWithCsrInput (
row_pointers ,
sorted_sample_ids ,
sorted_token_ids ,
sorted_pos_ids ,
embedding_table ,
weights ,
input_size ,
num_weights ,
num_logical_devices ,
quantization_config_low ,
quantization_config_high ,
quantization_config_num_buckets ,
table_name ,
num_sparsecores_per_device =- 1 ,
name = None
)
Args
row_pointers
A Tensor of type int32.
sorted_sample_ids
A Tensor of type int32.
sorted_token_ids
A Tensor of type int32.
sorted_pos_ids
A Tensor of type int32.
embedding_table
A Tensor of type float32.
weights
A Tensor of type float32.
input_size
An int that is >= 0.
num_weights
An int that is >= 0.
num_logical_devices
An int that is >= 0.
quantization_config_low
A float.
quantization_config_high
A float.
quantization_config_num_buckets
An int that is >= 0.
table_name
A string.
num_sparsecores_per_device
An optional int. Defaults to -1.
name
A name for the operation (optional).
Returns
A tuple of Tensor objects (activations, preserved_received_unique_vectors).
activations
A Tensor of type float32.
preserved_received_unique_vectors
A Tensor of type float32.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license .
Last updated 2026-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-31 UTC."],[],[]]