Ejemplo n.º 1
0
        public void InitializeValueGetters(IRow idvRow)
        {
            var type = IdvColumnType.ItemType.RawType;

            _tensorValueGetter = Utils.MarshalInvoke(
                CreateTensorValueGetter <int>, type, idvRow, _idvIsVectorColumn, IdvColumnIndex, _onnxTensorShape);
        }
Ejemplo n.º 2
0
            private ITensorValueGetter[] GetTensorValueGetters(IRow input)
            {
                var srcTensorGetters = new ITensorValueGetter[_inputColIndices.Length];

                for (int j = 0; j < _inputColIndices.Length; j++)
                {
                    int colIndex = _inputColIndices[j];
                    srcTensorGetters[j] = CreateTensorValueGetter(input, _tfInputTypes[j], _isVectorInput[j], colIndex, _tfInputShapes[j]);
                }
                return(srcTensorGetters);
            }
            private ITensorValueGetter[] GetTensorValueGetters(IRow input)
            {
                _host.Assert(input.Schema == _schema);
                var srcTensorGetters = new ITensorValueGetter[_inputColIndices.Length];

                for (int i = 0; i < _inputColIndices.Length; i++)
                {
                    int colIndex = _inputColIndices[i];
                    srcTensorGetters[i] = CreateTensorValueGetter(input, _parent.TFInputTypes[i], _isInputVector[i], colIndex, _parent.TFInputShapes[i]);
                }
                return(srcTensorGetters);
            }
Ejemplo n.º 4
0
            private static ITensorValueGetter[] GetTensorValueGetters(IRow input,
                                                                      int[] inputColIndices,
                                                                      bool[] isInputVector,
                                                                      DataType[] onnxInputTypes,
                                                                      OnnxShape[] onnxInputShapes)
            {
                var srcTensorGetters = new ITensorValueGetter[inputColIndices.Length];

                for (int i = 0; i < inputColIndices.Length; i++)
                {
                    int colIndex = inputColIndices[i];
                    srcTensorGetters[i] = CreateTensorValueGetter(input, onnxInputTypes[i], isInputVector[i], colIndex, onnxInputShapes[i]);
                }
                return(srcTensorGetters);
            }