Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 234 for eraseOp (0.14 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

        }
        op_state.addTypes(output_tys);
        op_state.addAttributes(attr);
        auto stablehlo_op = builder.create(op_state);
        custom_op.replaceAllUsesWith(stablehlo_op);
        custom_op.erase();
      });
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTflToStablehloPass() {
      return std::make_unique<TflToStablehloPass>();
    }
    
    static PassRegistration<TflToStablehloPass> pass;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

         * The compiler is happy with the casting that allows to hide the checked exception.
         * The runtime is happy with the casting because the checked exception type information is captured in a generic type parameter which gets erased.
         */
        private static <T, E extends Exception> Factory<T> toUncheckedThrowingFactory(final ThrowingFactory<T, E> throwingFactory) {
            return new Factory<T>() {
                @Nullable
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        op_property->inputs.erase(
            std::remove_if(
                op_property->inputs.begin(), op_property->inputs.end(),
                [&](std::pair<int, operator_property::TensorProperty> input) {
                  return cifg_non_inputs.find(input.first) != cifg_non_inputs.end();
                }),
            op_property->inputs.end());
        op_property->intermediates.erase(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K 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)
  8. tensorflow/compiler/jit/deadness_analysis.cc

        if (!is_converged) {
          for (Node* n : topo) {
            for (int oid = 0; oid < n->num_outputs(); ++oid) {
              predicate_map_.erase(TensorId(n->name(), oid));
            }
            predicate_map_.erase(TensorId(n->name(), Graph::kControlSlot));
          }
        }
    
        if (success != nullptr) {
          *success = is_converged;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

                cst.getValueAttr());
            full_range_const = new_op.getOutput();
          }
          use.set(full_range_const);
        }
        if (cst.use_empty()) cst.erase();
      });
      return func;
    }
    
    // Helper method that returns the index of the tensor with name 'tensor_name'
    // in the list of tensor names 'tensors'. It allows excluding some indices.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

    void PrepareQuantizeDRQPass::removeAllStatsOp(func::FuncOp func) {
      func.walk([&](quantfork::StatisticsOp stats_op) {
        stats_op.replaceAllUsesWith(stats_op.getArg());
        stats_op.erase();
      });
    }
    
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.inc"
    
    void PrepareQuantizeDRQPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top