def dynamic_value

bendtorch-core@0.1.0.0 · src/tensor/contracts/pointwise_proof.bend:440

import bendtorch-core@0.1.0.0/src/tensor/contracts/pointwise_proof.bend as PointwiseProof
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

440def dynamic_value(+shape: Shape.Shape, pair: Core.Tensor<shape> & Result<&2, &2, Core.Error, F32>) ->
441  {Core.dynamic_read_value(Core.read_dynamic_result(shape, pair)) == Core.read_value(shape, pair) : Maybe<&2, F32>}:
442  (tensor, result) = pair
443  {==}

Uses (11)

Used by (1)