Loading TOC...
Matches for cat:function (cat:function (cat:function/javascript (cat:function))) have been highlighted. remove

MarkLogic Server 11.0 Product Documentation
ort.valueIsTensor

ort.valueIsTensor(
   value as ort.value
) as Boolean

Summary

Returns if the ort.value has value type "TENSOR".

Parameters
value An ort.value.

Example

  const v = ort.value([1,2,3,4,5,6], [2,3], "float")
  ort.valueIsTensor(v)
  =>
  true

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.