This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.NonNull; | |
import com.google.inject.Inject; | |
public abstract class Base { | |
@NonNull protected final String name; | |
protected Base(@NonNull final String name) { | |
this.name = name; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.services.sagemaker.sparksdk.SageMakerModel | |
import java.util.UUID | |
val REGION="us-east-1" | |
val TFS_VERSION="2.1.0" | |
val PROCESSOR_TYPE="gpu" | |
val IMAGE=s"763104351884.dkr.ecr.$REGION.amazonaws.com/tensorflow-inference:$TFS_VERSION-$PROCESSOR_TYPE" | |
val MODEL_PATH = "s3://bucket/path/model.tar.gz" | |
val id = UUID.randomUUID().toString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.services.sagemaker.sparksdk.transformation.RequestRowSerializer; | |
import com.amazonaws.services.sagemaker.sparksdk.transformation.ResponseRowDeserializer; | |
import org.apache.spark.sql.Row; | |
import scala.util.parsing.json._; | |
import org.apache.spark.sql.types.{DoubleType, StructField, StructType, StringType} | |
class TFRequestRowSerializer (val featureLength: Int) extends RequestRowSerializer { | |
override val contentType: String = "text/csv"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.services.sagemaker.sparksdk.SageMakerModel | |
import java.util.UUID | |
val REGION="us-east-1" | |
val TFS_VERSION="2.1.0" | |
val PROCESSOR_TYPE="gpu" | |
val IMAGE=s"763104351884.dkr.ecr.$REGION.amazonaws.com/tensorflow-inference:$TFS_VERSION-$PROCESSOR_TYPE" | |
val MODEL_PATH = "s3://bucket/path/model.tar.gz" | |
val id = UUID.randomUUID().toString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007 | |
#define ll long long int | |
#define ld long double | |
#define pb push_back | |
#define mkp make_pair | |
#define pii pair<int, int> |