1 write to _parent
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
546
_parent
= parent;
33 references to _parent
Microsoft.ML.TensorFlow (33)
TensorflowTransform.cs (33)
547
_inputColIndices = new int[
_parent
.Inputs.Length];
548
_isInputVector = new bool[
_parent
.Inputs.Length];
549
_fullySpecifiedShapes = new TensorShape[
_parent
.Inputs.Length];
550
for (int i = 0; i <
_parent
.Inputs.Length; i++)
552
if (!inputSchema.TryGetColumnIndex(
_parent
.Inputs[i], out _inputColIndices[i]))
553
throw Host.ExceptSchemaMismatch(nameof(InputSchema), "source",
_parent
.Inputs[i]);
560
var expectedType = Tf2MlNetType(
_parent
.TFInputTypes[i]);
562
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input",
_parent
.Inputs[i], expectedType.ToString(), type.ToString());
563
var originalShape =
_parent
.TFInputShapes[i];
597
throw Contracts.Except($"Input shape mismatch: Input '{
_parent
.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
616
throw Contracts.Except($"Input shape mismatch: Input '{
_parent
.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
625
if (
_parent
._addBatchDimensionInput)
645
var activeOutputColNames =
_parent
.Outputs.Where((x, i) => activeOutput(i)).ToArray();
647
var type = Tf2MlNetType(
_parent
.TFOutputTypes[iinfo]).RawType;
648
Host.Assert(type ==
_parent
.OutputTypes[iinfo].GetItemType().RawType);
649
var srcTensorGetters = GetTensorValueGetters(input, _inputColIndices, _isInputVector,
_parent
.TFInputTypes, _fullySpecifiedShapes);
674
private protected override void SaveModel(ModelSaveContext ctx) =>
_parent
.SaveModel(ctx);
704
if (
_parent
.OutputTypes[iinfo].IsStandardScalar())
709
var tensor = outputCache.Outputs[
_parent
.Outputs[iinfo]];
716
if (
_parent
.TFOutputTypes[iinfo] == TF_DataType.TF_STRING)
722
var tensor = outputCache.Outputs[
_parent
.Outputs[iinfo]];
737
var tensor = outputCache.Outputs[
_parent
.Outputs[iinfo]];
754
if (
_parent
.Graph.graph_key != tf.get_default_graph().graph_key)
755
_parent
.Session.graph.as_default();
756
Runner runner = new Runner(
_parent
.Session,
_parent
.Inputs.ToArray(),
_parent
.Outputs.ToArray());
759
for (int i = 0; i <
_parent
.Inputs.Length; i++)
781
return col => Enumerable.Range(0,
_parent
.Outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col);
786
var info = new DataViewSchema.DetachedColumn[
_parent
.Outputs.Length];
787
for (int i = 0; i <
_parent
.Outputs.Length; i++)
788
info[i] = new DataViewSchema.DetachedColumn(
_parent
.Outputs[i],
_parent
.OutputTypes[i], null);