Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 271 for getOperation (0.18 sec)

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

        if (output_shape.value()) {
          changed = RefineResultType(op.getOperation(), op.getResult(),
                                     output_shape.value());
          return changed;
        }
      }
      return changed;
    }
    
    bool ShapeInference::RefineWithInferTypeOpInterface(
        InferTypeOpInterface infer_ti) {
      Operation* op = infer_ti.getOperation();
      if (none_of(op->getResultTypes(), CanBeRefined)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

      for (auto [lifted_op, arg_idx] : lifted_op_and_arg_idx) {
        lifted_op->erase();
      }
    
      return success();
    }
    
    void LiftHashTableOpsAsArgsPass::runOnOperation() {
      auto module_op = getOperation();
    
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        if (failed(LiftHashTableOpsToArguments(module_op, func_op))) {
          signalPassFailure();
          return;
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

        this->allow_mutable_tensors = allow_mutable_tensors;
      }
      void runOnOperation() override;
    };
    
    void FreezeGlobalTensorsPass::runOnOperation() {
      auto module = getOperation();
      if (!tf_saved_model::HasTfSavedModelSemantics(module)) return;
    
      DataFlowSolver solver;
      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

          auto new_constant_op = builder.clone(*constant_op.getOperation());
          constant_op.getResult().getUses().begin()->assign(
              dyn_cast<mlir::stablehlo::ConstantOp>(new_constant_op));
        }
      }
    }
    
    void ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass::
        runOnOperation() {
      ModuleOp module_op = getOperation();
    
      func::FuncOp main_func = FindMainFuncOp(module_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

      ModuleOp module = getOperation();
      bool success = true;
      int num_metadata = 0;
      TF::TPUReplicateMetadataOp metadata;
      MetadataMap metadata_map;
      module.walk([&](TF::TPUReplicateMetadataOp meta) {
        ++num_metadata;
        metadata = meta;
        metadata_map[meta->getAttrOfType<StringAttr>(TF::kTpuReplicateAttr).str()] =
            meta;
      });
    
      getOperation().walk([&](mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc

      op_with_dialect_count_.clear();
      dialect_count_.clear();
      dialect_name_of_.clear();
    
      // Compute the operation statistics for the currently visited operation.
      total_ops_ = 0;
    
      getOperation()->walk([&](Operation *op) {
        auto op_with_dialect_name = op->getName().getStringRef();
        auto op_name = op->getName().stripDialect();
        auto dialect_name = op->getDialect()->getNamespace();
    
    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. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

        return it->second;
      }
      return llvm::StringRef();
    }
    
    static PassRegistration<InsertQuantizedFunctionsPass> pass;
    
    void InsertQuantizedFunctionsPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symbol_table(module);
    
      std::unique_ptr<llvm::MemoryBuffer> mem_buffer;
      llvm::StringRef quantized_function_library =
          GetFunctionLibrary(quantization_method_, op_set_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        pattern_list.add<SimplifyBroadcastReshape>(context);
        patterns = std::move(pattern_list);
        return success();
      }
    
      void runOnOperation() override {
        auto func = getOperation();
        if (failed(applyPatternsAndFoldGreedily(func, patterns)))
          signalPassFailure();
      }
    
      FrozenRewritePatternSet patterns;
    };
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
    };
    
    TEST_F(LegalizationOpConfigTest, FailsWithExpectsLegalizationWithMlir) {
      TF_EXPECT_OK(CreateMlirModule());
      EXPECT_FALSE(IsOpLegalizedWithMlir(*module_->getOperation()));
    }
    
    TEST_F(LegalizationOpConfigTest, ExpectsFalseForNonMlirOps) {
      TF_EXPECT_OK(CreateMlirModule());
      TF_ASSERT_OK_AND_ASSIGN(FuncOp main, GetMain());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

            /*op=*/op.getOperation(), /*indices=*/ArrayRef<unsigned>{0, 1},
            /*max_bcast_rank=*/6);
      }
    
      // Allows QI8 output when the operands have valid shapes, which are
      // broadcastable shapes up to four dimension or have same shapes.
      if (IsQI8Type(element_type)) {
        return VerifyOperandsHaveSameShapesOrBroadcastableShape(
            /*op=*/op.getOperation(), /*indices=*/ArrayRef<unsigned>{0, 1},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top