35 if (model.CheckIfTensorAlreadyExist(
fNX) ==
false){
36 throw std::runtime_error(
"TMVA SOFIE Identity Op Input Tensor is not found in model");
39 if (model.IsInitializedTensor(
fNX)) {
42 if (model.IsConstantTensor(
fNX)) {
43 auto inputData =
static_cast<T*
>(model.GetInitializedTensorData(
fNX).get());
44 model.AddConstantTensor<T>(
fNY, model.GetTensorShape(
fNX), inputData);
53 model.AddInitializedTensor(
fNY, model.GetTensorType(
fNX), model.GetTensorShape(
fNX),
54 model.GetInitializedTensorData(
fNX));
57 model.AddIntermediateTensor(
fNY, model.GetTensorType(
fNX),
fShape);