Skip to content

TensorFrames Quick Start notebook failing with 'maximum recursion depth exceeded' #2

@kartha01

Description

@kartha01

Hi Denny,

(Sorry for the re-post)

I am trying the TensorFrames Quick Start.ipynb and am running into some issues. Already have TensorFlow on the system:


!pip show tensorflow  

Name: tensorflow
Version: 0.9.0
Summary: TensorFlow helps the tensors flow
...

In addition, have added the following jars to be picked up by the kernel:

tensorframes-0.2.8-s_2.11.jar
scala-logging-slf4j_2.11-2.1.2.jar
scala-logging-api_2.11-2.1.2.jar

But the following section fails with "RuntimeError: maximum recursion depth exceeded in cmp":

with tf.Graph().as_default() as g:
    # The TensorFlow placeholder that corresponds to column 'x'.
    # The shape of the placeholder is automatically inferred from the DataFrame.
    x = tfs.block(df, "x")
    
    # The output that adds y to x
    z = tf.add(x, 3, name='z')
    
    # The resulting dataframe
    df2 = tfs.map_blocks(z, df)

# Note that `z` is the tensor output from the `tf.add` operation
print z

I tried setting the recursion limit to 10000, but it still fails, so not sure what I may be missing. Any thoughts to resolve this is greatly appreciated!

Thanks,
Rajesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions