Class TensorChannel.Instance

    • Method Detail

      • accept

        public void accept​(org.tensorflow.ndarray.NdArray<?> tensor)
      • provideTensor

        public <T extends org.tensorflow.ndarray.NdArray<?>> T provideTensor()
      • getChannel

        public Channel getChannel()
        Returns:
        the Channel that is implemented by this instance
      • getMeasuredCardinality

        public java.util.OptionalLong getMeasuredCardinality()
        Description copied from interface: ChannelInstance
        Optionally provides the measured cardinality of this instance. However, such a cardinality might not be available for several reasons. For instance, the measurement might not have been requested or could not be implemented by the executing Platform.
        Specified by:
        getMeasuredCardinality in interface ChannelInstance
        Overrides:
        getMeasuredCardinality in class AbstractChannelInstance
        Returns:
        the measured cardinality if available
      • doDispose

        protected void doDispose()
                          throws java.lang.Throwable
        Description copied from class: ExecutionResourceTemplate
        Performs the actual disposing work of this instance.
        Specified by:
        doDispose in class ExecutionResourceTemplate
        Throws:
        java.lang.Throwable - in case anything goes wrong