Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Debug (0.14 sec)

  1. tensorflow/c/eager/c_api_debug_test.cc

      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      ASSERT_EQ(2, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
      // Shape is the same for CPU tensors.
      EXPECT_EQ(3, TFE_TensorDebugInfoOnDeviceDim(debug_info, 0));
      EXPECT_EQ(2, TFE_TensorDebugInfoOnDeviceDim(debug_info, 1));
    
      TFE_DeleteTensorDebugInfo(debug_info);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_debug.cc

    TF_CAPI_EXPORT extern void TFE_DeleteTensorDebugInfo(
        TFE_TensorDebugInfo* debug_info) {
      delete debug_info;
    }
    
    TF_CAPI_EXPORT extern int TFE_TensorDebugInfoOnDeviceNumDims(
        TFE_TensorDebugInfo* debug_info) {
      return debug_info->dev_dims.size();
    }
    
    TF_CAPI_EXPORT extern int64_t TFE_TensorDebugInfoOnDeviceDim(
        TFE_TensorDebugInfo* debug_info, int dim_index) {
      return debug_info->dev_dims[dim_index];
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

              *node_def = node->def();
            }
          }
          *graph_def.mutable_library() = graph.flib_def().ToProto();
          if (flags::Global().more_stack_traces.value()) {
            *graph_def.mutable_debug_info() = graph.BuildDebugInfo();
          }
          session->graph->mu.unlock();
          status->status = session->session->Extend(std::move(graph_def));
          if (!status->status.ok()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

      tensorflow::mutex_lock c(graph->mu);
      const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
      *len = debug_str.size();
      char* ret = static_cast<char*>(malloc(*len + 1));
      memcpy(ret, debug_str.c_str(), *len + 1);
      return ret;
    }
    
    char* TF_FunctionDebugString(TF_Function* func, size_t* len) {
      const auto& debug_str = DebugString(func->record->fdef());
      *len = debug_str.size();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/platform/base64.h"
    #include "tensorflow/core/platform/strcat.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    
    using tensorflow::errors::InvalidArgument;
    
    namespace tensorflow {
    namespace {
    
    Status ValidateNonRefOutput(const Node* node, int idx) {
      const DataType& dt = node->output_type(idx);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  6. tensorflow/c/eager/parallel_device/parallel_device.cc

    // explicitly by running a TPUReplicatedOutput operation on the parallel device.
    //
    // TODO(allenl): There are some use-cases that are only supported by copying to
    // host at the moment (e.g. debug print on a tensor, .numpy(), etc.). We either
    // need to return something here or address these use-cases one by one.
    TFE_TensorHandle* CopyTensorFromParallelDevice(TFE_Context* context,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

                                char* buffer, TF_Status* status) -> int64_t {
        counter.DecrementCount();
        if (!counter.WaitFor(std::chrono::seconds(10))) {
          // This avoids having the test time out, which is harder to debug.
          TF_SetStatus(status, TF_FAILED_PRECONDITION,
                       "desired concurrency not reached");
          return -1;
        }
        memset(buffer, 'x', n);
        TF_SetStatus(status, TF_OK, "");
        return n;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/grappler/grappler.cc

      CONFIG_TOGGLE(implementation_selector);
      CONFIG_TOGGLE(function_optimization);
      CONFIG_TOGGLE(common_subgraph_elimination);
      CONFIG_TOGGLE(arithmetic_optimization);
      CONFIG_TOGGLE(debug_stripper);
      CONFIG_TOGGLE(constant_folding);
      CONFIG_TOGGLE(shape_optimization);
      CONFIG_TOGGLE(auto_mixed_precision);
      CONFIG_TOGGLE(auto_mixed_precision_onednn_bfloat16);
      CONFIG_TOGGLE(auto_mixed_precision_mkl);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_test.cc

      // When we turn on grappler, confirm that the tf.Add has been rewritten into a
      // tf.Mul.
      // This capability of checking the executed op names is currently only enabled
      // for TFRT debug build, for performance and simplicity reasons.
      if (use_tfrt) {
        TF_Buffer* buf = TF_NewBuffer();
        TFE_GetExecutedOpNames(ctx, buf, status);
        ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  10. tensorflow/c/eager/c_api_experimental.cc

            "Unable to find function with name: ", function_name);
        return;
      }
    
      tensorflow::GraphDebugInfo debug_info =
          tensorflow::StackTracesMapToGraphDebugInfo(
              function_record->stack_traces());
    
      string str = debug_info.SerializeAsString();
      void* data = tensorflow::port::Malloc(str.length());
      str.copy(static_cast<char*>(data), str.length(), 0);
      buf->data = data;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
Back to top