For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
ScatterSetConstant
struct ScatterSetConstant
Registers the mo.scatter_set_constant graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[data_type: DType, index_type: DType, //, target: StringSlice[ImmStaticOrigin]](data: ManagedTensorSlice[IOSpec[_, _].MutableInput, static_spec=data.static_spec], indices: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=indices.static_spec], fill_value: Scalar[data_type], ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!