constant

fun <T : DType> constant(name: String, spec: TensorSpec): GraphValue<T>(source)

Declare a constant placeholder (treated like an input node).


inline fun <T : DType, V> constant(name: String, noinline builder: SymbolicTensorBuilder<T>.() -> TensorSpec): GraphValue<T>(source)

Constant helper that reuses a symbolic, allocation-free data DSL to declare shape/dtype.