Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for function (0.24 sec)

  1. tensorflow/c/eager/graph_function.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/eager/graph_function.h"
    
    #include <utility>
    
    #include "tensorflow/c/eager/abstract_function.h"
    #include "tensorflow/core/framework/function.h"
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    namespace tracing {
    namespace graph {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function.cc

      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;
    }
    
    TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name,
    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)
  3. tensorflow/c/c_api_function_test.cc

      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("TF_Output scalar:0 is neither in the function body nor "
                       "among function inputs. Encountered while creating "
                       "function 'MyFunc'"),
                string(TF_Message(s_)));
    }
    
    void DefineFunction(const char* name, TF_Function** func,
                        const char* description = nullptr,
    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)
  4. tensorflow/c/eager/c_api_remote_function_test.cc

                                        /*remote_func_outputs=*/true);
    }
    TEST(CAPI, RemoteExecuteSilentCopiesLocalAsyncFuncOrdering) {
      // A remote input may be not ready when we start running a function. Test that
      // the function execution should wait until the remote input is ready.
      TestRemoteExecuteSilentCopiesFunc(/*async=*/true, /*remote=*/false,
                                        /*heavy_load_on_streaming_rpc=*/true);
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental.cc

    using tensorflow::tracing::TracingTensorHandle;
    
    void TF_SetTracingImplementation(const char* name, TF_Status* s) {
      tsl::Set_TF_Status_from_Status(s, SetDefaultTracingEngine(name));
    }
    
    // Creates a new TensorFlow function, it is an execution context attached to a
    // given tracing context.
    TF_ExecutionContext* TF_CreateFunction(const char* fn_name, TF_Status* s) {
      return wrap(CreateTracingExecutionContext(fn_name, s));
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.cc

          parent(nullptr),
          parent_inputs(nullptr) {
      // Tell the shape refiner to also run shape inference on functions.
      refiner.set_function_library_for_shape_inference(&graph.flib_def());
    }
    
    TF_Graph* TF_NewGraph() { return new TF_Graph; }
    
    void TF_DeleteGraph(TF_Graph* g) {
      if (g == nullptr) return;
      g->mu.lock();
      g->delete_requested = true;
      const bool del = g->sessions.empty();
    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)
  7. tensorflow/c/eager/gradients.cc

    }
    
    // Calls the passed-in backward function.
    // op_type is the op's name provided in RecordOperation.
    Status TapeVSpace::CallBackwardFunction(
        const string& op_type, GradientFunction* gradient_function,
        const std::vector<int64_t>& unneeded_gradients,
        gtl::ArraySlice<AbstractTensorHandle*> output_gradients,
        absl::Span<AbstractTensorHandle*> result) const {
      if (gradient_function == nullptr) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/array_grad_test.cc

                           /*tfrt*/ ::testing::Values(false),
                           /*use_function*/ ::testing::Values(true, false)));
    #else
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
                           /*use_function*/ ::testing::Values(true, false)));
    #endif
    }  // namespace
    }  // namespace internal
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/c_test_util.cc

        grads.emplace_back(grad.function_name(), grad.gradient_func());
      }
      std::sort(grads.begin(), grads.end());
      return grads;
    }
    
    std::vector<string> GetFuncNames(const tensorflow::GraphDef& graph_def) {
      std::vector<string> names;
      auto functions = graph_def.library().function();
      names.reserve(functions.size());
      for (const tensorflow::FunctionDef& func : functions) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  10. tensorflow/c/eager/dlpack.cc

        default:
          return tensorflow::errors::InvalidArgument("Unsupported Type Codes: ",
                                                     dtype.code);
      }
    }
    
    // Wraps the deleter function of DLManagedTensor to match the function signature
    // TFE_NewTensorHandleFromDeviceMemory.
    void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) {
      TFE_CallDLManagedTensorDeleter(dlmt_vptr);
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top