Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 153 for eraseOp (0.11 sec)

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

            if (cluster_name.has_value() &&
                cluster_name.value() != target_cluster_name) {
              tpu_ops.erase(iter);
              return true;
            }
            if (!cluster_name.has_value() &&
                !tpu_ops.count(wrapper.getOperation())) {
              tpu_ops.erase(iter);
              return true;
            }
          }
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

          continue;
        }
        // If the tensor is bound to an argument, then it is used.
        if (global_tensor_uses.find(global_tensor) != global_tensor_uses.end()) {
          continue;
        }
        // Erase it.
        global_tensor.erase();
      }
    }
    
    void EraseUnusedBoundInputs(ModuleOp module) {
      for (auto func : module.getOps<func::FuncOp>()) {
        llvm::BitVector args_to_erase(func.getNumArguments());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

            std::get<1>(result).replaceAllUsesWith(std::get<0>(result));
          }
          launch_ops.insert(op->getParentOfType<tf_device::LaunchOp>());
          op->erase();
        }
        return WalkResult::advance();
      });
    
      for (auto launch_op : launch_ops) {
        Block& block = launch_op.GetBody();
        if (&block.front() == &block.back()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

            // for CPU. Note the 'tpu' value should be the same as `TPU` defined in
            // tensorflow/python/saved_model/tag_constants.py.
            if (quantization_options.has_debugger_config()) {
              tags.erase("tpu");
            }
            py_function_library.SaveExportedModel(
                dst_saved_model_path, *exported_model, src_saved_model_path, tags,
                signature_def_map);
    
            return absl::OkStatus();
          },
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      }
    
      GraphOp main_graph_op = GetGraphOpFromFuncOp(main_func_op);
    
      FetchOp main_fetch_op = main_graph_op.GetFetch();
      const absl::Cleanup erase_main_fetch_op = [main_fetch_op]() mutable {
        main_fetch_op.erase();
      };
    
      // TODO(b/245473863): Handle when assets are actually used in the body.
      IRMapping mapper = CloneSrcFuncArgumentsToMainFunc(src_func_op, main_func_op);
    
      // Clones each op from src to main_body.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

        // we replace that block-argument's uses with the same (implicitly captured)
        // token 'token', used for If op, and erase the argument.
        // Note that 'RewriteControlFlowOpRegion' sets the token, used for the first
        // operation of region_idx'th region, to the dummy block-argument. As we
        // erase that argument, we also need to make sure that the token used for
        // the next operation is set to 'token'.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

            load = builder.create<TF::CastOp>(op.getLoc(), op.getValue().getType(),
                                              load->getResult(0));
          }
          op.getResult().replaceAllUsesWith(load->getResult(0));
          op.erase();
        });
    
        module.walk([&](TF::AssignVariableOp op) {
          Operation* source = GetHandleSource(op, solver);
          if (!source) return;
          ml_program::GlobalOp globalOp =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

          attr->contains("Truncate") && !attr->at("Truncate").b()) {
        node_def->set_op("Identity");
        attr->insert({{"T", attr->at("SrcT")}});
        attr->erase("SrcT");
        attr->erase("DstT");
        attr->erase("Truncate");
      }
    }
    
    }  // namespace
    
    Status GetAttrValuesFromOperation(
        mlir::Operation* inst, llvm::StringRef name,
        const tensorflow::OpRegistrationData* op_reg_data,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top