LostTech.TensorFlow : API Documentation

Type OptionalSpec

Namespace tensorflow

Parent TypeSpec

Interfaces IOptionalSpec

Public instance methods

bool __eq__(object other)

Return self==value.

object __eq___dyn(object other)

Return self==value.

int __hash__()

object __hash___dyn()

bool __ne__(object other)

Return self!=value.

object __ne___dyn(object other)

Return self!=value.

ValueTuple<PythonClassContainer, object> __reduce__()

object __reduce___dyn()

object __repr___dyn()

bool is_compatible_with(CompositeTensor spec_or_value)

Returns true if `spec_or_value` is compatible with this TypeSpec.

bool is_compatible_with(TensorSpec spec_or_value)

Returns true if `spec_or_value` is compatible with this TypeSpec.

bool is_compatible_with(IGraphNodeBase spec_or_value)

Returns true if `spec_or_value` is compatible with this TypeSpec.

object is_compatible_with_dyn(object spec_or_value)

Returns true if `spec_or_value` is compatible with this TypeSpec.

object most_specific_compatible_type(object other)

Returns the most specific TypeSpec compatible with `self` and `other`.
Parameters
object other
A `TypeSpec`.

object most_specific_compatible_type_dyn(object other)

Returns the most specific TypeSpec compatible with `self` and `other`.
Parameters
object other
A `TypeSpec`.

Public static methods

object from_value(CompositeTensor value)

object from_value(PythonClassContainer value)

Returns an `Optional` that wraps the given value.
Parameters
PythonClassContainer value
A value to wrap. The value must be convertible to `Tensor` or `CompositeTensor`.
Returns
object
An `Optional` that wraps `value`.

object from_value_dyn(object value)

Returns an `Optional` that wraps the given value.
Parameters
object value
A value to wrap. The value must be convertible to `Tensor` or `CompositeTensor`.
Returns
object
An `Optional` that wraps `value`.

Public properties

object PythonObject get;

PythonClassContainer value_type get;

The Python type for values that are compatible with this TypeSpec.

object value_type_dyn get;

The Python type for values that are compatible with this TypeSpec.