Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 475 for OP (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

          devices.push_back(builder.getNamedAttr(name, metadata));
        }
      }
    
      op->setAttr(kDevicesAttr, builder.getDictionaryAttr(devices));
    }
    
    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::TF::RuntimeDevices* devices) {
      auto devices_attr = op->getAttr(kDevicesAttr);
      if (!devices_attr) return mlir::success();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/mlrt/BUILD

            "@llvm-project//mlir:SideEffectInterfacesTdFiles",
        ],
    )
    
    gentbl_cc_library(
        name = "mlrt_ops_inc_gen",
        tbl_outs = [
            (
                ["-gen-op-decls"],
                "mlrt_ops.h.inc",
            ),
            (
                ["-gen-op-defs"],
                "mlrt_ops.cpp.inc",
            ),
        ],
        tblgen = "@llvm-project//mlir:mlir-tblgen",
        td_file = "mlrt_ops.td",
        deps = [":mlrt_td_files"],
    )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 17:04:28 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc

      // Marks all the variables dead.
      dead_ops.insert(vars.begin(), vars.end());
    
      // Removes relevant ops in topological order.
      for (auto& op : vars) RecursiveRemove(op, erase_list, dead_ops);
    
      // Erases the ops.
      for (auto op : erase_list) op->erase();
    }
    
    void RemoveVariablesInSessionInitializerPass::runOnOperation() {
      ModuleOp module_op = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

    }  // namespace
    
    bool IsTfFuncCustomCall(stablehlo::CustomCallOp op) {
      return op.getCallTargetName() == kTfTargetName;
    }
    
    DictionaryAttr GetTfBackendConfig(stablehlo::CustomCallOp op) {
      return op->getAttrOfType<DictionaryAttr>(kTfBackendConfigAttrName);
    }
    
    FailureOr<SymbolRefAttr> GetTfFuncCustomCallFuncName(
        stablehlo::CustomCallOp op) {
      if (!IsTfFuncCustomCall(op)) {
        return success(nullptr);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td

      let summary = "Restore variable tensors";
      let description = [{
        This Op is similar to a combination of RestoreV2 and AssignVariable Op, but
        this Op's execution is asynchronous.
    
        This Op is specific to TFRT + IFRT runtime and is not a stable interface for
        serialization.
    
        This Op will restore the tensors asynchronously. There are N restored tensors
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc

          return failure();
        }
    
        // einsum equation for batchmatmul
        std::string equation("...mk,...kn->...mn");
        if (op.getAdjX()) std::swap(equation[3], equation[4]);
        if (op.getAdjY()) std::swap(equation[6 + 3], equation[6 + 4]);
    
        rewriter.replaceOpWithNewOp<TF::EinsumOp>(
            op, op.getType(),
            /*inputs=*/ValueRange({input_lhs, input_rhs}),
            /*equation=*/equation);
    
        return success();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/testing/benchmark_test.go

    	res := testing.Benchmark(func(b *testing.B) {
    		b.ReportMetric(12345, "ns/op")
    		b.ReportMetric(0.2, "frobs/op")
    	})
    	// Test built-in overriding.
    	if res.NsPerOp() != 12345 {
    		t.Errorf("NsPerOp: expected %v, actual %v", 12345, res.NsPerOp())
    	}
    	// Test stringing.
    	res.N = 1 // Make the output stable
    	want := "       1\t     12345 ns/op\t         0.2000 frobs/op"
    	if want != res.String() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        const std::optional<DictionaryAttr>& virtual_devices, Operation* op) {
      if (!virtual_devices.has_value()) return false;
      if (!op) return false;
      if (llvm::isa<tf_device::ReplicateOp>(op)) return false;
      if (DirectUseOfVirtualDevice(*virtual_devices, op)) return true;
      return AncestorUsesVirtualDevice(virtual_devices, op->getParentOp());
    }
    
    // Check if op or its descendant uses a key in `virtual_devices`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/locking/NoOpDependencyLockingProvider.java

            // No-op
        }
    
        @Override
        public Property<LockMode> getLockMode() {
            throw new IllegalStateException("Should not be invoked on the no-op instance");
        }
    
        @Override
        public RegularFileProperty getLockFile() {
            throw new IllegalStateException("Should not be invoked on the no-op instance");
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

    bool IsOpWithDataMovementTrait(Operation* op) {
      // Supported data movement ops. These ops do not perform any computations and
      // has one result operand.
      return isa<TF::IdentityOp, TF::CastOp, TF::ReshapeOp, TF::XlaShardingOp,
                 TF::GatherOp, TF::GatherV2Op, TF::XlaGatherOp, TF::ExpandDimsOp,
                 TF::SqueezeOp, TF::TransposeOp>(op);
    }
    
    bool IsOpWithQuantizableTrait(Operation* op) {
      // Supported quantizable ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top