Show / Hide Table of Contents

Class Shape

Keras Tensor Shape

Inheritance
System.Object
Shape
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Keras
Assembly: Keras.dll
Syntax
public class Shape

Constructors

| Improve this Doc View Source

Shape(Int32[])

Initializes a new instance of the Shape class.

Declaration
public Shape(params int[] shape)
Parameters
Type Name Description
System.Int32[] shape

The shape.

Properties

| Improve this Doc View Source

Dimensions

Gets the dimensions.

Declaration
public int[] Dimensions { get; }
Property Value
Type Description
System.Int32[]

The dimensions.

| Improve this Doc View Source

Item[Int32]

Gets the System.Int32 with the specified n.

Declaration
public int this[int n] { get; }
Parameters
Type Name Description
System.Int32 n

The n.

Property Value
Type Description
System.Int32

The System.Int32.

Methods

| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Overrides
System.Object.ToString()

Operators

| Improve this Doc View Source

Equality(Shape, Shape)

Implements the operator ==.

Declaration
public static bool operator ==(Shape a, Shape b)
Parameters
Type Name Description
Shape a

a.

Shape b

The b.

Returns
Type Description
System.Boolean

The result of the operator.

| Improve this Doc View Source

Implicit(Int32 to Shape)

Performs an implicit conversion from System.ValueTuple`1 to Shape.

Declaration
public static implicit operator Shape(int shape)
Parameters
Type Name Description
System.Int32 shape

The shape.

Returns
Type Description
Shape

The result of the conversion.

| Improve this Doc View Source

Implicit((Int32, Int32, Int32, Int32, Int32) to Shape)

Performs an implicit conversion from System.ValueTuple`5 to Shape.

Declaration
public static implicit operator Shape((int, int, int, int, int)shape)
Parameters
Type Name Description
System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32> shape

The shape.

Returns
Type Description
Shape

The result of the conversion.

| Improve this Doc View Source

Implicit((Int32, Int32, Int32, Int32) to Shape)

Performs an implicit conversion from System.ValueTuple`4 to Shape.

Declaration
public static implicit operator Shape((int, int, int, int)shape)
Parameters
Type Name Description
System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32> shape

The shape.

Returns
Type Description
Shape

The result of the conversion.

| Improve this Doc View Source

Implicit((Int32, Int32, Int32) to Shape)

Performs an implicit conversion from System.ValueTuple`3 to Shape.

Declaration
public static implicit operator Shape((int, int, int)shape)
Parameters
Type Name Description
System.ValueTuple<System.Int32, System.Int32, System.Int32> shape

The shape.

Returns
Type Description
Shape

The result of the conversion.

| Improve this Doc View Source

Implicit((Int32, Int32) to Shape)

Performs an implicit conversion from System.ValueTuple`2 to Shape.

Declaration
public static implicit operator Shape((int, int)shape)
Parameters
Type Name Description
System.ValueTuple<System.Int32, System.Int32> shape

The shape.

Returns
Type Description
Shape

The result of the conversion.

| Improve this Doc View Source

Inequality(Shape, Shape)

Implements the operator !=.

Declaration
public static bool operator !=(Shape a, Shape b)
Parameters
Type Name Description
Shape a

a.

Shape b

The b.

Returns
Type Description
System.Boolean

The result of the operator.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX