Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Stack (0.14 sec)

  1. tensorflow/c/c_api.cc

              NodeDef* const node_def = graph_def.add_node();
              *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));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/env.cc

      options->stack_size = 0;
      options->guard_size = 0;
      options->numa_node = -1;
    }
    
    TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
                              const char* thread_name, void (*work_func)(void*),
                              void* param) {
      ::tensorflow::ThreadOptions cc_options;
      cc_options.stack_size = options->stack_size;
      cc_options.guard_size = options->guard_size;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_function.cc

      tensorflow::StackTracesMap stack_traces;
      for (const Node* n : fn_body->graph.nodes()) {
        stack_traces[n->name()] = n->GetStackTrace();
      }
    
      TF_Function* tf_function = new TF_Function();
      tf_function->record = new tensorflow::FunctionRecord(
          std::move(fdef), std::move(stack_traces), false);
    
      return tf_function;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      CancellationManager* cancellation_manager_ TF_GUARDED_BY(execution_mutex_);
      //   Outputs:
      std::vector<TensorHandlePtr> op_outputs_ TF_GUARDED_BY(execution_mutex_);
      // TF_Status is an incomplete type and so can't be stack allocated. To avoid
      // unnecessary allocations each Execute call, we keep one heap-allocated
      // version for the thread.
      StatusPtr status_ TF_GUARDED_BY(execution_mutex_);
    
      const std::string device_;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    //
    // This method uses a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
      std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]);
    
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_function_test.cc

      EXPECT_EQ(func_stack_traces->size(), 4);
      EXPECT_EQ(func_stack_traces->at("neg")->ToString({}), kNegStackToString);
      EXPECT_EQ(func_stack_traces->at("feed")->ToString({}), kFeedStackToString);
    
      // Verify that stack traces of grad_func is copied to graph function library.
      ASSERT_NE(grad_stack_traces, nullptr);
      EXPECT_EQ(grad_stack_traces->size(), 4);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  7. 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  8. tensorflow/c/eager/c_api.cc

        return;
      }
    
      AnnotateEagerRuntimeConstructionContext(*fdef_or.value());
      status->status = tensorflow::unwrap(ctx)->AddFunctionDefWithStackTraces(
          *fdef_or.value(), function->record->stack_traces());
    }
    
    TF_Function* TFE_ContextGetFunction(TFE_Context* ctx, const char* name,
                                        TF_Status* status) {
      tensorflow::core::RefCountPtr<tensorflow::FunctionRecord> record =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top