38 references to TensorFlags
System.Numerics.Tensors (38)
System\Numerics\Tensors\netcore\TensorShape.cs (38)
66private readonly TensorFlags _flags; // 4 bytes
68private TensorShape(nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags)
127flags |= TensorFlags.IsBroadcast;
135flags |= (TensorFlags.IsDense | TensorFlags.HasAnyDenseDimensions);
233flags |= TensorFlags.IsBroadcast;
248flags |= (TensorFlags.IsDense | TensorFlags.HasAnyDenseDimensions);
252flags |= TensorFlags.HasAnyDenseDimensions;
279private TensorShape(nint flattenedLength, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags)
316public bool HasAnyDenseDimensions => (_flags & TensorFlags.HasAnyDenseDimensions) != 0;
318public bool IsBroadcast => (_flags & TensorFlags.IsBroadcast) != 0;
320public bool IsDense => (_flags & TensorFlags.IsDense) != 0;
324public bool IsPinned => (_flags & TensorFlags.IsPinned) != 0;
728TensorFlags.None
823TensorShape result = new TensorShape(linearLength - computedOffset, lengths, strides, TensorFlags.None);
847TensorFlags flags = pinned ? TensorFlags.IsPinned : TensorFlags.None;
861TensorFlags.IsDense | TensorFlags.HasAnyDenseDimensions
871return new TensorShape(array.Length, lengths, strides, TensorFlags.None);
893return new TensorShape(linearLength, lengths, strides, TensorFlags.None);
911TensorFlags flags = pinned ? TensorFlags.IsPinned : TensorFlags.None;
912flags |= TensorFlags.IsDense | TensorFlags.HasAnyDenseDimensions;
933TensorFlags flags = pinned ? TensorFlags.IsPinned : TensorFlags.None;
1135TensorFlags flags = IsPinned ? TensorFlags.IsPinned : TensorFlags.None;
1165flags |= TensorFlags.IsBroadcast;
1191flags |= (TensorFlags.IsDense | TensorFlags.HasAnyDenseDimensions);
1195flags |= TensorFlags.HasAnyDenseDimensions;