Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for GetBlock (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

          return false;
        }
        return parsed_device.has_type && parsed_device.type == kDeviceCPU;
      });
    }
    
    OpBuilder CreateBuilderAfterOp(Operation* op) {
      return OpBuilder(op->getBlock(), ++Block::iterator(op));
    }
    
    // Builds a TPUGetLayoutOp with the given compile op and input index.
    TF::TPUGetLayoutOp BuildGetLayout(const int64_t execute_arg_index,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. pkg/volume/csi/fake/fake_client.go

    		return nil, timeoutErr
    	}
    
    	// "Creation of target_path is the responsibility of the SP."
    	// Our plugin depends on it.
    	if req.VolumeCapability.GetBlock() != nil {
    		if err := os.WriteFile(req.TargetPath, []byte{}, 0644); err != nil {
    			return nil, fmt.Errorf("cannot create target path %s for block file: %s", req.TargetPath, err)
    		}
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

             func.getNumArguments());
      auto graph_op = cast<GraphOp>(func.front().front());
    
      auto fetch = graph_op.GetFetch();
      OpBuilder builder_chain_src(fetch);
      builder_chain_src.setInsertionPointToStart(fetch->getBlock());
    
      OpBuilder builder_chain_sink(fetch);
      int chain_index = num_old_outputs;
    
      // Iterate over all equivalence classes.
      for (auto class_iter = resource_equivalence_classes.begin();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

                   operand.getOwner()->getParentRegion()) ||
               (HasOutsideCompilationAncestor(operand.getOwner()) &&
                original_op_block == operand.getOwner()->getBlock());
      };
      for (auto result : llvm::zip(external_operands, recv_at_host->getResults())) {
        Value external_operand = std::get<0>(result);
        external_operand.replaceUsesWithIf(std::get<1>(result),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      // Populate the control sinks (i.e. side-effecting ops with no control
      // successors) in the top level block.
      for (const auto& entry : sorted_control_predecessors_) {
        auto* op = entry.getFirst();
        if (op->getBlock() == &func_op.front() &&
            sorted_control_successors_.count(op) == 0) {
          sorted_control_sinks_.push_back(op);
        }
      }
      llvm::sort(sorted_control_sinks_, [](Operation* a, Operation* b) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

          }
        }
    
        // Move inner ops from island to block containing graph.
        auto &island_body = island_op.GetBody().getOperations();
        Operation *operation = op.getOperation();
        operation->getBlock()->getOperations().splice(
            operation->getIterator(), island_body, island_body.begin(),
            std::prev(island_body.end()));
        rewriter.replaceOp(op, new_rets);
    
        return success();
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      auto transpose = dyn_cast_or_null<TF::TransposeOp>(op.getX().getDefiningOp());
      if (!transpose) return {};
    
      // If the transpose ops are on different devices, we don't fold them.
      if (transpose->getBlock() != op->getBlock()) {
        tensorflow::DataType dtype;
        auto status = tensorflow::ConvertToDataType(
            op.getX().getType().cast<TensorType>().getElementType(), &dtype);
        if (status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. cmd/namespace-lock.go

    )
    
    // local lock servers
    var globalLockServer *localLocker
    
    // RWLocker - locker interface to introduce GetRLock, RUnlock.
    type RWLocker interface {
    	GetLock(ctx context.Context, timeout *dynamicTimeout) (lkCtx LockContext, timedOutErr error)
    	Unlock(lkCtx LockContext)
    	GetRLock(ctx context.Context, timeout *dynamicTimeout) (lkCtx LockContext, timedOutErr error)
    	RUnlock(lkCtx LockContext)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. internal/lsync/lrwmutex_test.go

    func testSimpleWriteLock(t *testing.T, duration time.Duration) (locked bool) {
    	ctx := context.Background()
    	lrwm := NewLRWMutex()
    
    	if !lrwm.GetRLock(ctx, "", "object1", time.Second) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	if !lrwm.GetRLock(ctx, "", "object1", time.Second) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. internal/dsync/drwmutex_test.go

    	ctx1, cancel1 := context.WithCancel(context.Background())
    	if !drwm1.GetRLock(ctx1, cancel1, id, source, Options{Timeout: time.Second}) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	drwm2 := NewDRWMutex(ds, "simplelock")
    	ctx2, cancel2 := context.WithCancel(context.Background())
    	if !drwm2.GetRLock(ctx2, cancel2, id, source, Options{Timeout: time.Second}) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top