Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 107 of 107 for eraseOp (0.14 sec)

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

        auto new_host_launch_op = CreateNewHostLaunchOpWithNewResult(
            &old_launch_op, new_launch_op_results);
        UpdateReturnOpResultWithLaunchOpResult(&new_host_launch_op);
    
        old_launch_op->erase();
    
        tf_device::LaunchOp new_device_launch_op;
        if (failed(CreateNewDeviceLaunchOp(op, replicated, new_device_launch_op)))
          return signalPassFailure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

            replicate_op.GetReplicaOperandForBlockArgument(block_arg,
                                                           /*replica=*/0));
        shape_op.replaceAllUsesWith(new_shape_op.getOperation());
        shape_op.erase();
      }
    }
    
    // Checks if op and inner op operands are all replicate invariant.
    bool IsOpReplicateInvariant(Region* replicate_region, Operation* op) {
      auto ancestor_of_replicate = [&](Region* region) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

      // Those ops should be removed.
      for (auto* op : subgraph.partition_ops_) {
        if (IsConstantOrNone(op)) {
          continue;
        }
        op->dropAllDefinedValueUses();
        op->dropAllReferences();
        op->erase();
      }
      // Ensure that users of the call op's results appear after the launch op in
      // order to preserve the dominance property.
      TF::ReorderOpResultUses(call_op);
    }
    
    }  // namespace common
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

        outer_op.getBody().takeBody(region);
        // Careful: We can't use outer_op.getResults(), because that also includes
        // the control token.
        op->replaceAllUsesWith(outer_op.getOutputs());
        op->erase();
        // Control token is last result of outer_op.
        control_tokens.assign(1, outer_op.getResults().back());
      }
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

    // and remove them.
    void RemoveSerializedStablehloFunctions(ModuleOp module) {
      module.walk([&](func::FuncOp f) {
        if (f->hasAttr(kFromXlaCallModuleAttrName)) {
          f->erase();
        }
      });
    }
    
    class XlaCallModuleSerializationPass
        : public impl::XlaCallModuleSerializationPassBase<
              XlaCallModuleSerializationPass> {
     public:
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

          island_op.getBody().push_back(new Block);
          replacer.create<mlir::func::ReturnOp>(yield_op.getLoc(),
                                                yield_op.getOperands());
          yield_op.erase();
        }
    
        // Remap the captured operands in the (former) island block with newly
        // created entry block arguments in the function body.
        {
          Block &entry_block = outlined_func.getBody().front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/runtime/rand.go

    		mp.locks--
    	}
    }
    
    // mrandinit initializes the random state of an m.
    func mrandinit(mp *m) {
    	var seed [4]uint64
    	for i := range seed {
    		seed[i] = bootstrapRand()
    	}
    	bootstrapRandReseed() // erase key we just extracted
    	mp.chacha8.Init64(seed)
    	mp.cheaprand = rand()
    }
    
    // randn is like rand() % n but faster.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top