Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetCompositeOpScopes (0.27 sec)

  1. tensorflow/cc/framework/scope_test.cc

    std::vector<string> AnotherCompositeOp(const Scope& scope) {
      auto cop_scopes = scope.GetCompositeOpScopes("another_cop");
      const string c1 = cop_scopes.child.GetUniqueNameForOp("c1");
      const string c2 = cop_scopes.child.GetUniqueNameForOp("mul");
      return {c1, c2, LastOp(cop_scopes.last)};
    }
    
    std::vector<string> LinearOp(const Scope& scope) {
      auto cop_scopes = scope.GetCompositeOpScopes("linear");
      Scope linear = cop_scopes.child;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 08:17:37 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_ops_test.cc

    #include "tensorflow/core/lib/core/status_test_util.h"
    
    namespace tensorflow {
    namespace ops {
    namespace {
    
    Output Linear(const Scope& scope, Input x, Input w, Input b) {
      auto cop_scopes = scope.GetCompositeOpScopes("linear");
      auto m = MatMul(cop_scopes.child, x, w);
      return BiasAdd(cop_scopes.last, m, b);
    }
    
    void GetColocationConstraints(const Output& tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/scope.h

      /// status().
      // TODO(skyewm): NodeBuilder is not part of public API
      void UpdateBuilder(NodeBuilder* builder) const;
      // END_SKIP_DOXYGEN
    
      CompositeOpScopes GetCompositeOpScopes(const string& composite_op_name) const;
    
      bool ok() const;
    
      // TODO(skyewm): Graph is not part of public API
      Graph* graph() const;
    
      // TODO(skyewm): Graph is not part of public API
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/scope.cc

    }
    
    Scope Scope::WithKernelLabel(const string& kernel_label) const {
      return Scope(new Impl(*this, Impl::Tags::KernelLabel(), kernel_label));
    }
    
    CompositeOpScopes Scope::GetCompositeOpScopes(
        const string& composite_op_name) const {
      if (impl()->op_name_.empty() && composite_op_name.empty()) {
        UpdateStatus(errors::InvalidArgument(
            "Cannot create composite op scopes with empty name"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top