Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,675 for scope_ (0.09 sec)

  1. tensorflow/cc/ops/while_loop_test.cc

    namespace tensorflow {
    
    namespace {
    
    class WhileLoopTest : public ::testing::Test {
     protected:
      WhileLoopTest() : scope_(Scope::NewRootScope()) {}
    
      void Init(int num_inputs, DataType dtype = DT_INT32) {
        for (int i = 0; i < num_inputs; ++i) {
          inputs_.push_back(ops::Placeholder(scope_, dtype));
        }
      }
    
      void CreateLoop(const ops::CondGraphBuilderFn& cond,
                      const ops::BodyGraphBuilderFn& body,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 22:30:58 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/README.md

    2.  Write the op gradient with the following naming scheme:
    
        ```
        Status OpNameGrad(const Scope& scope, const Operation& op,
                          const std::vector<Output>& grad_inputs,
                          std::vector<Output>* grad_outputs) {
          ...
          return scope.status();
        }
        REGISTER_GRADIENT_OP("OpName", OpNameGrad);
        ```
    
    3.  Ops gradients are implemented by using the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 29 19:12:55 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/gradients.cc

    };
    
    SymbolicGradientBuilder::SymbolicGradientBuilder(
        const Scope& scope, const ops::GradOpRegistry* registry,
        const std::vector<Output>& outputs, const std::vector<Output>& inputs,
        const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs)
        : scope_(scope),
          registry_(registry),
          outputs_(outputs),
          inputs_(inputs),
          grad_inputs_(grad_inputs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

            scope_.graph()->AddControlEdge(e->src(), new_const.node());
          }
        }
        return it->second;
      }
    
     private:
      Scope scope_;
      std::unordered_map<int, Output> cache_;
      std::vector<const Edge*> control_deps_;
    };
    
    // Returns a node computing the size of the Slice op with inputs `slice_inputs`.
    Status ComputeSliceSize(const Scope& host_scope,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/go/types/scope.go

    // and looked up by name. The zero value for Scope is a ready-to-use
    // empty scope.
    type Scope struct {
    	parent   *Scope
    	children []*Scope
    	number   int               // parent.children[number-1] is this scope; 0 if there is no parent
    	elems    map[string]Object // lazily allocated
    	pos, end token.Pos         // scope extent; may be invalid
    	comment  string            // for debugging only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/scope.go

    func NewScope(parent *Scope, pos, end syntax.Pos, comment string) *Scope {
    	s := &Scope{parent, nil, 0, nil, pos, end, comment, false}
    	// don't add children to Universe scope!
    	if parent != nil && parent != Universe {
    		parent.children = append(parent.children, s)
    		s.number = len(parent.children)
    	}
    	return s
    }
    
    // Parent returns the scope's containing (parent) scope.
    func (s *Scope) Parent() *Scope { return s.parent }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. pkg/log/scope.go

    			s.nameToEmit = name
    		}
    
    		scopes[name] = s
    	}
    
    	s.labels = make(map[string]any)
    
    	return s
    }
    
    // FindScope returns a previously registered scope, or nil if the named scope wasn't previously registered
    func FindScope(scope string) *Scope {
    	lock.RLock()
    	defer lock.RUnlock()
    
    	s := scopes[scope]
    	return s
    }
    
    // Scopes returns a snapshot of the currently defined set of scopes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. tensorflow/cc/framework/scope.h

      // scopes, or scopes derived from an existing scope object.
    
      /// Return a new scope.
      /// This creates a new graph and all operations constructed in this graph
      /// should use the returned object as the "root" scope.
      static Scope NewRootScope();
    
      /// Return a new scope. Ops created with this scope will have
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. pkg/test/framework/scope.go

    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/pkg/test/scopes"
    )
    
    // scope hold resources in a particular scope.
    type scope struct {
    	// friendly name for the scope for debugging purposes.
    	id string
    
    	parent *scope
    
    	resources []resource.Resource
    
    	closers []io.Closer
    
    	children []*scope
    
    	closeChan chan struct{}
    
    	topLevel bool
    
    	skipDump bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. pkg/ctrlz/topics/scopes.go

    }
    
    // ScopeTopic returns a ControlZ topic that allows visualization of process logging scopes.
    func ScopeTopic() fw.Topic {
    	return scopeTopic{}
    }
    
    func (scopeTopic) Title() string {
    	return "Logging Scopes"
    }
    
    func (scopeTopic) Prefix() string {
    	return "scope"
    }
    
    func getScopeInfo(s *log.Scope) *scopeInfo {
    	return &scopeInfo{
    		Name:            s.Name(),
    		Description:     s.Description(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top