Skip to content

math.erf unavilable #738

Closed
Closed

Description

@chaseaucoin

Hi there,

For some of the stuff I'm doing it would be nice to have access to math.erf

https://www.tensorflow.org/api_docs/python/tf/math/erf

I tried using the patterns I saw in this library to do the following

` static Tensor erf(Tensor x, string name = null)
{
var results = tf.Runner.TFE_FastPathExecute(tf.Context, tf.Context.DeviceName,
"Erf", name,
null,
x);

        return results[0];
    }`

This seemed to be the right key given:
https://github.com/tensorflow/tensorflow/blob/e433b66b7a82920e072eb7526560e2b07411633a/tensorflow/core/kernels/cwise_op_erf.cc

That gave me the error: 'The given key 'Erf' was not present in the dictionary.'

I'm using Tensorflow.NET 0.32.0.0 with SciSharp.TensorFlow.Redist-Windows-GPU 2.4.0

Any help would be appreciated.

Activity

  1. added a commit that references this issue on Jan 30, 2021
  2. Oceania2018 commented on Jan 30, 2021

    @Oceania2018
    Member

    @chaseaucoin Added tf.math.erf as c8643c4, if you found more missing functions, you can follow the pattern to add, welcome to PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions