profile
viewpoint
Gunhan Gulsoy gunan @google @tensorflow Mountain View, CA

jenkinsci/google-source-plugin 6

This plugin provides the credential provider to use Google Cloud Platform OAuth Credentials (provided by the Google OAuth Plugin) to access source code from https://source.developer.google.com as well as https://googlesource.com.

gunan/tensorflow 2

Computation using data flow graphs for scalable machine learning

gunan/abseil-cpp 0

Abseil Common Libraries (C++)

gunan/community 0

Stores documents used by the TensorFlow developer community

gunan/docs 0

TensorFlow documentation

gunan/pipe 0

Reproduce the pipe not unblocking.

gunan/tensorflow-docker 0

Unofficial docker images that are able to build and run TF on unsupported operating systems.

issue commenttensorflow/tensorflow

Add link libtensorflow_framework.so => libtensorflow_framework.so.1

Inspired by @byronyi 's comment, I tried what tf.sysconfig.get_link_flags() returns, i.e. I put libraries=[':libtensorflow_framework.so.1'] and it works. I should probably find a way to just pass what tf.sysconfig.get_link_flags() to distutils, though.

hello mdorier , can you show the code which help you solved this issue, i met the same problem

mdorier

comment created time in 5 minutes

issue commenttensorflow/tfjs

Running in a web worker

you can send data as array from main.js to worker.js

in main.js ` ctx.drawImage(video, 0, 0, canvas.width, canvas.height); var myImageData = ctx.getImageData(0, 0, canvas.width, canvas.height).data;

//send data to worker Worker.postMessage({ "data": myImageData, "width": canvas.width, "height": canvas.height }) `

in worker.js ` importScripts("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.4.0/dist/tf.min.js");

var model; var score;

(async() => { tf.loadGraphModel("https://example.com/model.json").then(mo => model = mo) })()

async function predict(img) { model.executeAsync(img).then(res => { res[4].data().then(data => score = data[0]) }).then( await new Promise(r => setTimeout(r, 3000)) ).then( postMessage(score) ) } onmessage = function(img) {

const image = new ImageData(img.data.data, img.data.width, img.data.height);

predict(tf.tidy(() => {
    return tf.browser.fromPixels(image).toFloat().expandDims()
}))

}

`

hope this will help you

bkazi

comment created time in 6 minutes

issue openedtensorflow/swift

GCP image

Hi Team,

Since swift for tensorflow has a new release every couple of months, it would be great if you could provide a GCP disk image alongside like python TensorFlow. This is very helpful for those of us who use google cloud platform.

Thanks!

created time in 7 minutes

issue commenttensorflow/lingvo

fatal error: tensorflow/core/platform/threadpool.h: No such file or directory

@drpngx Thanks. Fixed it with tensorflow-gpu>=2.1

yinjunbo

comment created time in 8 minutes

issue commenttensorflow/tfjs

Running in a web worker

you can send

bkazi

comment created time in 13 minutes

issue commenttensorflow/tensorflow

mobile_ssd_v2_float_coco.tflite model :Cannot copy between a TensorFlowLite tensor with shape [1, 2034, 4] and a Java object with shape [1, 10, 4].

I hard coded the value and changed it to 1917 instead of 10, but again i am getting error as this .Please help.

java.lang.IllegalArgumentException: Cannot copy between a TensorFlowLite tensor with shape [1, 1917, 2] and a Java object with shape [1, 1917]. at org.tensorflow.lite.Tensor.throwIfShapeIsIncompatible(Tensor.java:435) at org.tensorflow.lite.Tensor.throwIfDataIsIncompatible(Tensor.java:392) at org.tensorflow.lite.Tensor.copyTo(Tensor.java:250) at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:166) at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:314) at org.tensorflow.lite.examples.detection.tflite.TFLiteObjectDetectionAPIModel.recognizeImage(TFLiteObjectDetectionAPIModel.java:231) at org.tensorflow.lite.examples.detection.DetectorActivity$2.run(DetectorActivity.java:182) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.os.HandlerThread.run(HandlerThread.java:65)

Gmrevo

comment created time in 17 minutes

issue commenttensorflow/tensorflow

Batch, shuffle, and unbatch

https://colab.research.google.com/drive/1nyymFSV6-tAX9WuZ_LmPaO570Q1dWJsn#scrollTo=mw68rBbhs1Gs

Solved

Azrael1

comment created time in 19 minutes

issue closedtensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

when i run gnmt with tf2.1, have this error . System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow version and how it was installed (source or binary): tf2.1
  • TensorFlow-Addons version and how it was installed (source or binary): 0.11
  • Python version: 3.7
  • Is GPU used? (yes/no): no

Describe the bug

Traceback (most recent call last):
  File "/home/shiguang/models/benchmarks/../models/language_translation/tensorflow/mlperf_gnmt/fp32/run_inference.py", line 90, in <module>
    importer.import_graph_def(graph_def, input_map={}, name="")
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/framework/importer.py", line 405, in import_graph_def
    producer_op_list=producer_op_list)
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/framework/importer.py", line 497, in _import_graph_def_internal
    graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running on    . Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Ran inference with batch size 32

A clear and concise description of what the bug is.

Code to reproduce the issue

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

closed time in 19 minutes

gyshi

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

The op GatherTree has been renamed to Addons>GatherTree in TensorFlow Addons 0.6. You should re-export the SavedModel with a newer version of TensorFlow Addons.

thx

gyshi

comment created time in 19 minutes

issue commenttensorflow/tensorflow

AssertionError on using model.fit() in tf.distribute.MirroredStrategy

@fionapatriciamoss have you found a solution for this issue? I'am having the same problem using tensorflow v1.15 and tf.keras.utils.Sequence as my input data.

fionapatriciamoss

comment created time in 22 minutes

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

The op GatherTree has been renamed to Addons>GatherTree in TensorFlow Addons 0.6. You should re-export the SavedModel with a newer version of TensorFlow Addons.

gyshi

comment created time in 22 minutes

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

Hmmm TFA 0.11 hasn't yet been released are you sure you're correct about the versions. FWIW TFA 0.10 requires TensorFlow >= 2.2 which could be causing this error.

i have try tfa 0.7, i meet the same error.

gyshi

comment created time in 25 minutes

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

TensorFlow

now, i will try other version, if i will meet same error, i will connect you, thx.

gyshi

comment created time in 27 minutes

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

Hmmm TFA 0.11 hasn't yet been released are you sure you're correct about the versions. FWIW TFA 0.10 requires TensorFlow >= 2.2 which could be causing this error.

gyshi

comment created time in 28 minutes

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

Do you have a minimal code that could be copy and pasted to reproduce this error? i use this toturial https://github.com/IntelAI/models/tree/master/benchmarks/language_translation/tensorflow/mlperf_gnmt because my tensorflow is also 2.1, but have internal upgrade, so i have to use more higher version for addons to build tensorflow-addons success. when i run this model, i will meet this error.

gyshi

comment created time in 28 minutes

issue commenttensorflow/models

Yamnet classifier to tflite

tflite_convert \
  --keras_model_file=/root/models/research/audioset/yamnet/yamnet.h5 \
  --output_file=/root/models/research/audioset/yamnet/mobilenet.tflite

But Error "No model found in config file"

dmytro-ostapovets

comment created time in 39 minutes

issue commenttensorflow/models

Yamnet classifier to tflite

I look forward to your release of the TF-Lite code, this is very practical.

dmytro-ostapovets

comment created time in 41 minutes

pull request commenttensorflow/docs

JA: added site/ja/tutorials/text/image_captioning.ipynb

@masa-ita @lamberta @AseiSugiyama I'm trying to include the metrics like BLEU for inference purpose during training. Can the metric implementation be added in the original notebook?

masa-ita

comment created time in 42 minutes

issue commenttensorflow/tensorflow

'too many indices for array' exception depending on tensor length when masking a tensor

@Saduf2019 I have seen that post but I think it is a different problem.

If I run a loop over sentences of different length, it sometimes work sometimes it does not, even though all of them have the same shape (1D tensors). To demonstrate that I have added the code with a tensor of the same shape but a different length. Empirically it works with tensors longer than ~30 entries, but fails with shorter ones.

If you run the two first code snippets you should see the problem. The second array breaks the line, but it is still a 1D tensor! (sorry if that was not clear by the way I formatted it)

If I simply replace tf.tensor by np.array it works. If I explicitly call .numpy() on the mask it works as well for short and long sequences. So the problem shouldn't be related to the shape of the tensor.

raharth

comment created time in an hour

issue commenttensorflow/tensorflow

AttributeError: module 'tensorflow' has no attribute 'variable_scope'

same issue here also

dcv10

comment created time in an hour

issue commenttensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

Do you have a minimal code that could be copy and pasted to reproduce this error?

gyshi

comment created time in an hour

issue commenttensorflow/tensorflow

ResourceExhaustedError with a RNN compiled with XLA

Hi @ravikyram, I am getting ResourceExhaustedError as it looks like 15GB of GPU memory is asked to be allocated

EgorLakomkin

comment created time in an hour

issue openedtensorflow/addons

tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow version and how it was installed (source or binary): tf2.1
  • TensorFlow-Addons version and how it was installed (source or binary): 0.11
  • Python version: 3.7
  • Is GPU used? (yes/no): no

Describe the bug

Traceback (most recent call last):
  File "/home/shiguang/models/benchmarks/../models/language_translation/tensorflow/mlperf_gnmt/fp32/run_inference.py", line 90, in <module>
    importer.import_graph_def(graph_def, input_map={}, name="")
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/framework/importer.py", line 405, in import_graph_def
    producer_op_list=producer_op_list)
  File "/home/shiguang/.local/lib/python3.7/site-packages/tensorflow/python/framework/importer.py", line 497, in _import_graph_def_internal
    graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'GatherTree' in binary running on    . Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Ran inference with batch size 32

A clear and concise description of what the bug is.

Code to reproduce the issue

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

created time in an hour

PR opened tensorflow/profiler

Add 2 options in the capture profile dialog

Add 2 options in the capture profile dialog

  • Host Trace Level
  • Python Trace Level
+34 -1

0 comment

6 changed files

pr created time in an hour

create barnchtensorflow/profiler

branch : test_313364601

created branch time in an hour

issue commenttensorflow/tensorflow

Support for TensorList crossing the XLA/TF boundary is not implemented

@cheshire thank you, then maybe we can close this ticket.

EgorLakomkin

comment created time in an hour

issue commenttensorflow/tensorflow

XLA function crashed when called under GradientTape

@cheshire Thank you! Filed a ticket with another issue: https://github.com/tensorflow/tensorflow/issues/39904 Cannot assign you directly on GitHub (at least did not find out how).

EgorLakomkin

comment created time in an hour

issue openedtensorflow/models

official nlp transformer tutorial doesn't work InvalidArgumentError: indices[85,26] = 33764 is not in [0, 33708)

Following the walkthrough on this page https://github.com/tensorflow/models/tree/master/official/nlp/transformer

$ git rev-parse HEAD
a0d4ac797592f59c74f69d73706c7acf2aedf321
$ pip list | grep tf
tf-estimator-nightly          2.3.0.dev2020052701
tf-nightly                    2.3.0.dev20200527
python3 transformer_main.py --data_dir=$DATA_DIR --model_dir=$MODEL_DIR \
    --vocab_file=$VOCAB_FILE --param_set=$PARAM_SET \
    --train_steps=100000 --steps_between_evals=5000 \
    --batch_size=4096 --max_length=64 \
    --bleu_source=$DATA_DIR/newstest2014.en \
    --bleu_ref=$DATA_DIR/newstest2014.de \
    --num_gpus=1 \
    --enable_time_history=false
2020-05-27 14:07:32.416002: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-05-27 14:07:32.435006: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fd1b0931be0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-05-27 14:07:32.435025: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
WARNING:tensorflow:There are non-GPU devices in `tf.distribute.Strategy`, not using nccl allreduce.
W0527 14:07:32.435575 4631133632 cross_device_ops.py:1187] There are non-GPU devices in `tf.distribute.Strategy`, not using nccl allreduce.
INFO:tensorflow:Using MirroredStrategy with devices ('/job:localhost/replica:0/task:0/device:CPU:0',)
I0527 14:07:32.435838 4631133632 mirrored_strategy.py:341] Using MirroredStrategy with devices ('/job:localhost/replica:0/task:0/device:CPU:0',)
I0527 14:07:32.436186 4631133632 transformer_main.py:172] Running transformer with num_gpus = 0
I0527 14:07:32.436355 4631133632 transformer_main.py:176] For training, using distribution strategy: <tensorflow.python.distribute.mirrored_strategy.MirroredStrategy object at 0x148601b50>

Model: "functional_1"
__________________________________________________________________________________________________
Layer (type)                    Output Shape         Param #     Connected to                     
==================================================================================================
inputs (InputLayer)             [(None, None)]       0                                            
__________________________________________________________________________________________________
targets (InputLayer)            [(None, None)]       0                                            
__________________________________________________________________________________________________
transformer_v2 (Transformer)    (None, None, 33708)  210804736   inputs[0][0]                     
                                                                 targets[0][0]                    
__________________________________________________________________________________________________
logits (Lambda)                 (None, None, 33708)  0           transformer_v2[0][0]             
__________________________________________________________________________________________________
tf_op_layer_Shape (TensorFlowOp [(3,)]               0           logits[0][0]                     
__________________________________________________________________________________________________
tf_op_layer_Shape_1 (TensorFlow [(2,)]               0           targets[0][0]                    
__________________________________________________________________________________________________
tf_op_layer_strided_slice (Tens [()]                 0           tf_op_layer_Shape[0][0]          
__________________________________________________________________________________________________
tf_op_layer_strided_slice_1 (Te [()]                 0           tf_op_layer_Shape_1[0][0]        
__________________________________________________________________________________________________
tf_op_layer_Maximum (TensorFlow [()]                 0           tf_op_layer_strided_slice[0][0]  
                                                                 tf_op_layer_strided_slice_1[0][0]
__________________________________________________________________________________________________
tf_op_layer_Sub_1 (TensorFlowOp [()]                 0           tf_op_layer_Maximum[0][0]        
                                                                 tf_op_layer_strided_slice_1[0][0]
__________________________________________________________________________________________________
tf_op_layer_Pad_1/paddings/1 (T [(2,)]               0           tf_op_layer_Sub_1[0][0]          
__________________________________________________________________________________________________
tf_op_layer_Sub (TensorFlowOpLa [()]                 0           tf_op_layer_Maximum[0][0]        
                                                                 tf_op_layer_strided_slice[0][0]  
__________________________________________________________________________________________________
tf_op_layer_Pad_1/paddings (Ten [(2, 2)]             0           tf_op_layer_Pad_1/paddings/1[0][0
__________________________________________________________________________________________________
tf_op_layer_Pad/paddings/1 (Ten [(2,)]               0           tf_op_layer_Sub[0][0]            
__________________________________________________________________________________________________
tf_op_layer_Pad_1 (TensorFlowOp [(None, None)]       0           targets[0][0]                    
                                                                 tf_op_layer_Pad_1/paddings[0][0] 
__________________________________________________________________________________________________
tf_op_layer_Pad/paddings (Tenso [(3, 2)]             0           tf_op_layer_Pad/paddings/1[0][0] 
__________________________________________________________________________________________________
tf_op_layer_Cast (TensorFlowOpL [(None, None)]       0           tf_op_layer_Pad_1[0][0]          
__________________________________________________________________________________________________
tf_op_layer_Pad (TensorFlowOpLa [(None, None, None)] 0           logits[0][0]                     
                                                                 tf_op_layer_Pad/paddings[0][0]   
__________________________________________________________________________________________________
tf_op_layer_OneHot (TensorFlowO [(None, None, 33708) 0           tf_op_layer_Cast[0][0]           
__________________________________________________________________________________________________
tf_op_layer_Shape_3 (TensorFlow [(3,)]               0           tf_op_layer_Pad[0][0]            
__________________________________________________________________________________________________
tf_op_layer_Shape_4 (TensorFlow [(3,)]               0           tf_op_layer_OneHot[0][0]         
__________________________________________________________________________________________________
tf_op_layer_Slice (TensorFlowOp [(1,)]               0           tf_op_layer_Shape_3[0][0]        
__________________________________________________________________________________________________
tf_op_layer_Slice_1 (TensorFlow [(1,)]               0           tf_op_layer_Shape_4[0][0]        
__________________________________________________________________________________________________
tf_op_layer_concat (TensorFlowO [(2,)]               0           tf_op_layer_Slice[0][0]          
__________________________________________________________________________________________________
tf_op_layer_concat_1 (TensorFlo [(2,)]               0           tf_op_layer_Slice_1[0][0]        
__________________________________________________________________________________________________
tf_op_layer_Reshape (TensorFlow [(None, None)]       0           tf_op_layer_Pad[0][0]            
                                                                 tf_op_layer_concat[0][0]         
__________________________________________________________________________________________________
tf_op_layer_Reshape_1 (TensorFl [(None, None)]       0           tf_op_layer_OneHot[0][0]         
                                                                 tf_op_layer_concat_1[0][0]       
__________________________________________________________________________________________________
tf_op_layer_Shape_2 (TensorFlow [(3,)]               0           tf_op_layer_Pad[0][0]            
__________________________________________________________________________________________________
tf_op_layer_SoftmaxCrossEntropy [(None,), (None, Non 0           tf_op_layer_Reshape[0][0]        
                                                                 tf_op_layer_Reshape_1[0][0]      
__________________________________________________________________________________________________
tf_op_layer_Slice_2 (TensorFlow [(2,)]               0           tf_op_layer_Shape_2[0][0]        
__________________________________________________________________________________________________
tf_op_layer_Reshape_2 (TensorFl [(None, None)]       0           tf_op_layer_SoftmaxCrossEntropyWi
                                                                 tf_op_layer_Slice_2[0][0]        
__________________________________________________________________________________________________
tf_op_layer_NotEqual (TensorFlo [(None, None)]       0           tf_op_layer_Pad_1[0][0]          
__________________________________________________________________________________________________
tf_op_layer_Sub_2 (TensorFlowOp [(None, None)]       0           tf_op_layer_Reshape_2[0][0]      
__________________________________________________________________________________________________
tf_op_layer_Cast_1 (TensorFlowO [(None, None)]       0           tf_op_layer_NotEqual[0][0]       
__________________________________________________________________________________________________
tf_op_layer_Mul (TensorFlowOpLa [(None, None)]       0           tf_op_layer_Sub_2[0][0]          
                                                                 tf_op_layer_Cast_1[0][0]         
__________________________________________________________________________________________________
tf_op_layer_Sum (TensorFlowOpLa [()]                 0           tf_op_layer_Mul[0][0]            
__________________________________________________________________________________________________
tf_op_layer_Sum_1 (TensorFlowOp [()]                 0           tf_op_layer_Cast_1[0][0]         
__________________________________________________________________________________________________
tf_op_layer_RealDiv (TensorFlow [()]                 0           tf_op_layer_Sum[0][0]            
                                                                 tf_op_layer_Sum_1[0][0]          
__________________________________________________________________________________________________
add_loss (AddLoss)              ()                   0           tf_op_layer_RealDiv[0][0]        
==================================================================================================
Total params: 210,804,736
Trainable params: 210,804,736
Non-trainable params: 0
__________________________________________________________________________________________________
I0527 14:07:38.184003 4631133632 transformer_main.py:298] Start train iteration at global step:0


Traceback (most recent call last):
  File "transformer_main.py", line 496, in <module>
    app.run(main)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "transformer_main.py", line 484, in main
    task.train()
  File "transformer_main.py", line 350, in train
    verbose=(2 if flags_obj.enable_time_history else 1))
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 108, in _method_wrapper
    return method(self, *args, **kwargs)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 1090, in fit
    tmp_logs = train_function(iterator)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 766, in __call__
    result = self._call(*args, **kwds)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 826, in _call
    return self._stateless_fn(*args, **kwds)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 2811, in __call__
    return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 1838, in _filtered_call
    cancellation_manager=cancellation_manager)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 1914, in _call_flat
    ctx, args, cancellation_manager=cancellation_manager))
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 549, in call
    ctx=ctx)
  File "/Users/vikram/Workspace/tensorflow-models/venv/lib/python3.7/site-packages/tensorflow/python/eager/execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InvalidArgumentError:  indices[85,26] = 33764 is not in [0, 33708)
	 [[node functional_1/transformer_v2/Transformer/decode/embedding_shared_weights/embedding/GatherV2 (defined at /Users/vikram/Workspace/tensorflow-models/official/nlp/transformer/embedding_layer.py:80) ]] [Op:__inference_train_function_22457]

Errors may have originated from an input operation.
Input Source operations connected to node functional_1/transformer_v2/Transformer/decode/embedding_shared_weights/embedding/GatherV2:
 cond_1/Identity_1 (defined at transformer_main.py:350)

Function call stack:
train_function

created time in an hour

issue openedtensorflow/tensorflow

Can't import tensorflow ( tf-nightly-gpu)

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Window10
  • TensorFlow installed from (source or binary): Anaconda
  • TensorFlow version: tf-nightly-gpu 2.3.0.dev20200526
  • Python version: Python 3.7.4
  • Installed using virtualenv? pip? conda?: Yes
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: 10.1
  • GPU model and memory: NVIDIA GeForce RTX 2070 with Max-Q design (8GB)

Describe the problem I updated my driver to the latest version, installed Visual Studio 2019 and CUDA/cuDNN version 10.1. I installed tensorflow through Anaconda prompt: pip install tf-nightly-gpu

Provide the exact sequence of commands / steps that you executed before running into the problem from tensorflow.keras.applications.efficientnet import EfficientNetB0 from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.efficientnet import preprocess_input

Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.


ImportError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module> 63 try: ---> 64 from tensorflow.python._pywrap_tensorflow_internal import * 65 # This try catch logic is because there is no bazel equivalent for py_extension.

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last) <ipython-input-1-4eb6aa7ec913> in <module> ----> 1 from tensorflow.keras.applications.efficientnet import EfficientNetB0 2 from tensorflow.keras.preprocessing import image 3 from tensorflow.keras.applications.efficientnet import preprocess_input

~\Anaconda3\lib\site-packages\tensorflow_init_.py in <module> 39 import sys as _sys 40 ---> 41 from tensorflow.python.tools import module_util as _module_util 42 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader 43

~\Anaconda3\lib\site-packages\tensorflow\python_init_.py in <module> 48 import numpy as np 49 ---> 50 from tensorflow.python import pywrap_tensorflow 51 52 # Protocol buffers

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module> 81 for some common reasons and solutions. Include the entire stack trace 82 above this error message when asking for help.""" % traceback.format_exc() ---> 83 raise ImportError(msg) 84 85 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last): File "C:\Users\G7\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

The installation works for my colleagues but it doesn't work for my notebook and we could not solve the problem.

Thank you in advance! Voravich

created time in an hour

issue commenttensorflow/tensorflow

How to hook cuda api in the latest tensorflow?

@hyc3z you can try this. it's work https://github.com/phrb/intro-cuda/blob/master/src/cuda-samples/7_CUDALibraries/cuHook/libcuhook.cpp

hyc3z

comment created time in an hour

more