Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 324 for created (0.46 sec)

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

          return failure();
        }
    
        // Compute multiplier = scale / sqrt(variance + epsilon)
        Value multiplier = rewriter.create<mhlo::AddOp>(
            bn_op.getLoc(), bn_op.getVariance(), epsilon);
        multiplier = rewriter.create<mhlo::RsqrtOp>(bn_op.getLoc(), multiplier);
        multiplier = rewriter.create<mhlo::MulOp>(bn_op.getLoc(), multiplier,
                                                  bn_op.getScale());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_tpu_device.cc

          absl::StrCat("device: ", DEVICE_TPU_SYSTEM, " device"));
      devices->push_back(std::make_unique<VirtualDevice>(options.env, attrs));
      VLOG(1) << "Created TPU_SYSTEM device. This host has " << device_count
              << " TPUs";
    
      return absl::OkStatus();
    }
    
    }  // namespace
    
    void RegisterTpuDeviceToDeviceCopy() {
      static auto* const register_tpu_tpu_copy = new CopyTensor::Registration(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        if (tpu_replicated_input.getIsMirroredVariable()) {
          mirrored_variable_indices.push_back(pos_and_input.index());
        }
      }
    
      // Create replicate op.
      auto result_types = GetClusterResultTypes(cluster, partitioned_outputs);
      auto replicate_op = builder.create<mlir::tf_device::ReplicateOp>(
          cluster.getLoc(), num_replicas,
          llvm::SmallDenseMap<llvm::StringRef,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

    // function, which might not exist in case of multi-signature graphs. In that
    // case, this pass will create a new main function, which calls signature
    // functions.
    //
    // An already existing @main function will be renamed by attaching a numeric
    // suffix like `@main_0` to avoid conflict with the newly created main function.
    class InsertMainFunctionPass
        : public PassWrapper<InsertMainFunctionPass, OperationPass<ModuleOp>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        return builder_.create<mlir::tf_executor::SwitchOp>(loc, types, operands,
                                                            result.attributes);
      }
      if (node.IsMerge()) {
        return builder_.create<mlir::tf_executor::MergeOp>(loc, types, operands,
                                                           result.attributes);
      }
      if (node.IsNextIteration()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

        // Finally, use the quantization parameter to create the quantize and
        // dequantize ops, and insert them between the tf.FakeQuantWithMinMaxVarsOp
        // and its users.
        Value value = tf_op.getOutputs();
        auto quantize = rewriter.create<quantfork::QuantizeCastOp>(
            tf_op.getLoc(), qtype.getValue(), value);
        auto dequantize = rewriter.create<quantfork::DequantizeCastOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

        auto new_func_type = builder.getFunctionType(block.getArgumentTypes(),
                                                     terminator->getOperandTypes());
        func.setType(new_func_type);
      });
    }
    
    // Creates an instance of the pass to decompose the TF ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateRewriteQuantizedIOPass() {
      return std::make_unique<RewriteQuantizedIOPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_kernel_creator_test.cc

          ToNodeProperties(R"pb(
            name: 'XTimesY' op: 'XTimesY' input: 'a' input: 'b'
          )pb");
      (*(callsite->node_def.mutable_attr()))["_XlaMustCompile"] = BoolAttr(true);
    
      // Note: need to set attribute on the created node.
      Status status = xla_kernel_creator.CreateKernel(flr_, callsite, &kernel_);
      ASSERT_TRUE(status.ok()) << status.ToString();
    
      EXPECT_EQ("XTimesY", kernel_->name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_distributed_test.cc

    // Test to ensure that a registered graph optimization pass is only executed
    // once (i.e., on the main function side) in running distributed functions.
    // This test creates a cluster with two workers, create a variable on the
    // second worker, and run a distributed function (VariableAddFunction) whose ops
    // span the local and remote workers. If the graph optimization pass is executed
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_functional_to_executor.cc

      auto graph_op = builder.create<tf_executor::GraphOp>(
          loc, func.getFunctionType().getResults());
      graph_op.getBody().push_back(new Block);
      builder.setInsertionPointToEnd(&graph_op.GetBody());
      auto island = builder.create<tf_executor::IslandOp>(
          loc, func.getFunctionType().getResults(),
          tf_executor::ControlType::get(&getContext()), ArrayRef<Value>());
      // Create Fetch.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top