This document is relevant for: Inf2
, Trn1
, Trn1n
nki.language.shared_constant
-
nki.language.shared_constant(constant, dtype=None, **kwargs)[source]
Create a new tensor filled with the data specified by data array.
- Parameters:
constant – the constant data to be filled into a tensor
- Returns:
a tensor which contains the constant data
This document is relevant for: Inf2
, Trn1
, Trn1n